ceibawx
Junior Member level 2
- Joined
- Oct 13, 2008
- Messages
- 24
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,281
- Location
- chongqing,China
- Activity points
- 1,606
pic txif
Who can help me check it?
I stored data in PIC, but output is not correct.
TransData:
MOVLW 0xBF
MOVWF FSR ; TO RAM
MOVLW 0x08
MOVWF ChannelCounter ; ChannelCounter=4*2
GoOnTransData:
bsf STATUS,5
MOVF INDF,W
bcf STATUS,5
MOVWF TXREG ; Move the data to the transmit register
bsf STATUS,5
INCF FSR,1 ; INDF address number moves next
DECFSZ ChannelCounter,1 ; ChannelCounter-1
goto GoOnTransData ; cc!=0.
goto ReProcess ; cc=0.tx finish, start a new rx.
Who can help me check it?
I stored data in PIC, but output is not correct.
TransData:
MOVLW 0xBF
MOVWF FSR ; TO RAM
MOVLW 0x08
MOVWF ChannelCounter ; ChannelCounter=4*2
GoOnTransData:
bsf STATUS,5
MOVF INDF,W
bcf STATUS,5
MOVWF TXREG ; Move the data to the transmit register
bsf STATUS,5
INCF FSR,1 ; INDF address number moves next
DECFSZ ChannelCounter,1 ; ChannelCounter-1
goto GoOnTransData ; cc!=0.
goto ReProcess ; cc=0.tx finish, start a new rx.