How to create an external output clock signal (4MHz) with iMXRT1050 EVKB

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

How to create an external output clock signal (4MHz) with iMXRT1050 EVKB

627 Views
derickbengyuh
Contributor II

Hi, 

i have been implementing the EMV Spec (SmartCard applications). for a while now with other boards and came across the iMXRT1050 whose power attracted my attention. I immediately bought one and try to port my application to it. 

My first challenge is that of creating a phase locked clk signal of about 4MHz. I have imported the Pwm example and adapted the frequence to run with 4MHz, but the signal does not look stable. 

I measured it with Saleae Logic analyzer. If you scroll to the right, you would realize, some how the duty cycle seems to have changed. 

This is how i changed the main code to look like. I just put out the initialization and start function of the pwm 

and also left the duty cycle at 100, because the it is set to 50, when the duty cycle is greater than 99. 

This method of generating external clk signal does not fit well. My question is, is there another way of achieving this with this processor?

BR

Derick

Labels (1)
Tags (3)
0 Kudos
1 Reply

573 Views
jeremyzhou
NXP Employee
NXP Employee

Hi  Derick Beng Yuh,

Thank you for your interest in NXP Semiconductor products and for the opportunity to serve you.
1) This method of generating external CLK signal does not fit well. My question is, is there another way of achieving this with this processor?
-- I'd like to suggest you can try to output the clock source via the CCM_CLKO1 and CCM_CLKO2 instead of utilizing the timer module to generate the PWM if you're unsatisfied with the method.

pastedImage_1.png

Have a great day,

TIC

 

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

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos