diff src/comm.asm @ 441:360acdcda0d7

+BUGFIX: Compatibility with "hwOS Config" fixed +NEW: New hardware descriptor command 0x60 added (For PC programs)
author heinrichsweikamp
date Tue, 26 Jul 2016 12:08:29 +0200
parents 8f8151bb53bb
children d93d75ae01bf
line wrap: on
line diff
--- a/src/comm.asm	Wed Jul 13 13:06:02 2016 +0200
+++ b/src/comm.asm	Tue Jul 26 12:08:29 2016 +0200
@@ -500,6 +500,10 @@
 	cpfseq	RCREG1
 	bra		$+4
 	bra		comm_hardware_descriptor    ; Send hardware descriptor byte
+	movlw	0x60
+	cpfseq	RCREG1
+	bra		$+4
+	bra		comm_feature_and_hardware   ; Send more detailed informations
 	movlw	"n"
 	cpfseq	RCREG1
 	bra		$+4
@@ -827,6 +831,25 @@
     movff   hardware_flag,TXREG1
     bra     comm_download_mode0             ; Done.
 
+comm_feature_and_hardware:
+    movlw	0x60								; send echo
+    movwf	TXREG1
+    rcall	comm_rs232_wait_tx					; wait for UART
+    movlw	0x00	; Hardware high byte
+    movwf	TXREG1
+    rcall	comm_rs232_wait_tx					; wait for UART
+    movff	hardware_flag,TXREG1
+    rcall	comm_rs232_wait_tx					; wait for UART
+    movlw	0x00	; Feature high Byte
+    movwf	TXREG1
+    rcall	comm_rs232_wait_tx					; wait for UART
+    movlw	0x00	; Feature low Byte
+    movwf	TXREG1
+    rcall	comm_rs232_wait_tx					; wait for UART
+    movlw	0x00	; Model descriptor byte
+    movwf	TXREG1
+    bra     comm_download_mode0             ; Done.
+   
 ;-----------------------------------------------------------------------------
 
 comm_send_dive: