diff options
author | Christian Pointner <equinox@mur.at> | 2013-07-01 00:28:42 +0000 |
---|---|---|
committer | Christian Pointner <equinox@mur.at> | 2013-07-01 00:28:42 +0000 |
commit | 48e3aba349640c9252484fa211cdcf0b9fad5d55 (patch) | |
tree | 461058dbf4d83d363f6c9c0a2c1aa75137efaab5 /software/ihu/ihu.asm | |
parent | switched to smaller quartz footprint (diff) |
enabled higher baudrates
git-svn-id: https://svn.spreadspace.org/mur.sat@802 7de4ea59-55d0-425e-a1af-a3118ea81d4c
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 |