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 />

Block Write Data Bus<br />

Read Data Bus<br />

Interrupt 0xA1 service 0x82: HAL: Read Programmable I/O Pins<br />

Parameters<br />

AH<br />

BX<br />

CX<br />

Read the programmable I/O pins.<br />

Must be 0x82.<br />

wAND<br />

wXOR<br />

Return Value<br />

Comments<br />

ax = (PIO[0..13] & wAND) ^ wXOR.<br />

& = bit wise AND<br />

^ = bit wise XOR<br />

The result is combined with the wAND and wXOR parameters. To read the PIO pins without<br />

modification, set wAND=0xFFFF and wXOR=0x0000. To read only the input pins, set wAND = wPIO &<br />

wINPUTS. The wPIO and wINPUTS values are return values from PFE function 0x82.<br />

Related Topics<br />

Top of list<br />

Index page<br />

Read Specific I/O Pin<br />

Write Programmable I/O Pins<br />

PFE: Enable Programmable I/O Pins<br />

Interrupt 0xA1 service 0x83: HAL: Write Programmable I/O Pins<br />

Write to the programmable I/O pins.<br />

Page 294 / 400

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

Saved successfully!

Ooh no, something went wrong!