FTM1 - Channel 1 in KEA-128

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

FTM1 - Channel 1 in KEA-128

733 Views
vigneshbalaji
Senior Contributor I

Hi,

     I want to use FTM1 Channel 1 in KEA-128 But I found that FTM1_OUTINIT which is the register for initializing the output channel in FTM1 doesnot exist.

This is the Screenshot of it.

141022_141022.pngScreenshot (36).png

 

How to use FTM1 channel 1 if that register is not there???

Labels (1)
0 Kudos
6 Replies

563 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello VIGNESH,

For one hand , you can define it by yourself refer to the FTM2_OUTINIT  :

#define FTM1_OUTINIT                       FTM_OUTINIT_REG(FTM1_BASE_PTR)

For other hand you can directly use "FTM_OUTINIT_REG(FTM1_BASE_PTR)".

Hope it helps


Have a great day,
Alice Yang

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

563 Views
vigneshbalaji
Senior Contributor I

No it didn't work that way.I did it.Please refer the pictures

Screenshot (39).png

Screenshot (40).png

Eventhough I included FTM1 as you said but it didn't workout.How to fix this?Does FTM1 supports channels???

0 Kudos

563 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello ,

For the macro of "FTM1_OUTMASK   " also have not define in the SKEA1284.h file .

If you want use it  , it also need to define .

And from the reference manual of the KEA128, we can see the FTM1 have these channel and registers .

pastedImage_0.png

pastedImage_1.png

If still have error,  you can send your project to me , i will check it on my side .

Hope it helps

Alice

0 Kudos

563 Views
vigneshbalaji
Senior Contributor I

I want to use PTE7 as the output from channel 1 but that register is not

there.I have attached my project.

On Tue, Feb 16, 2016 at 2:40 PM, Alice_Yang <admin@community.freescale.com>

0 Kudos

563 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello

Please add the macro define

#define FTM1_OUTMASK                       FTM_OUTMASK_REG(FTM1_BASE_PTR)

to the SKEAZ128.h file :

pastedImage_0.png

then build , there is no error :

pastedImage_2.png


Have a great day,
Alice Yang

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

563 Views
vigneshbalaji
Senior Contributor I

I did it in the same way but it didn't work

0 Kudos