From: ian Date: Sat, 26 Nov 2005 16:44:19 +0000 (+0000) Subject: use movlw_movwf_spbrg because it has error handling X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ijackson/git?a=commitdiff_plain;h=6644a465506557af5d505e64a6926f6652224015;p=trains.git use movlw_movwf_spbrg because it has error handling --- diff --git a/cebpic/nmra-stream.asm b/cebpic/nmra-stream.asm index e56fe9f..5ede3c8 100644 --- a/cebpic/nmra-stream.asm +++ b/cebpic/nmra-stream.asm @@ -113,9 +113,7 @@ initialise ; set SPBRG to get correct baud rate according to table top right p186 ; (Tosc = 20MHz, desired baud rate = 9600) - movlw serial_spbrg - movwf SPBRG,0 - + movlw_movwf_spbrg debug 0x0A ; LF to terminak debug 'a' ; write 'a' to serial port diff --git a/detpic/nmra-stream.asm b/detpic/nmra-stream.asm index e56fe9f..5ede3c8 100644 --- a/detpic/nmra-stream.asm +++ b/detpic/nmra-stream.asm @@ -113,9 +113,7 @@ initialise ; set SPBRG to get correct baud rate according to table top right p186 ; (Tosc = 20MHz, desired baud rate = 9600) - movlw serial_spbrg - movwf SPBRG,0 - + movlw_movwf_spbrg debug 0x0A ; LF to terminak debug 'a' ; write 'a' to serial port diff --git a/iwjpictest/harness.asm b/iwjpictest/harness.asm index e7744d0..e807c75 100644 --- a/iwjpictest/harness.asm +++ b/iwjpictest/harness.asm @@ -423,8 +423,7 @@ serial_setup ; W undefined undefined mov_lw (1<