eTPU

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

eTPU

1,108 Views
monicabagade
Contributor II

I am working on some project in which we are using MPC5634M.

In this I want to control stepper motor direction for which I want GPIO port to be used to make output as low/high. But in which from hardware side, it is given Step_dir - AN[15]/FCK/ETPU_A[29] which now we cant change. But this is an eTPU pin and not a GPIO pin.

The query is,  Can we use this eTPU as a output pin to make it as a high/low? as we want to control stepper direction.

If so How?

Kindly advise me on this. Thanks in advance.

Tags (2)
0 Kudos
1 Reply

672 Views
davidtosenovjan
NXP TechSupport
NXP TechSupport

Hi, it seems SIU_PCR215-218 does not have GPIO functionality. However how you told it can be configured for eTPU output. You can use GPIO eTPU and drive it by eTPU.

pastedImage_1.png

Below you can see a general answer regarding to eTPU. Pay attention to point no.2.

Also you could take a look on stepper motor eTPU function if it was an option for you:

http://www.nxp.com/files-static/online_tools/eTPU/SM.html

 

-----------------

 

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 FSL 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 need to write your own function or modify the existing one, you need eTPU compiler - either Freescale eTPU2 Development Suite (it is compiler + simulator)

 

or Ashware (their compiler and their simulator) or combination of ByteCraft compiler and Ashware simulator. Note that Freescale eTPU2 Development Suite is the newest product from mentioned options.

 

Typically developing process of eTPU function means using of eTPU compiler and simulator as well as debugger is usually of out game (for instance imagine motor driving when hardly you can put breakpoint to the code during runtime) and it is used to the test of application at the end. Thus debugger will be needed in conjunction CW for MPC55xx/MPC56xx.