comparison code_part1/OSTC_code_asm_part1/eeprom_rs232.asm @ 537:3091628b2742

BUGFIX: Spurious logbook read issue
author heinrichsweikamp
date Sun, 08 Jan 2012 12:44:51 +0100
parents e2acb601504c
children fbd5e2b75a63
comparison
equal deleted inserted replaced
536:e77df4e2d025 537:3091628b2742
213 bsf rs232_recieve_overflow ; set flag 213 bsf rs232_recieve_overflow ; set flag
214 return ; and return anyway 214 return ; and return anyway
215 215
216 uart_115k_bootloader: 216 uart_115k_bootloader:
217 bcf PIE1,RCIE ; disable interrupt for RS232 217 bcf PIE1,RCIE ; disable interrupt for RS232
218 ; bcf PIR1,RCIF ; clear flag
219 call PLED_ClearScreen ; Clear screen 218 call PLED_ClearScreen ; Clear screen
220 movlw color_red 219 movlw color_red
221 call PLED_set_color ; Set to Red 220 call PLED_set_color ; Set to Red
222 DISPLAYTEXTH d'302' ; Bootloader 221 DISPLAYTEXTH d'302' ; Bootloader
223 movlw d'4' ; one second 222 bcf RCSTA,CREN ; Clear receiver status
223 bsf RCSTA,CREN
224 bcf PIR1,RCIF ; clear flag
225 movlw d'200' ; one second
224 movwf uart1_temp 226 movwf uart1_temp
225 uart_115k_bootloader0: 227 uart_115k_bootloader0:
226 btfsc PIR1,RCIF ; New byte in UART? 228 btfsc PIR1,RCIF ; New byte in UART?
227 bra uart_115k_bootloader1 ; Yes, Check if 0xC1 229 bra uart_115k_bootloader1 ; Yes, Check if 0xC1
228 WAITMS d'250' 230 WAITMS d'5'
229 decfsz uart1_temp,F 231 decfsz uart1_temp,F
230 bra uart_115k_bootloader0 232 bra uart_115k_bootloader0
231 uart_115k_bootloader2: 233 uart_115k_bootloader2:
232 DISPLAYTEXTH d'304' ; Aborted! 234 DISPLAYTEXTH d'304' ; Aborted!
233 movlw d'8' ; Two seconds 235 movlw d'8' ; Two seconds