Using MQX to generate timing pulses less than 1ms

cancel
Showing results for 
Search instead for 
Did you mean: 

Using MQX to generate timing pulses less than 1ms

584 Views
MWMinor
Contributor IV

I am working with a K60D100M processor and want to use the internal ADC to sample an analogue signal every 50us.

The timer functions I have used before like timer_start_periodic_at_ticks, don't seem too work when the intervals are less than 1 or 2ms.

Is there an alternative timer function which will work when the period is in the region of 50us intervals...?

Thanks

Ken

1 Reply

444 Views
RadekS
NXP Employee
NXP Employee

I would like to recommend hwtimer driver in this case.

Example:

c:\Freescale\Freescale_MQX_4_1\mqx\examples\hwtimer\..

Source:

c:\Freescale\Freescale_MQX_4_1\mqx\source\io\hwtimer\..

Documentation:

c:\Freescale\Freescale_MQX_4_1\doc\mqx\MQX_IO_User_Guide.pdf

I hope it helps you.

Have a great day,
RadekS

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