I think you are confusing your timer and channel nomeclature
P1[18] can be programmed to be Capture input for Timer 1, channel 0. (from the User Manual)
But your code is programming T0_* which is Timer 0
Period Of A Sinewave?
Re: Period Of A Sinewave?
OK, I thought that it was Capture Register 1, Timer0. I'll correct that and try again.
Another confusing statement in the user manual for the Timer Control Register is:
'0 Counter Enable When one, the Timer Counter and Prescale Counter are enabled for counting. When 1,
the counters are disabled.'
Another confusing statement in the user manual for the Timer Control Register is:
'0 Counter Enable When one, the Timer Counter and Prescale Counter are enabled for counting. When 1,
the counters are disabled.'
-
- Posts: 8
- Joined: Fri Oct 19, 2012 5:55 am
- Contact:
Re: Period Of A Sinewave?
Doesn't make a lot of sense does it? That should read: "When zero, the counters are disabled."danlee58 wrote:When 1, the counters are disabled.'
Chris Burrows
CFB Software
Astrobe v4.4 (Mar 2013): Oberon Development System for the PRO-Plus and Super-PRO
CFB Software
Astrobe v4.4 (Mar 2013): Oberon Development System for the PRO-Plus and Super-PRO
Re: Period Of A Sinewave?
In newer NXP user manuals that line has been corrected (1 = enable, 0 = disable).
I'll check with NXP to see how / when those kinds of errors get updated user manuals.
I'll check with NXP to see how / when those kinds of errors get updated user manuals.
Re: Period Of A Sinewave?
OK, now the Interrupt is working. I can go on to check out the other functions.