Mercurial > public > hwos_code
comparison src/eeprom_rs232.asm @ 344:1e342e433839
CHANGE: GF and aGF high range increased to 45-110%
Flow control test
author | heinrichsweikamp |
---|---|
date | Mon, 20 Jul 2015 15:04:13 +0200 |
parents | e4cb495aed3d |
children | 2fd258596af0 |
comparison
equal
deleted
inserted
replaced
343:34e2f5bdc5a2 | 344:1e342e433839 |
---|---|
167 clrf TXSTA1 ; UART disable | 167 clrf TXSTA1 ; UART disable |
168 bcf PORTC,6 ; TX hard to GND | 168 bcf PORTC,6 ; TX hard to GND |
169 bsf PORTE,0 ; Stop comms | 169 bsf PORTE,0 ; Stop comms |
170 return | 170 return |
171 | 171 |
172 | |
173 rs232_wait_tx_led: | |
174 bsf LEDr ; Flow control test mH | |
175 | |
172 global rs232_wait_tx | 176 global rs232_wait_tx |
173 rs232_wait_tx: | 177 rs232_wait_tx: |
174 btfss TXSTA1,TRMT ; RS232 Busy? | 178 btfss TXSTA1,TRMT ; RS232 Busy? |
175 bra rs232_wait_tx ; yes, wait... | 179 bra rs232_wait_tx ; yes, wait... |
180 | |
181 btfss ble_available ; ble available? | |
182 return ; No, done. | |
183 | |
184 btfsc NRTS ; Wait for Bluetooth module | |
185 bra rs232_wait_tx_led ; yes, wait... | |
186 | |
187 bcf LEDr | |
176 return ; Done. | 188 return ; Done. |
177 | 189 |
178 global rs232_wait_tx2 | 190 global rs232_wait_tx2 |
179 rs232_wait_tx2: | 191 rs232_wait_tx2: |
180 banksel TXSTA2 | 192 banksel TXSTA2 |