Mercurial > public > hwos_code
comparison 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 |
comparison
equal
deleted
inserted
replaced
440:36a9ac914ce3 | 441:360acdcda0d7 |
---|---|
498 bra comm_identify ; Send firmware, serial, etc. | 498 bra comm_identify ; Send firmware, serial, etc. |
499 movlw "j" | 499 movlw "j" |
500 cpfseq RCREG1 | 500 cpfseq RCREG1 |
501 bra $+4 | 501 bra $+4 |
502 bra comm_hardware_descriptor ; Send hardware descriptor byte | 502 bra comm_hardware_descriptor ; Send hardware descriptor byte |
503 movlw 0x60 | |
504 cpfseq RCREG1 | |
505 bra $+4 | |
506 bra comm_feature_and_hardware ; Send more detailed informations | |
503 movlw "n" | 507 movlw "n" |
504 cpfseq RCREG1 | 508 cpfseq RCREG1 |
505 bra $+4 | 509 bra $+4 |
506 goto comm_send_string ; Send a 15byte string to the screen | 510 goto comm_send_string ; Send a 15byte string to the screen |
507 movlw "m" | 511 movlw "m" |
825 movwf TXREG1 | 829 movwf TXREG1 |
826 rcall comm_rs232_wait_tx ; wait for UART | 830 rcall comm_rs232_wait_tx ; wait for UART |
827 movff hardware_flag,TXREG1 | 831 movff hardware_flag,TXREG1 |
828 bra comm_download_mode0 ; Done. | 832 bra comm_download_mode0 ; Done. |
829 | 833 |
834 comm_feature_and_hardware: | |
835 movlw 0x60 ; send echo | |
836 movwf TXREG1 | |
837 rcall comm_rs232_wait_tx ; wait for UART | |
838 movlw 0x00 ; Hardware high byte | |
839 movwf TXREG1 | |
840 rcall comm_rs232_wait_tx ; wait for UART | |
841 movff hardware_flag,TXREG1 | |
842 rcall comm_rs232_wait_tx ; wait for UART | |
843 movlw 0x00 ; Feature high Byte | |
844 movwf TXREG1 | |
845 rcall comm_rs232_wait_tx ; wait for UART | |
846 movlw 0x00 ; Feature low Byte | |
847 movwf TXREG1 | |
848 rcall comm_rs232_wait_tx ; wait for UART | |
849 movlw 0x00 ; Model descriptor byte | |
850 movwf TXREG1 | |
851 bra comm_download_mode0 ; Done. | |
852 | |
830 ;----------------------------------------------------------------------------- | 853 ;----------------------------------------------------------------------------- |
831 | 854 |
832 comm_send_dive: | 855 comm_send_dive: |
833 movlw "f"; 0x66 ; send echo | 856 movlw "f"; 0x66 ; send echo |
834 movwf TXREG1 | 857 movwf TXREG1 |