Input Capture - Microchip Taiwan
Input Capture - Microchip Taiwan
Input Capture - Microchip Taiwan
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
<strong>Input</strong> <strong>Capture</strong> 練 習 一<br />
使 用 APP020 實 驗 板<br />
• <strong>Input</strong> <strong>Capture</strong> 7 (IC7/RB4/AN4) 連 接 至 PIC12F675 的<br />
Pin-6 輸 出 來 測 其 輸 出 頻 率<br />
• 將 DSW4 的 SW1 置 於 ON 的 位 置 ( 將 IC7 與<br />
PIC12F675 的 Pin-6 相 連<br />
• 將 <strong>Input</strong> <strong>Capture</strong> mode 設 定 為 Edge Detection ,<br />
每 兩<br />
次 的 capture events 後 產 生 中 斷<br />
• 每 隔 200mS 將 frequency 及 period 顯 示 於 LCD<br />
• 改 變 VR3 應 該 可 看 到 頻 率 的 變 化 , 必 要 時 可 利 用 示 波 器<br />
來 確 認 所 測 得 的 頻 率 是 否 正 確 (0.8K ~ 3.8KHz)<br />
LCD Module display 的 範 例<br />
Freq. = 1238 Hz<br />
Period= 807 uS<br />
dsPIC Peripheral Module Training – RTC <strong>Taiwan</strong><br />
SLIDE 17