Posted by Neil Davey Code Segment: TW.TIOR0.BIT.IOA = 2; // 0 output on compare TW.TCRW.BIT.TOA = 1; // set output value TW.TCRW.BIT.TOC = 1; // set output value TW.TCNT = 0x0000; // clear counter TW.GRA = 0x0000; // setup compare TW.TMRW.BIT.CTS = 1;// stop timer TW.TCRW.BIT.CKS = 0; // set clock to clk if(counter == 0) TW.TCRW.BIT.TOA = 0; // set output value NOTE: counter decremented in a timer V ISR, this code from main Cheers
![]()
on February 17, 2003, 21:26:12, in reply to "Re: Weird FTIO problem on 3664 EDK"
132.234.251.211
Hi,
I'm using TW.TCRW.BIT.TOA = 1 or 0 to change the state I have nothing but a cro connected to two pins I'm monitoring and nothing connected to the others. I'm using all FTIO pins as output compares and I'm not using the timer in PWM Mode.
TW.TIOR0.BIT.IOB = 2; // 0 output on compare
TW.TIOR1.BIT.IOC = 2; // 0 output on compare
TW.TIOR1.BIT.IOD = 2; // 0 output on compare
TW.TCRW.BIT.TOB = 1; // set output value
TW.TCRW.BIT.TOD = 1; // set output value
TW.GRB = 0x0000; // setup compare
TW.GRC = 0x0000; // setup compare
TW.GRD = 0x0000; // setup compare
{
counter = 4800;
TW.GRA = TW.TCNT + 0x1000; // setup compare
}
Neil
--Previous Message--
: Hi Neil
: What instruction are you writing to
: change the state of the FTIOA pin?
: What have you got connected to
: the other FTIO pins? Are they
: inputs or outputs? Are you using
: the timer in PWM mode?
:
: --Previous Message--
: Got some weird things happening with
: the FTIO outputs on a 3664 EDK.
: When I set one high (TOA = 1) I
: get other FTIO pins turning on
: even though they are low and not
: altered in the same code piece. Is
: there something funky with timer W
: that I'm missing...
: Cheers
: :
:
Message Thread:
![]()
« Back to thread
Evaluation Kit Support
Renesas Evaluation Boards are intended for evaluation of Renesas microprocessors only, not as development tools.