comparison src/eeprom_rs232.asm @ 235:23311219dacc

under construction: new hardware_flag to configure different hardware versions
author heinrichsweikamp
date Wed, 25 Feb 2015 16:49:59 +0100
parents 5a4801918be9
children e2ea74646127
comparison
equal deleted inserted replaced
234:57155164faad 235:23311219dacc
81 return 81 return
82 82
83 global enable_ir_s8 83 global enable_ir_s8
84 enable_ir_s8: 84 enable_ir_s8:
85 ;init serial port2 (TRISG2) 85 ;init serial port2 (TRISG2)
86 btfsc cr_hardware 86 btfsc rechargeable
87 bra enable_s8 ; Start S8 87 bra enable_s8 ; Start S8
88 88
89 banksel BAUDCON2 89 banksel BAUDCON2
90 movlw b'00100000' ; BRG16=0 ; inverted for IR 90 movlw b'00100000' ; BRG16=0 ; inverted for IR
91 movwf BAUDCON2 91 movwf BAUDCON2