ZVMC256 TIM0 CH1 set as input capture

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

ZVMC256 TIM0 CH1 set as input capture

708 Views
shiweili
Contributor I

Dear Community,

MCU:ZVMC256

Module:TIM0CH1 Set as input capture

Question: When I used BDM for background debugging, the input capture function worked fine .However, when the MCU was reset after a power on, the input capture function did not work properly.

My code was generated by processor experts,The specific configuration is shown in the figure below:

Figure 1  Input capture channel configuration

Figure 2  MCU clock configuration

Tags (1)
0 Kudos
1 Reply

605 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hello shiweili,

I can’t see the figures in the post.
What does it mean that it does not work properly?
The MCU is in Special Mode during debugging but in Normal Mode after POR.
Some registers have a different read/write specification in the modes.
For example:
pastedImage_1.png
Could you share a test project?
You can refer to this example:

S12ZVL-TIM-FrequencyMeasurement-V1_0-CW106-TIC-EXAMPLE 

BR, Daniel

0 Kudos