diff src/eeprom_rs232.asm @ 640:8c1f1f334275

3.13 release
author heinrichsweikamp
date Thu, 29 Oct 2020 09:29:15 +0100
parents 4050675965ea
children aeca5717d9eb
line wrap: on
line diff
--- a/src/eeprom_rs232.asm	Mon Aug 10 15:34:38 2020 +0200
+++ b/src/eeprom_rs232.asm	Thu Oct 29 09:29:15 2020 +0100
@@ -351,6 +351,7 @@
 enable_rs232_1:
 	btfss	speed_is_normal				; speed = normal?
 	bra		enable_rs232_1				; NO  - loop waiting for ISR to have adjusted the speed
+	bsf	TRISC,7
 	bcf		PORTE,0						; YES - switch port to comm
 	bsf		PORTJ,2						;     - /Reset (required for very old OSTC sport)
 	movlw	b'00100100'					;     - TX configuration: TX enabled, async, high speed
@@ -389,6 +390,8 @@
 	bcf		PORTC,6						; switch TX pin hard to GND
 	bsf		PORTE,0						; power down BT chip
 	bcf		PORTJ,2						; /Reset (required for very old OSTC sport)
+	bcf	TRISC,7
+	bcf		PORTC,7						; switch RX pin hard to GND
 	return