Presentation is loading. Please wait.

Presentation is loading. Please wait.

Embedded Systems Programming Serial port programming.

Similar presentations


Presentation on theme: "Embedded Systems Programming Serial port programming."— Presentation transcript:

1 Embedded Systems Programming Serial port programming

2 Serial ports Although serial ports are being eclipsed by other input devices – wireless, USB – they still are widely used and supported In embedded systems they are frequently the only means of communicating with the system Serial ports can even be used, in embedded systems, to upload large amounts of data – ie kernels

3 Serial port programming There are 2 general approaches to serial port programming –Providing special IO command which address special ports. This is used on systems such as the Intel x86’s in/out instructions –Memory mapped IO. This is where the serial port control registers are mapped into the standard memory map and can be accessed with normal assembler commands. This is the more common approach and is used by ARM

4 SA1110 Block diagram

5 SA1110 memory map

6 Peripheral Control Module Block Diagram

7 Peripheral Control Modules’ Register Width and DMA Port Size

8 Peripheral Unit Base Addresses

9 Peripheral Unit Interrupt Numbers

10 Example UART Data Frame

11 Serial Port 3 Control, Data, and Status Register Locations 0h 8005 0000UTCR0UART control register 0 0h 8005 0004UTCR1UART control register 1 0h 8005 0008UTCR2UART control register 2 0h 8005 000CUTCR3UART control register 3 0h 8005 0010—Reserved 0h 8005 0014UTDRUART data register 0h 8005 0018—Reserved 0h 8005 001CUTSR0UART status register 0 0h 8005 0020UTSR1UART status register 1 0h 8005 0024—Reserved 0h 8005 FFFF—Reserved


Download ppt "Embedded Systems Programming Serial port programming."

Similar presentations


Ads by Google