01.06.2013 Views

IPC@CHIP Documentation - SC12 @CHIP-RTOS V1.10

IPC@CHIP Documentation - SC12 @CHIP-RTOS V1.10

IPC@CHIP Documentation - SC12 @CHIP-RTOS V1.10

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Related Topics<br />

Top of list<br />

Index page<br />

Enable External Interrupt Requests<br />

Interrupt 0xA2 service 0x87: PFE: Enable PWD Mode<br />

Parameters<br />

AH<br />

Enable Pulse Width Demodulation (PWD)<br />

Must be 0x87.<br />

Return Value<br />

none<br />

Comments<br />

Top of list<br />

Index page<br />

In PWD mode, TMRIN0, TMRIN1, INT2 and INT4 are configured internal to the<br />

chip to support the detection of rising (INT2) and falling (INT4) edges on the PWD<br />

input pin and to enable either timer0 when the signal is high or timer1 when<br />

the signal is low. The INT4, TMRIN0 and TMRIN1 pins are not used in PWD mode<br />

and so are available for use as PIO's.<br />

The ISR for the INT2 and the INT4 interrupts should examine the current count of<br />

the associated timer, timer1 for INT2 and timer0 for INT4, in order to determine<br />

the pulse width. The ISR should then reset the timer count in preparation for the<br />

next pulse.<br />

Overflow conditions, where the pulse width is greater than the maximum count of the<br />

timer, can be detected by monitoring the MaxCount bit in the associated timer or by<br />

setting the timer to generated interrupt requests.<br />

used pins:<br />

PWD<br />

excluded pins:<br />

TMRIN0, TMRIN1, TMROUT0, TMROUT1, INT4, INT2<br />

PCS2#, INTA#, PIO6, hw flow control serial port 1<br />

Interrupt 0xA2 service 0x88: PFE: Enable External DMA<br />

Parameters<br />

Enables DRQ pin to start DMA transfer<br />

Page 288 / 400

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

Saved successfully!

Ooh no, something went wrong!