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.
How to use FTM1 channel 1 if that register is not there???
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!
-----------------------------------------------------------------------------------------------------------------------
No it didn't work that way.I did it.Please refer the pictures
Eventhough I included FTM1 as you said but it didn't workout.How to fix this?Does FTM1 supports channels???
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 .
If still have error, you can send your project to me , i will check it on my side .
Hope it helps
Alice
Hello
Please add the macro define
#define FTM1_OUTMASK | FTM_OUTMASK_REG(FTM1_BASE_PTR) |
to the SKEAZ128.h file :
then build , there is no error :
Have a great day,
Alice Yang
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
I did it in the same way but it didn't work