documentation on the out port
hello great job first could you please give me information about those ports oar any other ports in the doc I have 40h,41h,11h,12h60h,61h,62h thank you
6050PREPSR: LD A,2 6060 OUT (60H),A 6070 DEC A ; A=1 6080 OUT (74H),A 6090 XOR A ; A=0 6100 OUT (73H),A 6110 INC A ; A=1 6120 OUT (73H),A 6130 XOR A ; A=0 6140 OUT (73H),A 6150 LD A,0DH 6160 OUT (70H),A 6170 LD A,4EH 6180 OUT (71H),A 6190 LD A,10H 6200 OUT (71H),A 6210 XOR A ; A=0 6220 OUT (63H),A 6230 LD A,05H 6240 OUT (71H),A 6250 LD A,14H 6260 OUT (63H),A 6270 RET
6050PREPSR: LD A,2 ; UART capable of full-duplex communication
6060 OUT (60H),A ; 11Pin I/F operation
6070 DEC A ; A=1
6080 OUT (74H),A ; UART clock enable
6090 XOR A ; A=0
6100 OUT (73H),A ; Hardware reset
6110 INC A ; A=1
6120 OUT (73H),A ; Hardware reset
6130 XOR A ; A=0
6140 OUT (73H),A ; Hardware reset --> Must do 0, 1, 0
6150 LD A,0DH ; [0 1] [1 0 1]: Receive interrupt enabled + 9,600 baud
6160 OUT (70H),A ; UART mode register
6170 LD A,4EH ; 0 1 [0 0] [1 1] 1 0 --> 8 bit no parity
6180 OUT (71H),A ; UART mode register
6190 LD A,10H ; clear / stop receive + send
6200 OUT (71H),A
6210 XOR A ; A=0 reset flow control
6220 OUT (63H),A; UART flow control register
6230 LD A,05H; clear / enable receive + send
6240 OUT (71H),A ;
6250 LD A,14H ; DR out, RS out
6260 OUT (63H),A ; UART flow control register
6270 RET
Thank you for this fast answer Do you have some here a documentation? What is the port 1fh ? Is it to capture a key ?
1FH: 11Pin I/F input level Enter Break key
The Kon flag (bit 8, MSB) is set while pressing the Break key.
I have various references, they need to be compiled together. I'll try to work on something.
hello Have you had time to have a look at it ? thank you would you happen to know if you can attach an interrupt to on of the input pin ?
Hi, too busy to do anything about the docs right now. There's no interrupt for the 11-pin, but you can simulate that. In PIO mode (write 1 to port 60H: PIO mode, and 1 to 61H PIO input) you can read port 62H to get the state of the 8 pins in a loop.
There's an interrupt on the 11-pin, but we don't have access to it – it's for the system itself.
Hello Thank you for this answer Yves