RE: eTPU Initialization
"Dobbin Allan-r11834" <[email protected]> Tue, 5 Dec 2006 10:05:43 -0700
| Newsgroups | gmane.comp.hardware.motorola.microcontrollers |
|---|---|
| Message-ID | <4147ED8B92A864498825C07E53594E4A01C081CB@az33exm20.fsl.freescale.net> |
Although the steps below would get you started, I've adjusted the ordering as recommended in section 12.1 of the ETPURM which is available from freescale.com. - clear interrupt status (write 1's to CISR). (omit if no interrupts) - configure interrupt priority in INTC_CPR, set IVOR4 pointer, set MSR EE bit, set ETPU channel interrupt priority in INTC_CPRx. (omit if no interrupts) - set MDIS in ECR_A and ECR_B to stop engines, then set VIS in MCR to gain access to SCM (aka DPRAM). - move code and entry points into SCM. - enable pads for EPTU in SIU PCR registers. - clear MCR_VIS - clear MDIS and set ETB to correspond to entry points for both engines in ECR_A and ECR_B respectively. - configure time bases in TBCR_A, TBCR_B. - clear channel priority CnCR_CPR to 0 to disable channel, set CnCR_CFS to desired function number.. - init the paramater RAM as required for your functions. - setup HSRR for all channels. - set CnCR_CIE (or CIER) to enable or disable channel interrupts. - set MCR_GTBE to enable clocks to both engines simultaneously. - set channel priority CnCR_CPR to enable the channel.. - actions vary depending on function i.e. access parameter RAM, monitor signals, monitor status, etc. - Allan ________________________________ From: [email protected] [mailto:[email protected]] On Behalf Of Dobbin Allan-r11834 Sent: Tuesday, December 05, 2006 9:51 AM To: [email protected] Subject: RE: [MPC500] eTPU Initialization A general (unofficial) procedure for running the ETPU on MPC5554 with interrupts would be as follows: - clear interrupt status (write 1's to CISR). (omit if no interrupts) - configure interrupt priority in INTC_CPR, set IVOR4 pointer, set MSR EE bit, set ETPU channel interrupt priority in INTC_CPRx. (omit if no interrupts) - set MDIS in ECR_A and ECR_B to stop engines, then set VIS in MCR to gain access to SCM (aka DPRAM). - move code and entry points into SCM. - enable pads for EPTU in SIU PCR registers. - clear VIS and set GTBE (both MCR) to enable clocks to both engines - clear MDIS and set ETB to correspond to entry points for both engines in ECR_A and ECR_B respectively. - configure time bases in TBCR_A, TBCR_B. - set channel priority CnCR_CPR. (omit if no interrupts) - init the paramater RAM as required for your functions. - set CnCR_CIE to enable channel interrupts. (omit if no interrupts) - setup HSRR for all channels to start thread. - actions vary depending on function i.e. access parameter RAM, monitor signals, monitor status, etc. - Allan ________________________________ From: [email protected] <mailto:MPC500%40yahoogroups.com> [mailto:[email protected] <mailto:MPC500%40yahoogroups.com> ] On Behalf Of Dees Randy-rsaf30 Sent: Tuesday, December 05, 2006 9:00 AM To: [email protected] <mailto:MPC500%40yahoogroups.com> Subject: RE: [MPC500] eTPU Initialization yes, you must copy the eTPU program into the eTPU Program SRAM space. you then need to initialize the eTPU to use the functions. how to initialize the functions and interrupt handling is dependent on the function and your application requirements. GCT can be used if desired. ________________________________ From: [email protected] <mailto:MPC500%40yahoogroups.com> <mailto:MPC500%40yahoogroups.com> [mailto:[email protected] <mailto:MPC500%40yahoogroups.com> <mailto:MPC500%40yahoogroups.com> ] On Behalf Of harini m Sent: Tuesday, December 05, 2006 1:15 AM To: mpc500 group Subject: [MPC500] eTPU Initialization Hi all I have worked on TPU on MPC565. I used TPU emulation mode for my application. Now I am working on MPC5554 microcontroller. Could any one please suggest me how to start with eTPU. I want to use eTPU set1 functions. Do I need to copy the microcode image into eTPU DPRAM before Initialize the eTPU(same thing emulation mode in TPU). Please tell me how to initialize the functions and Interrupt handling of functions(GCT is it required). . <http://geo.yahoo.com/serv?s=97359714/grpId=6276387/grpspId=1706554205/m <http://geo.yahoo.com/serv?s=97359714/grpId=6276387/grpspId=1706554205/m > <http://geo.yahoo.com/serv?s=97359714/grpId=6276387/grpspId=1706554205/m <http://geo.yahoo.com/serv?s=97359714/grpId=6276387/grpspId=1706554205/m > > sgId=3779/stime=1165302927/nc1=3848615/nc2=4025338/nc3=3848542> [Non-text portions of this message have been removed] [Non-text portions of this message have been removed] [Non-text portions of this message have been removed]