Serial Ports: Difference between revisions
Jump to navigation
Jump to search
[unchecked revision] | [unchecked revision] |
Content deleted Content added
m small grammar error |
Added information on how to correctly set the interrupt-enable-register |
||
Line 157: | Line 157: | ||
|- |
|- |
||
| 1 || 1 || 1 || SPACE |
| 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 |
|||
|} |
|} |
||