Re: Using TCR1 on MPC5554
Celso Brites <[email protected]> Mon, 13 Nov 2006 09:32:57 -0200
| Newsgroups | gmane.comp.hardware.motorola.microcontrollers |
|---|---|
| Organization | Freescale Semiconductors |
| Message-ID | <[email protected]> |
Robert, leave ETPU_REDCR with the reset values, if you configure it as a STAC client (REN1=1, RSC1=0) it won't increment. The ETPU_TBCR value seems correct. Any chance you have the engine stopped? What do you read from ETPU_ECR1? Celso Robert Morin wrote: > Hi Celso, > > I set up the ETPU_TBCR for TCR1 to use the system clock divided by 2 > and a prescaler set to 112 (0xC3FC0020= > > 0x2000806f) but reading > ETPU_TCR1 (0xC3FC0024) always read 0. > > I tried to setup ETPU_REDCR with REN1 and RSC1 but no result. > > Robert > > > > > Yes, you can read TCR1 value from register ETPUTCR1. > > Don't even have to run any code on the eTPU, just setup the clock source > > and prescaler on register ETPUTBCR. > > > > Regards, > > Celso > > > > Robert Morin wrote: > > > > > Hi, > > > > > > is it possible to use TCR1 on a eTPU (A or B) as a free-running > > > counter that can > > > be read by the CPU ? >