Re: Understanding how to set TPU parameters
"murphynetuk" <[email protected]>
| Newsgroups | gmane.comp.hardware.motorola.microcontrollers |
|---|---|
| Message-ID | <[email protected]> |
These are from the mpc5xx header files: Generically: TPU_X.PARM[Y][Z] means TPU 'X'(A, B or C), channel 'Y', parameter RAM location 'Z' so in your case below the assignments are: TPU 'B' Channel '0' PRAM '0' = 0x0006 etc. Note the .R suffix means you are writing to the whole 16bit register. Which PRAM locations do what for QOM are described in TPUN01.pdf Ian --- In [email protected], "ratell01" <jon.ratelle@g...> wrote: > > Hi, > > I would like to know how we can find the right value for the > parameters PARM[][] like in the following example. > > tpu_func_p (tpub, 0, TPU_QOM); > TPU_HSQ_P (tpub, 0, 2); > TPU_B.PARM[0][0].R = 0x0006; > TPU_B.PARM[0][1].R = 0x0000; > TPU_B.PARM[0][2].R = 0x9242; > TPU_B.PARM[0][3].R = 0x9243; > TPU_HSR_P (tpub, 0, 1); > > I know that this code outputs a QOM signal and I have played around > with some random parameters. I have check in the AN2374.pdf and > TPUN01.pdf, but I don't see explicit stuff on that. I would like to > know what the bits set to be able to put correct values. > > So if you know how or where I can find that information, I will > appreciate. > > Thanks > Jonathan > ------------------------ Yahoo! Groups Sponsor --------------------~--> Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/dN_tlB/TM --------------------------------------------------------------------~-> ----------------------------------------------------------- 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/