Changes
/* How to build a RS232 - Interface for the CPC-Series! */
First about the connection plan: You need a power supply that supports +9V,-9V and 5V. Connect all pins. You have to connect D0..D7 from the adressbus with the Z80 STI. You have to connect D0 with pin 21, D1 with pin 22, ..., D7 with pin 28. That's all.
Now you can plug in the interface in the CPC. Switch the power on. If the CPC doesn't work normal please switch the power off and you have to watch for faults in the connection of your interface :-(. If everything is ok then you have to copy the assembler code and do the next test.
Second part: How to program the interface. (The assembler code is saved in RS232.ASM)
Z80-STI: 50 to 19200 bps (5,6,7 or 8 bit, 1, 1 1/2, 2 stopb.stopbits, all parity flags) 24 registers, use 16 registers (direct) with F8E0-F8EF, the last 8 registers can be used indirect with a special register
== The meaning and the adresses Addresses of the registers:==
This register transfers data from and to a indirect register.
These registers are used by the interrupt handler. If you want to know
what you can do with this registers please write to Mostek for support.
Timer B value
Timer A value
USART-register. Change the connect-parameters.
Bit 7 6 5 4 3 2 1 0
x x x x x x x 0
please always set on 0
Receiver status. You need only the following bits:
Bit 0: Receiver-Enable, set to 1 if receiving is possible.
Bit 1: Memory full "1" or not "0". (If 8 Bits are
received then the interface send memory full).
Sending status. Again you need only two bits:
Bit 0: Sending-Enable, must set to "1" if sending is allowed.
Bit 7: Memory full "1" or not "0". This bit can
be used to ask if a word is send or not.
This is the send and receive register. Here you can get a word or send a word.
== Indirect registers (Choose them with register 8):==
register 0: Not used.
For more exact informations please write to Mostek and ask for support for theZ80-STI. You also can look at the assembler code.
== About the assembler code ==