LCD INTERFACE WITH 8051
PWM PIC16F877A OSCILOSCOPE CIRCUIT DIAGRAM
HOW TO USE THE PWM OF PIC 16F877A A COMPLERE CIRCUIT DIAGRAM AND CODE WRITTEN IN BASIC
lcd and Microcontoller
LCD INTERFACE IN 8BIT AND 4-BIT MODE WITH PIC MICROCONTROLLERS
THE GRAPHIC LCD
THE GRAPHIC LCD INTERFACE WITH MICROCONTROLLER PIC16F877 AND ITS EXAMPLE CODE AND A COMPLETE SOLUTION
OSCILLOPSCOPE USED IN PWM PROJECT WHERE TWO CHANNEL PWM FROM PIC16F877 IS SHOWN
SECOND MMD PROJECT LED moving message diaply using PIC16f628 CD4017 and 74LS595 Introduction of MMD Project-2:- The PIC microcontroller...
The LM35 series are precision integrated-circuit temperature sensors, whose output voltage is linearly proportional to the Celsius (Centigra...
MikroC gives us a very simple PWM library with 4 functions shown below: Pwm_Init() Pwm_Change_Duty() Pwm_Start() Pwm_Stop() The expalan...
Industrial and control application/may require automation of the process such as temperature, pressure, liquid flow, etc., in order to minim...
Introduction: PC based Temperature data logging is a series of posts, in which we will tell a beginner to make all by itself. tools: Foll...
Multiplexed LED Display 4-digit Interfacing with PIC micro-controller 16F877A. The heart of this project is PIC microcontroller PIC16f877a....
PIC 16f877 based Rotation Per Minute (RPM) Meter Development:- In this Project we will develop a RPM meter using PIC microcontroller PIC ...
Practical example of the use of soft-uart using PIC microcontroller: The serial port of a PC (e.g., COM1) is connected to a PIC18F452 micr...
Tutorial of PIC16f877A programming: How to write a code for PIC microcontrollers ? If above question is in your mind then this Tutorial w...
These tutorials demonstrate how to use a multiplexed 7 segment LED displays. The digit of a seven segment display basically contains seven L...
- January (5)
- February (2)
- March (5)
- April (5)
- May (2)
- June (21)
- July (5)
- August (14)
- September (3)
- November (7)
- December (3)
I am free lancer to design electronic circuits and programming or coding of microcontroller or microprocessor based projects. Interested people can contact me. Student and learner can also contact for help in their projects. Please write your questions in comment section or directly e-mail to me. My e-mail address is :
Tuesday, July 6, 2010
The serial port of a PC (e.g., COM1) is connected to a PIC18F452 microcontroller, and terminal emulation software (e.g., HyperTerminal) is operated on the PC to use the serial port. Pins RB0 and RB1 of the microcontroller are the RX and TX pins respectively. The required baud rate is 9600.
Write a program to read data from the terminal, then increase this data by one and send it back to the terminal. For example, if the user enters character “A,” then character “B” should be displayed on the terminal. Assume that a MAX232-type voltage level converter chip is converting the microcontroller signals to RS232 levels. Figure shows the circuit diagram of this example.
The MAX232 chip receives the TX signal from pin RB1 of the microcontroller and converts it to RS232 levels. Comparably, the serial data received by the MAX232 chip is converted into microcontroller voltage levels and then sent to pin RB0. Note that correct operation of the MAX232 chip requires four capacitors to be connected to the chip.
The required program listing is shown in Figure 4.24 (program SERIAL.C). At the beginning of the program, function Soft_Uart_Init is called to configure the serial port. Then an endless loop is formed using a for statement. The Soft_Uart_Read function is called to read a character from the terminal. After reading a character, the data byte is incremented by one and then sent back to the terminal by calling function
unsigned char MyError, Temp;
Soft_Uart_Init(PORTB, 0, 1, 9600, 0);
Temp = Soft_Uart_Read(&MyError); // Read a byte
Soft_Uart_Write(Temp); // Send the byte
// Increment byte