Re: Using TCR1 on MPC5554
"Robert Morin" <[email protected]> Tue, 14 Nov 2006 16:16:34 -0000
| Newsgroups | gmane.comp.hardware.motorola.microcontrollers |
|---|---|
| Message-ID | <[email protected]> |
Hi Celso, I forgot to say that ETPU_MCR[GTBE] was not set. Robert > > 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 ? > > >