comparison src/eeprom_rs232.asm @ 378:7faa688db105

BUGFIX: BLE timings for MAC issues
author heinrichsweikamp
date Tue, 15 Sep 2015 18:11:08 +0200
parents 2fd258596af0
children 3c55627d5f8f
comparison
equal deleted inserted replaced
377:f0828110d864 378:7faa688db105
192 return ; Done. 192 return ; Done.
193 193
194 global rs232_get_byte 194 global rs232_get_byte
195 rs232_get_byte: 195 rs232_get_byte:
196 bcf rs232_recieve_overflow ; clear flag 196 bcf rs232_recieve_overflow ; clear flag
197 clrf uart1_temp 197 movlw .10
198 movwf uart1_temp
198 clrf uart2_temp 199 clrf uart2_temp
200 clrf uart3_temp
199 rs232_get_byte2: 201 rs232_get_byte2:
200 btfsc PIR1,RCIF ; data arrived? 202 btfsc PIR1,RCIF ; data arrived?
201 return 203 bra rs232_get_byte3 ; Yes
202 btfsc PIR1,RCIF ; data arrived? 204 decfsz uart3_temp,F
203 return 205 bra rs232_get_byte2
204 btfsc PIR1,RCIF ; data arrived?
205 return
206 btfsc PIR1,RCIF ; data arrived?
207 return
208 decfsz uart2_temp,F 206 decfsz uart2_temp,F
209 bra rs232_get_byte2 207 bra rs232_get_byte2
210 decfsz uart1_temp,F 208 decfsz uart1_temp,F
211 bra rs232_get_byte2 209 bra rs232_get_byte2
212 ; timeout occoured (about 40ms) 210 ; timeout occoured (about 40ms)
213 bsf rs232_recieve_overflow ; set flag 211 bsf rs232_recieve_overflow ; set flag
212 rs232_get_byte3:
214 bcf RCSTA1,CREN ; Clear receiver status 213 bcf RCSTA1,CREN ; Clear receiver status
215 bsf RCSTA1,CREN 214 bsf RCSTA1,CREN
216 return ; and return anyway 215 return ; and return anyway
217 216
218 END 217 END