Example MPC5744P eTimer CTU ADC synchronization GHS614

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Example MPC5744P eTimer CTU ADC synchronization GHS614

Example MPC5744P eTimer CTU ADC synchronization GHS614

********************************************************************************

* Detailed Description:

*

*

* This example shows synchronization between eTimer, CTU and ADC modules.

* The eTimer0 module timer 2 is initialized to generate PWM signal, and rising edge

* of this signal is used to generate trigger signal for CTU module. The CTU module

* use one command list with 4 ADC_0 channels. Single conversion mode is used,

* so ADC0 ch0, ch1, ch2 and ch3 are sampled.

* ------------------------------------------------------------------------------

* Test HW:  MPC57xx

* Maskset:  1N65H

* Target :  internal_FLASH

* Fsys:     200 MHz PLL with 40 MHz crystal reference

*

* EVB connection:

*

* P8.1  - A[0]  .. GPIO output, used to see CTU-ADC ISR period

* P9.1     - B[7]  .. ADC0 AN[0] input

* P9.2     - B[8]  .. ADC0 AN[1] input

* P16.4 - I[3] .. CTU0 EXT TRG output

*

* see CTU0 EXT TRG output signal (toggle on each trigger) on P16.4 with respect of eTimer PWM signals.

*

********************************************************************************

Labels (1)
Attachments
Comments

Hi Pat,

Feel free to create a new thread. So others can also join a discussion.

If your questions are related to any issues in my examples than feel free to write here.

Peter

