03.11.2014 Views

QDK-nano PIC24/dsPIC-C30 - Quantum Leaps

QDK-nano PIC24/dsPIC-C30 - Quantum Leaps

QDK-nano PIC24/dsPIC-C30 - Quantum Leaps

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.

<strong>QDK</strong>-<strong>nano</strong><br />

<strong>PIC24</strong>/<strong>dsPIC</strong>-<strong>C30</strong><br />

www.state-machine.com/pic<br />

(15) The QK-specific ISR exit starts with placing the current SR into the this_sr local variable, which<br />

the <strong>C30</strong> compiler decided to place in the w8 register.<br />

(16) The IPL bits from the current SR are right-shifted into w0.<br />

(17) All other SR bits, except the IPL bits in w0 are masked off in w0.<br />

(18-19) The bitmask (1

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

Saved successfully!

Ooh no, something went wrong!