comparison src/eeprom_rs232.asm @ 386:3c55627d5f8f

some cleanups, jump to 1.90 stable
author heinrichsweikamp
date Wed, 07 Oct 2015 14:46:39 +0200
parents 7faa688db105
children b455b31ce022
comparison
equal deleted inserted replaced
385:b075fa71b659 386:3c55627d5f8f
198 movwf uart1_temp 198 movwf uart1_temp
199 clrf uart2_temp 199 clrf uart2_temp
200 clrf uart3_temp 200 clrf uart3_temp
201 rs232_get_byte2: 201 rs232_get_byte2:
202 btfsc PIR1,RCIF ; data arrived? 202 btfsc PIR1,RCIF ; data arrived?
203 bra rs232_get_byte3 ; Yes 203 return ; Yes
204 decfsz uart3_temp,F 204 decfsz uart3_temp,F
205 bra rs232_get_byte2 205 bra rs232_get_byte2
206 decfsz uart2_temp,F 206 decfsz uart2_temp,F
207 bra rs232_get_byte2 207 bra rs232_get_byte2
208 decfsz uart1_temp,F 208 decfsz uart1_temp,F
209 bra rs232_get_byte2 209 bra rs232_get_byte2
210 ; timeout occoured (about 40ms) 210 ; timeout occoured (about 400ms)
211 bsf rs232_recieve_overflow ; set flag 211 bsf rs232_recieve_overflow ; set flag
212 rs232_get_byte3: 212 rs232_get_byte3:
213 bcf RCSTA1,CREN ; Clear receiver status 213 bcf RCSTA1,CREN ; Clear receiver status
214 bsf RCSTA1,CREN 214 bsf RCSTA1,CREN
215 return ; and return anyway 215 return ; and return anyway