Gordon:
Thanks for taking your time to answer.
Yes, it's the 9S12C32, and I selected 8 bit res, right justify.
*****
So, if using PTx as GPIO, all the associated bits in TCTL1 or TCTL2, and TCTL3 or TCTL4 should be zero? AND THE TIOSx bit?
I want to use GPIO to set ouput pin PT6, configure TC6 to go low later, without having to wait around for it to happen.
Can't test now, but like this?
;Set PT6
BSET PTT, $40
BSET DDRT, $40
BCLR TIOS, $40
BCLR TCTL1, $30
BCLR TCTL3, $30
; Pin goes low after 10msec
LDD TCNT
ADDD #$1388
STD TC6
BSET TIOS, $40
BSET TCTL1, $20
do more stuff
Message Edited by JohnnyP on 2006-12-2008:14 PM