Input Capture - Microchip Taiwan
Input Capture - Microchip Taiwan
Input Capture - Microchip Taiwan
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
<strong>Input</strong> <strong>Capture</strong> 練 習 一<br />
使 用 APP026-3X<br />
實 驗 板<br />
• 承 接 OC_Exercise 練 習 ,<br />
將 PICDEM Mechatronics<br />
J7 的 另 一 接 腳 接 至<br />
PIC24FJ128GB106 的<br />
IC7 input<br />
• 完 成 在 IC_Exercise 專 案<br />
中 IC_main.c 內 對 IC7 的<br />
初 始 化<br />
• 使 用 iPPS<strong>Input</strong> () 來 規 劃<br />
IC7 的 輸 入 腳 為 RP4<br />
• 使 用 Timer3 的 clock 設 定<br />
為 Time-Base 來 源 , 並 將<br />
Prescaler 設 為 1:64<br />
• 設 定 每 2 次 capture event<br />
就 中 斷 CPU<br />
• 設 定 為 每 個 “Rising Edge”<br />
觸 發 capture( ICM = 010 )<br />
dsPIC Peripheral Module Training – RTC <strong>Taiwan</strong><br />
SLIDE 21