Serial Ports: Difference between revisions
Added information on how to correctly set the interrupt-enable-register
[unchecked revision] | [unchecked revision] |
m (small grammar error) |
(Added information on how to correctly set the interrupt-enable-register) |
||
Line 157:
|-
| 1 || 1 || 1 || SPACE
|}
===Interrupt enable register===
To communicate with a serial port in interrupt mode, the interrupt-enable-register (see table above) must be set correctly. To determine which interrupts should be enabled, a value with the following bits (0 = disabled, 1 = enabled) must be written to the interrupt-enable-register:
{| {{wikitable}}
! Bit
! Interrupt
|-
| 0 || Data available
|-
| 1 || Transmitter empty
|-
| 2 || Break/error
|-
| 3 || Status change
|-
| 4-7 || Unused
|}
|