From 6644a465506557af5d505e64a6926f6652224015 Mon Sep 17 00:00:00 2001 From: ian Date: Sat, 26 Nov 2005 16:44:19 +0000 Subject: [PATCH] use movlw_movwf_spbrg because it has error handling --- cebpic/nmra-stream.asm | 4 +--- detpic/nmra-stream.asm | 4 +--- iwjpictest/harness.asm | 3 +-- 3 files changed, 3 insertions(+), 8 deletions(-) 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<