13.07.2015 Views

Figure 1: Keypad interface with the 8279. - FET

Figure 1: Keypad interface with the 8279. - FET

Figure 1: Keypad interface with the 8279. - FET

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.

• To write a program:CODESEGMENTASSUME; Constants.CS: CODE, DS: CODESTART:MOV SP, 2000HMOV AX, CSMOV DS, AX; Mode set command using OUT instruction <strong>with</strong> Control Address; Program clock command (prescaler) using OUT instruction <strong>with</strong> Control AddressAGAIN:; An instruction sequence traps program execution until a key(s) is pressed on <strong>the</strong> keypad.; (Read Status Word using IN instruction <strong>with</strong> Control Address).; Read <strong>the</strong> pressed key (Hex value*) from FIFO using IN instruction <strong>with</strong> Data Address; Rest of your code.JMP AGAINCODE ENDSEND START____________________________________________________________________*MTS-86C Key Value in FIFO0 00H1 01H2 02H......F0FH. 10H, 11H- 12H+ 13H: 14HREG15H

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

Saved successfully!

Ooh no, something went wrong!