CC2650 SCS里的adcStartAuxTimer0Trigger() API變量是毫秒還是微妙?
來源:edatop
更新時間:2024-08-29
閱讀:
文檔里描述的是毫秒:
adcStartAuxTimer0Trigger
Prototype: adcStartAuxTimer0Trigger(#period)
Starts generation of periodical triggers to the ADC, using AUX Timer 0.
For synchronous mode, the trigger starts sampling followed by conversion.
For asynchronous mode, the trigger starts conversion.
Parameter value(s)
- #period - ADC sampling period in microseconds (5-21845)
但是SCS例程ADC Data Streamer里是微妙:
// Start ADC trigger timer at 20 kHz
adcStartAuxTimer0Trigger(50);
hi
單位應該是ms,我試過將變量設置為2000,測量波形是2ms的。文檔應該寫錯了。