example code for ETPU2 in MPC5644A

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

example code for ETPU2 in MPC5644A

1,068件の閲覧回数
rajiilangovan
Contributor II

Hi friend,

           i am studied about eTPU2 in MPC5644A. So please give me a example code for that timer for clear understand.

ラベル(1)
0 件の賞賛
2 返答(返信)

604件の閲覧回数
davidtosenovjan
NXP TechSupport
NXP TechSupport

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

1) with using of eTPU functions prepared by Freescale

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

Ad 1)

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

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

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

http://www.freescale.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:

https://www.freescale.com/webapp/Download?colCode=ETPUGCT&appType=license&location=null&Parent_nodeI...

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

http://cache.freescale.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.freescale.com/webapp/sps/site/prod_summary.jsp?code=eTPU&fpsp=1&tab=Documentation_Tab

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.

0 件の賞賛

604件の閲覧回数
rajiilangovan
Contributor II

Thank you for your reply.

i need a code for generating delay using eTPU.So Please send me a simple code for my understanding.

0 件の賞賛