Mercurial > public > hwos_code
comparison src/eeprom_rs232.asm @ 276:e4cb495aed3d
Increase byte timeout in PC download mode, faster response to "Exit" in main menu
author | heinrichsweikamp |
---|---|
date | Tue, 12 May 2015 14:24:46 +0200 |
parents | 653a3ab08062 |
children | 1e342e433839 |
comparison
equal
deleted
inserted
replaced
275:653a3ab08062 | 276:e4cb495aed3d |
---|---|
190 clrf uart1_temp | 190 clrf uart1_temp |
191 clrf uart2_temp | 191 clrf uart2_temp |
192 rs232_get_byte2: | 192 rs232_get_byte2: |
193 btfsc PIR1,RCIF ; data arrived? | 193 btfsc PIR1,RCIF ; data arrived? |
194 return | 194 return |
195 btfsc PIR1,RCIF ; data arrived? | |
196 return | |
197 btfsc PIR1,RCIF ; data arrived? | |
198 return | |
199 btfsc PIR1,RCIF ; data arrived? | |
200 return | |
195 decfsz uart2_temp,F | 201 decfsz uart2_temp,F |
196 bra rs232_get_byte2 | 202 bra rs232_get_byte2 |
197 decfsz uart1_temp,F | 203 decfsz uart1_temp,F |
198 bra rs232_get_byte2 | 204 bra rs232_get_byte2 |
199 ; timeout occoured (about 20ms) | 205 ; timeout occoured (about 40ms) |
200 bsf rs232_recieve_overflow ; set flag | 206 bsf rs232_recieve_overflow ; set flag |
201 bcf RCSTA1,CREN ; Clear receiver status | 207 bcf RCSTA1,CREN ; Clear receiver status |
202 bsf RCSTA1,CREN | 208 bsf RCSTA1,CREN |
203 return ; and return anyway | 209 return ; and return anyway |
204 | 210 |