Tutorial Microcontroller 8051
 
 
 
 
 
   

BACK

Dual 7 Segment Display
The current temperature is measured every second, and displayed on a dual 7 segment display, via two 7 segment decoder/driver chips. Each segment has a 1K current limiting resistor to keep each segment at a constant brightness, and to keep the power cons umption

Serial Communications
The serial UART on the microcontroller is used to generate the correct bit stream at 2400 baud, 8 data bits, and 1 stop bit. A MAX232 chip has been used to generate the R S232 voltages from the bit stream. No handshaking has been implemented due to the lack of free I/O on the micro.

C Program Code
The program for the Micro was written in C, using Hi-Tech C for the 8051. You can have a look at the main code I wrote for this device by clicking on main.c (15.2Kb).

Best Link

 

BACK

 

Lesson 1:
T o o l
1.1. Programmer
1.2.
Edsim 51
1.3. MIDE-51
1.4. ATMEL ISP

Lesson 2:
Input Output
2.1.LED
2.2.Swicht
2.3.7 Segmen
2.4.LCD Character
2.5.ADC
2.6.DAC
2.7.Motor Stepper
2.8.Keypad

Lesson 3:

Timer Counter

3.1.Basic
3.2.Mode 0
3.3.Mode 1
3.4.Mode 2
3.5.Mode 3

Lesson 4:

Serial Comm.

4.1.Basic
4.2.LED
4.3.Rotate LED
4.2 ADC
4.3.LCD

Lesson 5:
Interuption

5.1.Basic
5.2.Timer
5.2.External