From: ian Date: Sun, 27 Apr 2008 23:11:33 +0000 (+0000) Subject: when toggling booster output pin, use LATC not PORTC to change and check previous... X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ijackson/git?a=commitdiff_plain;h=dd7e792b48eebd914c9bca053de1e0546939c700;p=trains.git when toggling booster output pin, use LATC not PORTC to change and check previous value etc. --- diff --git a/detpic/nmra-stream.asm b/detpic/nmra-stream.asm index 14d8775..c3df85e 100644 --- a/detpic/nmra-stream.asm +++ b/detpic/nmra-stream.asm @@ -357,8 +357,8 @@ master_interrupt_high @ toggle_output debug 'l' ; write 'l' to serial port - btg_fa PORTC,0 ; toggle booster output pin - bt_fa_if0 PORTC,0 + btg_fa LATC,0 ; toggle booster output pin + bt_fa_if0 LATC,0 bra decide_next_bit ; we're in mid-bit: ; if transition was 0->1 then we are mid-bit, so copy transmitbit to diff --git a/hostside/TODO b/hostside/TODO index b5f2404..8b4c4ca 100644 --- a/hostside/TODO +++ b/hostside/TODO @@ -3,8 +3,6 @@ bugs multiple motions handling is wrong: deadline miscalculated etc. deadline should be start deadline and we should sub length - in nmra-stream.asm:toggle_output should use LATC not PORTC? - want to document commands [!]movfeat and speed