13.07.2015 Views

[Instruction] Contents

[Instruction] Contents

[Instruction] Contents

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.

Advanced Function <strong>Instruction</strong>FUN145 PENENABLE CONTROL OF THE INTERRUPT AND PERIPHERALFUN145 PENLBL : External input or peripheral label name that to beenabled.• When enable control “EN” =1 or “EN↑” ( P instruction) changes from 0→1, it allows the external input orperipheral interrupt action which is assigned by LBL.• The enabled interrupt label name is as follows:(Please refer the section 10.3 for details)LBL name Description LBL name Description LBL name DescriptionHSTAIHSTA High speedX4 positive edgeX10 positive edgeX4+IX10+Icounter interruptinterruptinterruptHSC0IHSC0 High speedX5 negative edgeX10 negative edgeX4−IX10−Icounter interruptinterruptinterruptHSC1IHSC1 High speedX5 positive edgeX11 positive edgeX5+IX11+Icounter interruptinterruptinterruptHSC2IHSC2 High speedX5 negative edgeX11 negative edgeX5−IX11−Icounter interruptinterruptinterruptHSC3IHSC3 High speedX6 positive edgeX12 positive edgeX6+IX12+Icounter interruptinterruptinterruptX0+IX0 positive edgeX6 negative edgeX12 negative edgeX6−IX12−IinterruptinterruptinterruptX0−IX0 negative edgeX7 positive edgeX13 positive edgeX7+IX13+IinterruptinterruptinterruptX1+IX1 positive edgeX7 negative edgeX13 negative edgeX7−IX13−IinterruptinterruptinterruptX1−IX1 negative edgeX8 positive edgeX14 positive edgeX8+IX14+IinterruptinterruptinterruptX2+IX2 positive edgeX8 negative edgeX14 negative edgeX8−IX14−IinterruptinterruptinterruptX2−IX2 negative edgeX9 positive edgeX15 positive edgeX9+IX15+IinterruptinterruptinterruptX3+IX3 positive edgeX9 negative edgeX15 negative edgeX9−IX15−IinterruptinterruptinterruptX3−IX3 negative edgeinterrupt• In practical application, some interrupt signals should not be allowed to work at sometimes, however, it shouldbe allowed to work at some other times. Employing FUN146 (DIS) and FUN145 (EN) instructions couldattain the above mentioned demand.Program exampleM0EN145.PENX0+I• When M0 changes from 0→1, it allows X0 to sendinterrupt when X0 changes from 0→1. CPU can rapidlyprocess the interrupt service program of X0+I.7-120

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

Saved successfully!

Ooh no, something went wrong!