Period Of A Sinewave?

Questions on other types of hardware and getting it talking to the ARM CPU
basicchip
Posts: 1090
Joined: Fri Oct 19, 2012 2:39 am
Location: Weeki Watchee, FL
Contact:

Re: Period Of A Sinewave?

Post by basicchip »

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



danlee58
Posts: 210
Joined: Thu Jan 17, 2013 2:29 am

Re: Period Of A Sinewave?

Post by danlee58 »

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.'

cfbsoftware
Posts: 8
Joined: Fri Oct 19, 2012 5:55 am
Contact:

Re: Period Of A Sinewave?

Post by cfbsoftware »

danlee58 wrote:When 1, the counters are disabled.'
Doesn't make a lot of sense does it? That should read: "When zero, the counters are disabled."
Chris Burrows
CFB Software
Astrobe v4.4 (Mar 2013): Oberon Development System for the PRO-Plus and Super-PRO

basicchip
Posts: 1090
Joined: Fri Oct 19, 2012 2:39 am
Location: Weeki Watchee, FL
Contact:

Re: Period Of A Sinewave?

Post by basicchip »

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.

danlee58
Posts: 210
Joined: Thu Jan 17, 2013 2:29 am

Re: Period Of A Sinewave?

Post by danlee58 »

OK, now the Interrupt is working. I can go on to check out the other functions.

Post Reply