29.04.2015 Views

Input Capture - Microchip Taiwan

Input Capture - Microchip Taiwan

Input Capture - Microchip Taiwan

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

設 定 於 Edge Detection Mode<br />

來 計 算 <strong>Input</strong> Duty<br />

• ICM = 001, 來 規 劃 為 每 次 的 edge change 都 產 生<br />

capture 事 件<br />

• ICI = 01, 設 定 每 兩 次 capture 事 件 後 產 生 中 斷<br />

• <strong>Input</strong> Duty = (n16 – n3 ) * TMRx input cycle<br />

TMRx<br />

n2<br />

n3<br />

n4<br />

n5<br />

n6 n7<br />

n8<br />

n9 n10<br />

n11<br />

n12<br />

n13<br />

n14<br />

n15<br />

n16<br />

n17<br />

n18<br />

n19<br />

n20 n21<br />

n22<br />

ICx pin<br />

ICxBUF<br />

<strong>Input</strong> Duty<br />

FIFO 0<br />

FIFO1<br />

?? n3 n16<br />

QEIIF<br />

ICxIF cleared by Software<br />

dsPIC Peripheral Module Training – RTC <strong>Taiwan</strong><br />

SLIDE 10

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!