Changes

Jump to: navigation, search

Programming:CPC Booster

45 bytes removed, 23:02, 3 January 2015
/* ADDRESS:&FF07 IN/OUT UART REG2 */ formatting...
</pre>
'''=== ADDRESS:&FF08 OUT TX – AUTO POLLING'''===
If you want to transmit a character in a full duplex or a half duplex communication then you just send the character to the address &FF08 and the flags are automatically checked by the program of the microcontroller!
<pre>
BASIC:        A A=X    X               OUT &FF08,A
</pre>
<pre>
ASSEMBLY:     LD LD BC,&FF08              LD LD A,X              OUT OUT(C),A
</pre>
To select the type of communication you want to have (full duplex, half duplex or 485 halfduplex), you can use UART REG3.
 
=== ADDRESS:&FF09       IN        RX – WAIT UDR CHARACTER ===
1,165
edits