
Well it's dig a little deeper in the init function to see how it is set up. Well, this looks cool isn't it? Just a one include uart.h and one UART_init(9600) function. There are no parity bits, one stop bit in the data sent by the module.UART_Printf ( "Welcome to AVR Serial Programming by ExploreEmbedded \n \r" ) } return ( 0 ) } So two characters will be sent to the controller at a time. DATA is transmitted and received to controller in 8bit mode. This is done by enabling a data receive complete interrupt. Since the communication is serial we need to know whenever the data bye is received, so that we can stop the program until complete byte is received. The TXD pin (data receiving feature) of first controller must be enabled for TRANSMITTER. Now for the RS232 interface, the following features must be satisfied for the TRANSMITTER side (ATMEGA8): 1. We will discuss each side settings below. In this one acts as TRANSMITTER and other acts as RECEIVER. For this we need to keep the above mentioned parameters same at both ends.

The data communication established is programmed to have: Here we will connect the TXD (Transmitter) PIN of ATMEGA8 to RXD (Receiver) PIN of ARDUINO UNO It has other modes of communication like MASTER SLAVE communication, JTAG communication but for easy communication we are choosing RS232.

The ATMEGA here sends data to the UNO in serial as discussed earlier. Circuit Diagram and Explanationīefore we discuss the circuit diagram and programming for transmitter and receiver, we need to understand about the serial communication. Software: Atmel studio 6.1, progisp or flash magic, ARDUINO NIGHTLY. Hardware: ATMEGA8, ARDUINO UNO, power supply (5v), AVR-ISP PROGRAMMER, 100uF capacitor (connected across power supply), 1KΩ resistor (two pieces), LED, Button. The data can be of 10bit size but we will keep to 8BITS for now. In this project ATMEGA8 acts as a TRANSMITTER and ARDUINO UNO acts as a RECECIVER. In serial communication we will send data BIT BY BIT, until a BYTE of data is transferred completely. In this project we will discuss basic communication system and we will send some data from transmitter to receiver in serial.

In embedded systems we must have basic knowledge about system communications, so for this we are doing this project.
