MPC5775E PWM

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

MPC5775E PWM

710 Views
Birsen
Contributor II

Hi NXP Community, I want to create three phase PWM on my mpc5775e EVB board. How I do it. I am a little confused. Are there any examples? Which peripherals sholud I use?

 

Thank you.

0 Kudos
Reply
3 Replies

640 Views
davidtosenovjan
NXP TechSupport
NXP TechSupport

On this device you apparently use eTPU module. Pay attention to function selector link below, SPWM function or motor control function set. You could possibly use also eMIOS module, but it is not so universal and depends mainly on the end application which option is the most suitable one.

Below you can read generic answer how to use eTPU:

----------

eTPU is an complex I/O co-processor. You can use it two ways:

1) with using of eTPU functions prepared by NXP

2) to create your own function or modify NXP’s function

 

Ad 1)

For using eTPU functions pre-prepared by NXP (the ones you can download by eTPU Function Selector) without modification you don’t need any eTPU compiler. See

http://www.nxp.com/webapp/etpu/

 

Also there is some new version, currently containing only some functions:

http://www.nxp.com/webapp/etpu_cw/

 

Only download them, configure by eTPU graphical configuration tool (GCT), include all needed files to CodeWarrior or other compiler and use it.

 

GCT is the tool which is intended to configure most of functions prepared by NXP that can be downloaded as a pack here:

http://www.nxp.com/webapp/sps/download/license.jsp?colCode=ETPUGCT&Parent_nodeId=1311258915317726989...

 

Here you can example procedure how to use eTPU PWM function, step by step:

http://www.nxp.com/files/soft_dev_tools/doc/app_note/AN4687.pdf

 

Every eTPU FUNCTION has its own descriptive documents (application note), its software attachment usually contains some simple example code:

http://www.nxp.com/products/automotive-products/microcontrollers-and-processors/32-bit-power-archite...

 

 

Ad 2)

If you cannot fit our existing eTPU function to your application you can write your own function or modify the existing one you will need eTPU compiler and simulator.

 

Currently there are 2 options:

1) Ashware solution (compiler + simulator)

https://www.ashware.com/etpu2-simulators

 

2) NXP eTPU2 Development Suite (compiler + simulator)

http://www.nxp.com/products/automotive-products/microcontrollers-and-processors/32-bit-power-archite...

 

Buying of following book could be good start point for developing you own eTPU function or library:

https://www.ashware.com/etpu-programming-made-easy-book

0 Kudos
Reply

630 Views
Birsen
Contributor II

Thank you, I used MPC 5777C eTPU code as referance  code.  However the code stopped at fs_memset32() function. it stopped at "*p++ = value;", reporting align 4 IVOR1_Vector: e_b   IVOR1_Handler.  what is wrong in my code?

NOT: I used MPC5775E EVB card.

0 Kudos
Reply

577 Views
davidtosenovjan
NXP TechSupport
NXP TechSupport

You could investigate Machine Check Syndrome Register (MCSR) to find out what is primary machine check reason.

 

0 Kudos
Reply