Re: Using TCR1 on MPC5554
"Robert Morin" <[email protected]> Thu, 09 Nov 2006 21:32:51 -0000
| Newsgroups | gmane.comp.hardware.motorola.microcontrollers |
|---|---|
| Message-ID | <[email protected]> |
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 ? > > > -- > > POPI Classification: > > (X) General Business Information > ( ) Motorola and Freescale Internal Use Only > ( ) Motorola and Freescale Confidential Proprietary > > Celso Brites > Motorola - Semiconductor Products Sector > BSTC - Rod SP-340 > Jaguariuna - Brazil 13820-000 > Tel +55-19-3847-8437 > Fax +55-19-3847-8203 >