Serial Ports: Difference between revisions
Jump to navigation
Jump to search
[unchecked revision] | [unchecked revision] |
Content deleted Content added
No edit summary |
Added |
||
Line 15: | Line 15: | ||
For serial devices, you don't need to setup the cable this way. The receiving end of the device has the wires switched and it has a female port, which means you can plug a male plug into it. |
For serial devices, you don't need to setup the cable this way. The receiving end of the device has the wires switched and it has a female port, which means you can plug a male plug into it. |
||
==Why Use a Serial Port?== |
|||
During the early stages of kernel development, you might wonder why you would bother writing a serial driver. There are several reasons why you might: |
|||
* GDB debugging. You can use the serial port to connect to a host computer, and use the GDB debugger to debug your operating system. This involves writing a stub for GDB within your OS. |
|||
* Headless console. You can operate the computer without a monitor, keyboard or mouse and instead use the serial port as a console using a protocol such as TTY or VT100. |
|||
==Programming the Serial Communications Port== |
==Programming the Serial Communications Port== |