Download Primer EMOS Manual
Transcript
SERVICE 10 PITCH INPUT OUTPUT Pitch output; This service sends the 14 bit count (the upper two bits are ignored) in the DE register to the speaker timer. The larger the number the lower the pitch. If the DE register pair = 0, then the speaker tone is turned off. REGISTER C: 10 REGISTER PAIR DE: 14 bit pitch value. NONE SERVICE 11 LEDOUT LED Display output; This service routine displays the pattern of LED segments according to the binary value of the E register to the LED digit specified by the D register. The digits are number 0-5 starting from the first digit on the right. If a bit is 1 in any of the 8 bits in the E register it will cause the corresponding segment to shine. Below are the segments labeled with their corresponding bit numbers. SEGMENTS LABELED WITH THEIR CORRESPONDING BIT NUMBERS 4 ╔═════╗ 1║ 2 ║5 ╠═════╣ 0║ ║6 ╚═════╝ 7 INPUT OUTPUT SERVICE 12 LEDHEX INPUT OUTPUT SERVICE 13 LEDDEC INPUT OUTPUT SERVICE 14 DELAY * 3 REGISTER C: 11 REGISTER E: Pattern of segments to display. REGISTER D: 0 selects the digit farthest right and 5 selects the one farthest left. NONE LED Hexadecimal output; This service routine displays the number in the DE register pair in hex, in the four displays on the left. REGISTER C: 12 REGISTER PAIR DE: 16 bit number to be displayed in HEX. NONE LED Decimal output; This service displays a number in the DE register pair in decimal, in the four displays on the left. The maximum decimal value displayed is 9999. REGISTER C: 13 REGISTER PAIR DE: number to be displayed in Decimal. NONE OUTPUT Delay according to the value of the HL register pair. The larger the value, the longer the Delay. REGISTER C: 14 REGISTER PAIR HL: Amount of delay. NONE SERVICE 15 PTBIN INPUT OUTPUT Return the complement of input port B. This is similar to the DIPSWIN service. REGISTER C: 15 REGISTER L: Complement of data input to port B SERVICE 16 KEYSTAT Return the status of the keypad in the HL register pair. If a key has been pressed H will INPUT