Posts

Showing posts with the label UART

Programing UART in ARM Microcontrollers

Image
A UART is usually an individual (or part of an)  integrated circuit  used for  serial communications  over a computer or peripheral device  serial port . UARTs are now commonly included in microcontrollers. A dual UART, or  DUART , combines two UARTs into a single chip. An octal UART or  OCTART  combines eight UARTs into one package, an example being the NXP SCC2698. Many modern ICs now come with a UART that can also communicate synchronously; these devices are called USARTs  (universal synchronous/asynchronous receiver/transmitter). Programing UART in ARM Microcontrollers: you can find here: www.gadgetronicx.com

LCD Control using UART Serial Port

Image
Introduction: When you write an LCD Program to write your name or any text, you can only display the same text at all times. If you have to change the text, you have to change the code, recompile it again and then reprogram it. Instead of doing all this, you can just connect your circuit to serial port of computer and change the text on LCD instantly using the hyperterminal of the PC. You can just type any text in the hyperterminal and press ENTER key. The text will be displayed on the LCD instantly. You can customize the display by changing the pattern. AVR GCC CODE /* Purpose:It will take input from the terminal and writes that on LCD Hardware: ATmega8 @ 16MHz PC Software : Hyper terminal @ 19200 baud No Parity,1 Stop Bit, Flow Control = NONE */ #include #include #include #include #include "uart.h" #include "lcd.h" static int uart_putchar( char c, FILE *stream); static FILE mystdout = FDEV_SETUP_STREAM(uart_putchar, NULL, _FDEV_SETUP_WRITE); sta...