Re: tpu initialization...

"csuozzo" <[email protected]>
Newsgroups gmane.comp.hardware.motorola.microcontrollers
Message-ID <[email protected]>
Ok, the MSI wiggler register window shows all my values in their 
respective registers at the conclusion of my initialization file. 
However, the memory window and the 'variables' pane of the ram.elf 
debug window show the all the values of the tpu registers to 
be 'FFFF', with the exception of the parameter ram.  Which is correct?


Chris



--- In [email protected], "csuozzo" <csuozzo@y...> wrote:
> Ronnie,
> 
> Yep, within main() I declare:
> 
> struct TPU3_tag *tpua = &TPU_A;
> 
> utilizing the framework layed out in m_tpu3.h with the base address 
> of TPU_A being defined in mpc555.h in conjunction with m_common.h. 
In 
> my tpu initialization c file, I assign values to: TPUMCR, TPUMCR3, 
> TICR, CPR0, CPR1, CFSR3, HSRR1 and the PARM[][].  Stepping further 
> through this function in debug mode, I've found the parameter ram 
is 
> the only part of that function that actually assigns my values...  
> 
> 
> Chris
> 
> 
> --- In [email protected], "Higgins, Ronnie" 
> <ronnie.higgins@h...> wrote:
> > If this is a dumb question I apologize.  Has tpua been assign to 
> the base
> > address of the TPU?
> > 
> > Ronnie Higgins
> > ronnie.higgins@h...
> > Ph. 913-712-2559
> > Fax. 913-712-2559 
> > -----Original Message-----
> > From: [email protected] [mailto:[email protected]] On 
> Behalf Of
> > csuozzo
> > Sent: Friday, April 29, 2005 3:42 PM
> > To: [email protected]
> > Subject: [MPC500] tpu initialization...
> > 
> > I'm having a little problem getting the TPU up and running using 
> the 
> > data structures defined in mpc555.h.  I'm currently using a 
Phytec 
> dev 
> > board w/ mpc555 and Codewarrior IDE.  As I run my program in 
debug 
> mode 
> > (step by step), I notice that none of the lines of code that 
assign 
> > values to the tpu registers actually change those values 
(starting 
> at 
> > 0x30400 for tpua).  They all retain their original value of 
> 0xFFFF.  
> > Ex.
> > 	tpua->TPUMCR.R = 0x6020;
> > doesn't do anything; the value in this register following 
execution 
> of 
> > this line of code is still 0xFFFF.
> > 
> > My program is pretty simple, just programming one of the TPU 
> channels 
> > for PWM and initializing. Does anyone know why this might be 
> happening?
> > 
> > Thanks,
> > 
> > Chris
> > 
> > 
> > 
> > 
> > 
> > -----------------------------------------------------------
> > To learn more about Freescale Microcontrollers, please visit
> > http://www.freescale.com/mcu
> > 
> > 
> >  
> > Yahoo! Groups Links





-----------------------------------------------------------
To learn more about Freescale Microcontrollers, please visit
http://www.freescale.com/mcu


 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/MPC500/

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.