diff options
Diffstat (limited to 'software/ihu/ihu.asm')
-rw-r--r-- | software/ihu/ihu.asm | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/software/ihu/ihu.asm b/software/ihu/ihu.asm index f5bef62..95ac051 100644 --- a/software/ihu/ihu.asm +++ b/software/ihu/ihu.asm @@ -180,8 +180,8 @@ init ;; bank 3 bsf STATUS,RP0 bsf STATUS,RP1 - ;; movlw b'00000000' ; TX non-inverted, 8bit Baudrate, no auto baud detect - movlw b'00010000' ; TX inverted, 8bit Baudrate, no auto baud detect + ;; movlw b'00001000' ; TX non-inverted, 8bit Baudrate, no auto baud detect + movlw b'00011000' ; TX inverted, 8bit Baudrate, no auto baud detect movwf BAUDCTL movlw b'11101111' ; AN0-AN3,AN5-AN7 as analog movwf ANSEL ; AN4 as digital @@ -214,8 +214,9 @@ init clrf ADCON1 movlw b'00100100' ; Baudrate = High Speed, async mode, transmit enabled, 8bit movwf TXSTA - ;; movlw .8 Baudrate = 57600 (@ 8MHz) -> -3,55 % Error - movlw .25 ; Baudrate = 19200 (@ 8MHz) -> 0,16 % Error + movlw .34 ; Baudrate = 57600 (@ 8MHz) -> -0,79 % Error + ;; movlw .51 ; Baudrate = 38400 (@ 8MHz) -> -0,002 % Error + ;; movlw .103 ; Baudrate = 19200 (@ 8MHz) -> 0,16 % Error movwf SPBRG clrf SPBRGH movlw b'00100000' ; enable UART RX Interrupt |