From 48e3aba349640c9252484fa211cdcf0b9fad5d55 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Mon, 1 Jul 2013 00:28:42 +0000 Subject: enabled higher baudrates git-svn-id: https://svn.spreadspace.org/mur.sat@802 7de4ea59-55d0-425e-a1af-a3118ea81d4c --- software/ihu/ihu.asm | 9 +++++---- 1 file 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 -- cgit v1.2.3