Forum Replies Created
-
AuthorPosts
-
Harsh PandyaParticipant
Serial Communication
UART (Universal Asynchronous Receiver Transmitter) or USART (Universal Synchronous Asynchronous Receiver Transmitter) are one of the basic interface which you will find in almost all the controllers available in the market till date. This interface provides a cost effective simple and reliable communication between one controller to another controller or between a controller and PC.
RS-232 Basics
RS-232 (Recommended Standard 232) is a standard for serial binary data signals connecting between a DTE (Data terminal equipment) and a DCE (Data Circuit-terminating Equipment).
RS-232 Level Converters
Usually all the digial ICs works on TTL or CMOS voltage levels which cannot be used to communicate over RS-232 protocol. So a voltage or level converter is needed which can convert TTL to RS232 and RS232 to TTL voltage levels. The most commonly used RS-232 level converter is MAX232. This IC includes charge pump which can generate RS232 voltage levels (-10V and +10V) from 5V power supply. It also includes two receiver and two transmitters and is capable of full-duplex UART/USART communication.
MAX232 Pin Description
MAX232 Typical Connection CircuitFIG 3.28 MAX232
MAX232 Interfacing with Microcontrollers
To communicate over UART or USART, we just need three basic signals which are namely, RXD (receive), TXD (transmit), GND (common ground). So to interface MAX232 with any microcontroller (AVR, ARM, 8051, PIC etc..) we just need the basic signals. A simple schematic diagram of connections between a microcontroller and MAX232 is shown below
Harsh PandyaParticipantSerial Communication
UART (Universal Asynchronous Receiver Transmitter) or USART (Universal Synchronous Asynchronous Receiver Transmitter) are one of the basic interface which you will find in almost all the controllers available in the market till date. This interface provides a cost effective simple and reliable communication between one controller to another controller or between a controller and PC.
RS-232 Basics
RS-232 (Recommended Standard 232) is a standard for serial binary data signals connecting between a DTE (Data terminal equipment) and a DCE (Data Circuit-terminating Equipment).
RS-232 Level Converters
Usually all the digial ICs works on TTL or CMOS voltage levels which cannot be used to communicate over RS-232 protocol. So a voltage or level converter is needed which can convert TTL to RS232 and RS232 to TTL voltage levels. The most commonly used RS-232 level converter is MAX232. This IC includes charge pump which can generate RS232 voltage levels (-10V and +10V) from 5V power supply. It also includes two receiver and two transmitters and is capable of full-duplex UART/USART communication.
MAX232 Pin Description
MAX232 Typical Connection CircuitFIG 3.28 MAX232
MAX232 Interfacing with Microcontrollers
To communicate over UART or USART, we just need three basic signals which are namely, RXD (receive), TXD (transmit), GND (common ground). So to interface MAX232 with any microcontroller (AVR, ARM, 8051, PIC etc..) we just need the basic signals. A simple schematic diagram of connections between a microcontroller and MAX232 is shown below
Harsh PandyaParticipantwell , have you connected pull-up resistors on port 0 ? because port zero doesnot have an internal pull-up like other 3 ports
Harsh PandyaParticipantFirstly you need to understand , a controller works at faster speed compared to lcd so before initializing LCD you need to keep a delay of min 20ms in controller programming.
Secondly check foll voltages at controller pins :
Vcc – 5V
ALE – 1.68V
PIN 18 and 19 – (around) 2.18 to 2.8 V
and then tell me if the problem remains !!!
Harsh PandyaParticipantThis simply means that your controller pins are not properly in contact with the socket (if you are using one)
Harsh PandyaParticipantSOME IDENTIFIERS REDEFINED does not mean that the header file is faulty , it means you have some problem in source code , and even after all you have some problem shift to KEIL uVISION its much better than mikroC
-
AuthorPosts