%3CLINGO-SUB%20id%3D%22lingo-sub-1103412%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EExample%20MPC5744P%20eTimer%20CTU%20ADC%20synchronization%20GHS614%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1103412%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E********************************************************************************%3C%2FP%3E%3CP%3E*%20Detailed%20Description%3A%3C%2FP%3E%3CP%3E*%3C%2FP%3E%3CP%3E*%3C%2FP%3E%3CP%3E*%20This%20example%20shows%20synchronization%20between%20eTimer%2C%20CTU%20and%20ADC%20modules.%3C%2FP%3E%3CP%3E*%20The%20eTimer0%20module%20timer%202%20is%20initialized%20to%20generate%20PWM%20signal%2C%20and%20rising%20edge%3C%2FP%3E%3CP%3E*%20of%20this%20signal%20is%20used%20to%20generate%20trigger%20signal%20for%20CTU%20module.%20The%20CTU%20module%3C%2FP%3E%3CP%3E*%20use%20one%20command%20list%20with%204%20ADC_0%20channels.%20Single%20conversion%20mode%20is%20used%2C%3C%2FP%3E%3CP%3E*%20so%20ADC0%20ch0%2C%20ch1%2C%20ch2%20and%20ch3%20are%20sampled.%3C%2FP%3E%3CP%3E*%20------------------------------------------------------------------------------%3C%2FP%3E%3CP%3E*%20Test%20HW%3A%26nbsp%3B%20MPC57xx%3C%2FP%3E%3CP%3E*%20Maskset%3A%26nbsp%3B%201N65H%3C%2FP%3E%3CP%3E*%20Target%20%3A%26nbsp%3B%20internal_FLASH%3C%2FP%3E%3CP%3E*%20Fsys%3A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20200%20MHz%20PLL%20with%2040%20MHz%20crystal%20reference%3C%2FP%3E%3CP%3E*%3C%2FP%3E%3CP%3E*%20EVB%20connection%3A%3C%2FP%3E%3CP%3E*%3C%2FP%3E%3CP%3E*%20P8.1%26nbsp%3B%20-%20A%5B0%5D%26nbsp%3B%20..%20GPIO%20output%2C%20used%20to%20see%20CTU-ADC%20ISR%20period%3C%2FP%3E%3CP%3E*%20P9.1%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20-%20B%5B7%5D%26nbsp%3B%20..%20ADC0%20AN%5B0%5D%20input%3C%2FP%3E%3CP%3E*%20P9.2%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20-%20B%5B8%5D%26nbsp%3B%20..%20ADC0%20AN%5B1%5D%20input%3C%2FP%3E%3CP%3E*%20P16.4%20-%20I%5B3%5D%20..%20CTU0%20EXT%20TRG%20output%3C%2FP%3E%3CP%3E*%3C%2FP%3E%3CP%3E*%20see%20CTU0%20EXT%20TRG%20output%20signal%20(toggle%20on%20each%20trigger)%20on%20P16.4%20with%20respect%20of%20eTimer%20PWM%20signals.%3C%2FP%3E%3CP%3E*%3C%2FP%3E%3CP%3E********************************************************************************%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-1103412%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E********************************************************************************%3C%2FP%3E%3CP%3E*%20Detailed%20Description%3A%3C%2FP%3E%3CP%3E*%3C%2FP%3E%3CP%3E*%3C%2FP%3E%3CP%3E*%20This%20example%20shows%20synchronization%20between%20eTimer%2C%20CTU%20and%20ADC%20modules.%3C%2FP%3E%3CP%3E*%20The%20eTimer0%20module%20timer%202%20is%20initialized%20to%20generate%20PWM%20signal%2C%20and%20rising%20edge%3C%2FP%3E%3CP%3E*%20of%20this%20signal%20is%20used%20to%20generate%20trigger%20signal%20for%20CTU%20module.%20The%20CTU%20module%3C%2FP%3E%3CP%3E*%20use%20one%20command%20list%20with%204%20ADC_0%20channels.%20Single%20conversion%20mode%20is%20used%2C%3C%2FP%3E%3CP%3E*%20so%20ADC0%20ch0%2C%20ch1%2C%20ch2%20and%20ch3%20are%20sampled.%3C%2FP%3E%3CP%3E*%20------------------------------------------------------------------------------%3C%2FP%3E%3CP%3E*%20Test%20HW%3A%26nbsp%3B%20MPC57xx%3C%2FP%3E%3CP%3E*%20Maskset%3A%26nbsp%3B%201N65H%3C%2FP%3E%3CP%3E*%20Target%20%3A%26nbsp%3B%20internal_FLASH%3C%2FP%3E%3CP%3E*%20Fsys%3A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20200%20MHz%20PLL%20with%2040%20MHz%20crystal%20reference%3C%2FP%3E%3CP%3E*%3C%2FP%3E%3CP%3E*%20EVB%20connection%3A%3C%2FP%3E%3CP%3E*%3C%2FP%3E%3CP%3E*%20P8.1%26nbsp%3B%20-%20A%5B0%5D%26nbsp%3B%20..%20GPIO%20output%2C%20used%20to%20see%20CTU-ADC%20ISR%20period%3C%2FP%3E%3CP%3E*%20P9.1%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20-%20B%5B7%5D%26nbsp%3B%20..%20ADC0%20AN%5B0%5D%20input%3C%2FP%3E%3CP%3E*%20P9.2%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20-%20B%5B8%5D%26nbsp%3B%20..%20ADC0%20AN%5B1%5D%20input%3C%2FP%3E%3CP%3E*%20P16.4%20-%20I%5B3%5D%20..%20CTU0%20EXT%20TRG%20output%3C%2FP%3E%3CP%3E*%3C%2FP%3E%3CP%3E*%20see%20CTU0%20EXT%20TRG%20output%20signal%20(toggle%20on%20each%20trigger)%20on%20P16.4%20with%20respect%20of%20eTimer%20PWM%20signals.%3C%2FP%3E%3CP%3E*%3C%2FP%3E%3CP%3E********************************************************************************%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1103412%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3EGeneral%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1103413%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20Example%20MPC5744P%20eTimer%20CTU%20ADC%20synchronization%20GHS614%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1103413%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%20Pat%2C%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3EFeel%20free%20to%20create%20a%20new%20thread.%20So%20others%20can%20also%20join%20a%20discussion.%3C%2FP%3E%3CP%3EIf%20your%20questions%20are%20related%20to%20any%20issues%20in%20my%20examples%20than%20feel%20free%20to%20write%20here.%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3EPeter%3C%2FP%3E%3C%2FLINGO-BODY%3E
No ratings
Version history
Last update:
‎04-14-2015 05:23 AM
Updated by: