AT89S52 Mini Development Board – Serial Communication

UART (Universal Asynchronous Receiver Transmitter) is the hardware component, available in almost every microcontroller, used to transmit a byte of data serially through a single wire. To perform communication between a PC and the controller UART, the AT89S52 Development Board (Mini) has following interfaces.

  • RS232 interface over DB9 connector
  • USB interface  over mini USB connector (MINI 5B)
  • Wireless connectivity over ZigBee

RS232.USB.Zigbee images

Additionally, communication between the controller and other peripheral modules (+5V and +3.3V) can be carried over any of the following two options.

  • 5V connection over RMC connector
  • 3V3 connection over RMC connector

5V.3V3 UART image

Note :

  1. USART communication via USB/serial port is selected using jumpers J1 & J2
  2. Short jumpers J13 & J14 while using 3V3 USART / Zigbee
  3. Remove jumpers J1 & J2 while using Zigbee / RFID / UART (3V3/ 5V)

Schematic

The RS232 interface wields the capabilities of MAX232 while the USB interface utilizes the power of a CP2102. Desired interface for communication can be selected using the jumper connection provided on board. The code given below can be used to test the UART communication ie; up on transmitting a data the same data will be received back.

Sample Code


Output

Flash the code into the controller and connect it to PC using suitable interface.. Various steps to check the output using RealTerm are given below.

  • Step 1: Launch 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 give correct port number.
  • 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: 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 AT89S52 Mini Development Board

  1. AT89S52 Mini Development Board – Overview
  2. AT89S52 Mini Development Board – LED Interfacing
  3. AT89S52 Mini Development Board – LCD Interfacing
  4. AT89S52 Mini Development Board – Serial communication
  5. AT89S52 Mini Development Board – EEPROM Interfacing
  6. AT89S52 Mini Development Board – Buzzer Interfacing
  7. AT89S52 Mini Development Board – Servo Motor Interfacing
  8. AT89S52 Mini Development Board – Switch Interfacing
  9. AT89S52 Mini Development Board – RFID Interfacing

Resources

How to buy?

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

Leave a 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="">