Example MPC5744P STM timer S32DS Power 2017.R1

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

Example MPC5744P STM timer S32DS Power 2017.R1

Example MPC5744P STM timer S32DS Power 2017.R1

********************************************************************************
* Detailed Description:
* Application performs basic initialization, setup PLL to maximum allowed freq.,
* initializes interrupts. STM_0 channel 0 is initialized to generate 100ms
* periodic interrupt. Notice that STM is free running up counter, so it's
* necessary to add calculated value to compare register each time in ISR handler.
*
* Test HW:         X-MPC5744PE257DC, MPC57xx motherboard
* MCU:             SPC5744PGMMM9 1N15P
* Fsys:            200 MHz
* Debugger:        Lauterbach Trace32
*                  PeMicro USB-ML-PPCNEXUS
* Target:          internal_FLASH (debug mode, release mode)
* EVB connection:  User LED 1 connected to A0 (P8.0),
*
********************************************************************************

Attachments
Comments

Excellent !

666

%3CLINGO-SUB%20id%3D%22lingo-sub-1100120%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EExample%20MPC5744P%20STM%20timer%20S32DS%20Power%202017.R1%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1100120%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E********************************************************************************%3CBR%20%2F%3E*%20Detailed%20Description%3A%3CBR%20%2F%3E*%20Application%20performs%20basic%20initialization%2C%20setup%20PLL%20to%20maximum%20allowed%20freq.%2C%3CBR%20%2F%3E*%20initializes%20interrupts.%20STM_0%20channel%200%20is%20initialized%20to%20generate%20100ms%3CBR%20%2F%3E*%20periodic%20interrupt.%20Notice%20that%20STM%20is%20free%20running%20up%20counter%2C%20so%20it's%3CBR%20%2F%3E*%20necessary%20to%20add%20calculated%20value%20to%20compare%20register%20each%20time%20in%20ISR%20handler.%3CBR%20%2F%3E*%3CBR%20%2F%3E*%20Test%20HW%3A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20X-MPC5744PE257DC%2C%20MPC57xx%20motherboard%3CBR%20%2F%3E*%20MCU%3A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20SPC5744PGMMM9%201N15P%3CBR%20%2F%3E*%20Fsys%3A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20200%20MHz%3CBR%20%2F%3E*%20Debugger%3A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Lauterbach%20Trace32%3CBR%20%2F%3E*%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20PeMicro%20USB-ML-PPCNEXUS%3CBR%20%2F%3E*%20Target%3A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20internal_FLASH%20(debug%20mode%2C%20release%20mode)%3CBR%20%2F%3E*%20EVB%20connection%3A%26nbsp%3B%20User%20LED%201%20connected%20to%20A0%20(P8.0)%2C%3CBR%20%2F%3E*%3CBR%20%2F%3E********************************************************************************%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-1100120%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E********************************************************************************%3CBR%20%2F%3E*%20Detailed%20Description%3A%3CBR%20%2F%3E*%20Application%20performs%20basic%20initialization%2C%20setup%20PLL%20to%20maximum%20allowed%20freq.%2C%3CBR%20%2F%3E*%20initializes%20interrupts.%20STM_0%20channel%200%20is%20initialized%20to%20generate%20100ms%3CBR%20%2F%3E*%20periodic%20interrupt.%20Notice%20that%20STM%20is%20free%20running%20up%20counter%2C%20so%20it's%3CBR%20%2F%3E*%20necessary%20to%20add%20calculated%20value%20to%20compare%20register%20each%20time%20in%20ISR%20handler.%3CBR%20%2F%3E*%3CBR%20%2F%3E*%20Test%20HW%3A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20X-MPC5744PE257DC%2C%20MPC57xx%20motherboard%3CBR%20%2F%3E*%20MCU%3A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20SPC5744PGMMM9%201N15P%3CBR%20%2F%3E*%20Fsys%3A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20200%20MHz%3CBR%20%2F%3E*%20Debugger%3A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Lauterbach%20Trace32%3CBR%20%2F%3E*%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20PeMicro%20USB-ML-PPCNEXUS%3CBR%20%2F%3E*%20Target%3A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20internal_FLASH%20(debug%20mode%2C%20release%20mode)%3CBR%20%2F%3E*%20EVB%20connection%3A%26nbsp%3B%20User%20LED%201%20connected%20to%20A0%20(P8.0)%2C%3CBR%20%2F%3E*%3CBR%20%2F%3E********************************************************************************%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1100122%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20Example%20MPC5744P%20STM%20timer%20S32DS%20Power%202017.R1%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1100122%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E666%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1100121%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20Example%20MPC5744P%20STM%20timer%20S32DS%20Power%202017.R1%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1100121%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EExcellent%20!%3C%2FP%3E%3C%2FLINGO-BODY%3E
100% helpful (1/1)
Version history
Last update:
‎05-07-2019 12:40 AM
Updated by: