Mercurial > public > hwos_code
comparison src/eeprom_rs232.asm @ 204:93085f540746
minor
author | heinrichsweikamp |
---|---|
date | Sun, 23 Nov 2014 22:33:41 +0100 |
parents | dcd513840c6c |
children | 56276a2418f9 |
comparison
equal
deleted
inserted
replaced
203:dd9b167e82dc | 204:93085f540746 |
---|---|
144 movwf SPBRG2 | 144 movwf SPBRG2 |
145 clrf SPBRGH2 | 145 clrf SPBRGH2 |
146 movlw b'10010000' | 146 movlw b'10010000' |
147 movwf RCSTA2 | 147 movwf RCSTA2 |
148 banksel common | 148 banksel common |
149 ; bcf s8_npower ; Power S8 HUD | |
150 bsf s8_digital ; Set flag | 149 bsf s8_digital ; Set flag |
151 return | 150 return |
152 | 151 |
153 ;============================================================================= | 152 ;============================================================================= |
154 global enable_rs232 | 153 global enable_rs232 |
176 global disable_rs232 | 175 global disable_rs232 |
177 disable_rs232: | 176 disable_rs232: |
178 clrf RCSTA1 | 177 clrf RCSTA1 |
179 clrf TXSTA1 ; UART disable | 178 clrf TXSTA1 ; UART disable |
180 bcf PORTC,6 ; TX hard to GND | 179 bcf PORTC,6 ; TX hard to GND |
181 ; bsf TRISC,6 ; Input | |
182 return | 180 return |
183 | 181 |
184 global rs232_wait_tx | 182 global rs232_wait_tx |
185 rs232_wait_tx: | 183 rs232_wait_tx: |
186 btfsc TXSTA1,TRMT ; Transmit Shift Register empty? | 184 btfsc TXSTA1,TRMT ; Transmit Shift Register empty? |