Model 100 Serial Interface: Difference between revisions
From Bitchin100 DocGarden
Jump to navigationJump to search
No edit summary |
|||
| Line 2: | Line 2: | ||
=== Serial Word Format === | === Serial Word Format === | ||
Port $D8 controls the serial word format. | |||
{| border="1" cellpadding="5" cellspacing="0" | |||
| Bit || Function || Note | |||
|- | |||
| 0 || Stop bits || 0 => 1 stop bit; 1 => 2 stop bits | |||
|- | |||
| 1 || Parity || 0 => Odd parity; 1 => Even | |||
|- | |||
| 2 || Parity Inhibit || 0 => Parity; 1 => No parity | |||
|- | |||
| 4-3 || Character length selected || # bits: 00b => 5, 01b => 6, 10b => 7, 11b => 8 | |||
|- | |||
| 7-5 || Unused || | |||
|} | |||
=== Baud Rate === | === Baud Rate === | ||
Revision as of 15:53, 1 February 2009
Configuration
Serial Word Format
Port $D8 controls the serial word format.
| Bit | Function | Note |
| 0 | Stop bits | 0 => 1 stop bit; 1 => 2 stop bits |
| 1 | Parity | 0 => Odd parity; 1 => Even |
| 2 | Parity Inhibit | 0 => Parity; 1 => No parity |
| 4-3 | Character length selected | # bits: 00b => 5, 01b => 6, 10b => 7, 11b => 8 |
| 7-5 | Unused |
Baud Rate
Data Transmission
Data Reception
I/O Map
| Name | Direction | Port |
| TX | Output | $C8 |
| RX | Input | $C8 |
| RTS | Output | $BA, bit 7 |
| CTS | Input | $BB, bit 4 |
| DSR | Input | $BB, bit 5 |
| DTR | Output | $BA, bit 6 |
Direction indicates both data flow, and whether to use an IN or OUT instruction to read/write to the given pin.