Using MQX to generate timing pulses less than 1ms

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Using MQX to generate timing pulses less than 1ms

1,485件の閲覧回数
MWMinor
Contributor V

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 返信

1,345件の閲覧回数
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!
-----------------------------------------------------------------------------------------------------------------------