Example MPC5775K eTimer_PWM S32DS

File uploaded by Martin Kovar Employee on Mar 3, 2016
Version 1Show Document
  • View in full screen mode

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

* Detailed Description:

* Application performs basic initialization, setup PLL to maximum allowed freq.,

* setup clock for peripherals.

*

* This example shows, how to use some of ETimer modes. Channel 0 is set to

* Fixed-Frequency PWM Mode and generates PWM signal with approximate frequency

* 507Hz. This signal is routed to the UserLED1.

*

* Channel 1 is set to Count mode and generates 0,25 second interrupt.

* In the interrupt service routine, duty cycle is increased from 0% to 100%

* with step 6.25%. This shows for example, how can be controlled the brightness

* of the LED.

*

* Channel 2 is set to Variable-Frequency PWM Mode and generates PWM signal with

* frequency 10KHz. This signal is routed to the UserLED2.

*

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

* Test HW:         MPC5775K-356DS, MPC57xx Motherboard

* MCU:             PPC5775KMMY3A 0N76P

* Terminal:

* Fsys:            PLL0 266MHz

*                    Z4 Core 133MHz

* Debugger:        Lauterbach Trace32

*                  PeMicro USB-ML-PPCNEXUS

* Target:          internal_FLASH (debug mode, release mode)

* EVB connection:  UserLED1 connected to P19.0

*                     UserLED2 connected to P19.2

*

*

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

Outcomes