32 bit counter using Flex Timer Module

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

32 bit counter using Flex Timer Module

1,257 Views
pmeharwade
Contributor I

Hi. I am trying to obtain a 32 bit counter using two 16 bit counters of the Flex Timer embedded in the LS1021a module. I read the reference manual for LS1021a and found that it is possible to chain two FlexTimer modules to get a bigger 32-bit counter. The steps to chain two FlexTimer modules are as follows:

1) CH7 is internally connected for chaining functionality.

2) Connecting CH7 output of FlexTimer-B to PHA input of FlexTimer-A.

3) Tieing PHB input of FlexTimer-A to one.

4) Programming FlexTimer-A to be in quad-mode.

Can anyone please let me know the exact register values (or the register field values) required to accomplish the task. Thank you in advance

0 Kudos
2 Replies

735 Views
ufedor
NXP Employee
NXP Employee

32bit Flextimer support patch attached. The patch was generated based on SDK2.0.

0 Kudos

735 Views
pmeharwade
Contributor I

Thank you so much for the reply. I am new to the module and currently I am

trying to access the counter by writing to the registers directly using the

register addresses (using u boot and not C code). Is it possible to chain

the FTM modules by directly writing to the memory? If yes, I would

appreciate if you could help me know the exact register values to chain the

two FTM modules. Meanwhile I will also try to understand the register

values by going through your code thoroughly. Thank you once again.

Regards,

Pavan Vishnu Meharwade

On Sun, Jul 3, 2016 at 11:12 AM, ufedor <admin@community.freescale.com>

0 Kudos