ARM LPC2138/48 Mini Development Board – UART0 Interfacing

LPC2138/48 has two UART modules namely UART0 and UART1. It has only asynchronous (no clock connection) mode of operation. For UART0 communication transmission & reception pins are respectively P0.0 & P0.1.
In the mini development board, UART0 can communicate through

  1. USB port via CP2102
  2. Serial port via MAX232
  3. RMC connector K14(GND,TXD0,RXD0,Vout) in 3.3V/5V levels
  4. Zigbee

Schematic

Note:

  1. UART0 communication via USB/serial port is selected using jumpers J7 & J9
  2. While using UART0 for communication, PROGRAMMER switch should be in manual mode.
  3. Through RMC connector, UART0 can be used in two voltage levels of 3V3/5V which can be selected by jumper J16
  4. While using Zigbee, remove jumpers J7 & J9

Sample Code

Sample code to test both transmission & reception of UART0 is given below. Initially the string “Checking UART0″  gets transmitted and on receiving a character, it gets retransmitted.


Output
The following screenshots explain how to test the sample code using RealTerm (click to download).

  • Step 1: Open  RealTerm

  • Step 2: RealTerm opens as shown below

  •  Step 3: Go to ‘Port’ option, set correct baudrate (which is set as 9600 in the sample code) and correct port

  •  Step 4: Click ‘Change’ (encircled in red) to apply the changes. Now check the status of Port. If it is closed, click ‘Open’ button (encircled in green) to open it.

  •  Step 5: The data transmitted from the board can be viewed as shown below.

  • Step 6: To check reception, go to Send option, type the string in the space provided(encircled in green) and click Send ASCII button. The first “hello” in green colour is  transmitted from PC & that in yellow colour is retransmitted by the controller

Topics related to ARM LPC2138/48 Mini Development Board

  1. ARM LPC2138/48 Mini Development Board – Overview
  2. ARM LPC2138/48 Mini Development Board – LED Interfacing
  3. ARM LPC2138/48 Mini Development Board – LCD Interfacing
  4. ARM LPC2138/48 Mini Development Board – UART0 Interfacing
  5. ARM LPC2138/48 Mini Development Board – UART1 Interfacing
  6. ARM LPC2138/48 Mini Development Board – Switches Interfacing
  7. ARM LPC2138/48 Mini Development Board – BUZZER Interfacing
  8. ARM LPC2138/48 Mini Development Board – POT Interfacing (ADC)
  9. ARM LPC2138/48 Mini Development Board – Temperature Sensor Interfacing(ADC)
  10. ARM LPC2138/48 Mini Development Board – Interfacing Servo motor
  11. ARM LPC2138/48 Mini Development Board – Internal Real Time Clock (RTC)
  12. ARM LPC2148 Mini Development Board – USB Interfacing (Human Interface Device)

Resources

How to buy?

Support

Please share your ideas with us, visit our forum for discussion

Leave a Reply to ARM LPC2148 Mini Development Board – Overview Cancel reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">