Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
en:docs:macrolib:auxinit [2022/04/14 13:26] – prokushev | en:docs:macrolib:auxinit [2022/10/02 03:31] (current) – prokushev | ||
---|---|---|---|
Line 6: | Line 6: | ||
Initialize serial port | Initialize serial port | ||
+ | |||
+ | ===== BIOS Interrupt ===== | ||
+ | |||
+ | [[en: | ||
+ | |||
+ | ===== Family API ===== | ||
+ | |||
+ | [[en: | ||
===== Syntax ===== | ===== Syntax ===== | ||
Line 20: | Line 28: | ||
Baud rates is passed in the high order 3 bits as follows: | Baud rates is passed in the high order 3 bits as follows: | ||
- | | + | | 000 | 110 baud | |
- | 001 = 150 '' | + | | 001 | 150 baud | |
- | 010 = 300 '' | + | | 010 | 300 baud | |
- | 011 = 600 '' | + | | 011 | 600 baud | |
- | 100 = | + | | 100 | 1200 baud | |
- | 101 = | + | | 101 | 2400 baud | |
- | 110 = | + | | 110 | 4800 baud | |
- | 111 = | + | | 111 | 9600 baud | |
Bits 4-3 define parity: | Bits 4-3 define parity: | ||
- | 0 0 no parity | + | | 00| no parity |
- | 1 0 no parity | + | | 10 | no parity |
- | 0 1 | + | | 01 | odd parity |
- | 1 1 even parity | + | | 11 | even parity |
Bit 2 defines stop bits: | Bit 2 defines stop bits: | ||
- | | + | | 0 | 1 stop bit | |
- | 1 2 | + | | 1 | 2 stop bits | |
Bits 1-0 character length: | Bits 1-0 character length: | ||
- | 1 0 | + | | 10 | 7 bits | |
- | 1 1 | + | | 11 | 8 bits | |
===== Return ===== | ===== Return ===== | ||
Line 48: | Line 56: | ||
* AX - port status | * AX - port status | ||
- | Bitfields for serial line status: | + | Bitfields for serial line status |
^ Bit(s) ^ Description ^ | ^ Bit(s) ^ Description ^ | ||
| 7 | timeout | | | 7 | timeout | | ||
Line 59: | Line 67: | ||
| 0 | receive data ready | | | 0 | receive data ready | | ||
- | Bitfields for modem status: | + | Bitfields for modem status |
^ Bit(s) ^ Description ^ | ^ Bit(s) ^ Description ^ | ||
- | | 7 | carrier detect | + | | 7 | carrier detect |
- | | 6 | ring indicator | + | | 6 | ring indicator |
- | | 5 | data set ready | + | | 5 | data set ready | |
- | | 4 | clear to send | + | | 4 | clear to send | |
- | | 3 | delta carrier detect | + | | 3 | delta carrier detect |
- | | 2 | trailing edge of ring indicator | + | | 2 | trailing edge of ring indicator |
- | | 1 | delta data set ready | + | | 1 | delta data set ready | |
- | | 0 | delta clear to send | + | | 0 | delta clear to send | |