+ All Categories

8051

Date post: 01-Nov-2014
Category:
Upload: basit-ali
View: 66 times
Download: 0 times
Share this document with a friend
Popular Tags:
45
Transcript
Page 1: 8051
Page 2: 8051
Page 3: 8051
Page 4: 8051

Micro controller (8051) Development board

3.1. INTRODUCTIONThe trainer kit is a microcontroller based embedded system through which students can understand different types of interfacings such as LEDs, 7-segment,switches,relays,buzzers, keyboard, ADC, DAC, Sensors, EEPROM, RTC, LCD, 8255 etc. using these kit one can easily understands the hardware and software details of above mentioned devices. We have use all fundamental devices, knowledge of them enable the user to easily switch on to other complex and advance technology. Our project also includes some industrial applications like ‘Digital Clock’, ‘Temperature Monitoring System’, ‘Communication System’ etc. The simple design of our project can be easily extended into other application such as Access Control system, Digital Function Generator, Temperature monitoring and controlling kit, General purpose sensor kit, Graphical LCD Display etc.3.2. FEATURES OF TRAINER KIT

Page 5: 8051

Following are some feature which makes our Trainer Kit unique.1. Simple Design:We have designed our Trainer Kit in such a manner that all its modules works independently as well as in combination with other modules. We have provided various pin connectors so that the connections can be made as per User’s requirement. We have designed PCBs of various modules and then combined them to give the Hardware an aesthetic appearance. As various modules are independent, the troubleshooting become easier.2. User Friendly:We have provided a User’s Manual for operating Trainer kit. This manual will help user to understand each section thoroughly. The manual enables the user to understand hardware connections and Troubleshooting. As we have provided various pin connectors the user can easily connect as per manual description. As we have include some very simple interfacings such as 1 LEDs, 4 LEDs etc., the user who are new to

Page 6: 8051

the system can easily access and move further to keyboard, seven segment, RTC and so on. To reduce the connections complexity, we have used 8255 PPI. So we could keep some of the connections as permanent one. For observing waveforms user can easily connect to the CRO.3. Flexibility:Our simple trainer kit design makes the system portable. We have interfaced some display devices such as LCDs and 7-segments, so that the output of various devices can be easily viewed on such displays. The output of DAC can be easily viewed by connecting CRO. Similarly, key detection can be displayed on either LEDs or 7- segments. As our Trainer Kit is enclosed inside a wooden box, it is completely unaffected by external parameters.4. Versatility:As in the Trainer kit, we have included RTC, it can works as a Digital Clock. Temperature can be measured with the help of temperature sensor of Trainer Kit, which makes it a Temperature-monitoring system. It can be used as a multi

Page 7: 8051

controller communication system. By interfacing RS-232 with Trainer Kit, we can easily make communication between PC and Trainer kit. We have included all fundamental devices interfacing such as LEDs, LCD,7-segment, keyboard, ADC, DAC, Sensors etc. which make the students to understand the control system thoroughly.5. Cost Effective:In our Trainer Kit we have used 2 Microcontroller IC’s and one 8255 Ic. With the help of 3 Ic’s we are able to interfaced a number of different modules. We have used various components that are easily available in the local market. This makes our Trainer Kit Cost-Effective.6. Multiple function in one device:In this trainer kit also students can get knowledge about different modules and has useful applications. Using 4*4 matrix keyboards it can be used as calculator. Using RTC it can work as digital clock. Using DAC various waves like square wave, triangle wave, sine

Page 8: 8051

wave are generated. Using LM35 temperature sensor it can monitor temperature and on this basis we can design temperature security system. Using RS-232 communication between computer and controller is done.7. Simple modules:This trainer kit is designed very simply. As students can understand different modules we avoid using complicate modules. Instead using other more advantageous controller we use 89c51. Also programming is done in assembly. We start from basic level so students understand easily.3.3. BLOCK   DIAGRAM   OF TRAINER KIT Figure 3.1 shows the block diagram of Microcontroller based Trainer Kit. The main parts included inside the Trainer Kit can be listed as below:1.  89c51 Microcontrollers from 8051 family. 2. Selection switches which defines which particular modules which be executed at a given time. There are specific codes given to each and

Page 9: 8051

every practical. On the basis of switch status, particular practical is selected.

3. Matrix keyboard with 16 keys arranged as 4 rows and 4 columns.4. Four LEDs, for understanding basics of display.5. ADC (Analog-to-Digital Converter) o deal with real-world physical quantities.6. Temperature sensor, for temperature monitoring system.7. EEPROM, to access the ROM for reading and Writing data.(not shown )

Page 10: 8051

8. RTC (Real Time Clock), to make digital Clock.9. LCD, for displaying various practical names.10. DAC (Digital-to-Analog Convertor) for generating various waves such as Square,  sine and triangular.11. Seven-segments for displaying the key detection.

3.3.1 CIRCUIT DIAGRAM OF TRAINER KIT

Page 11: 8051

3.4. APPLICATIONS

Page 12: 8051

Apart from the trainer kit, this project can be used as a digital clock temperature monitoring system. It can also be used for various types of wave generation and serial communication. By extending some of its features it can be used as a digital Function generator, control access system, general purpose sensor kit, and home automation System etc.3.4.1 TRAINER KIT:The trainer kit is used for giving the explanation of various types of Interfacings to the students. By using this trainer kit the student can learn the interaction between the hardware and software of the particular device. In our trainer kit we have included the display devices like LCD, seven segment so through them can check the output of the other interfacings like key board, DAC, ADC, E2PROM, RTC ,sensors etc.3.4.2 DIGITAL CLOCK:In our trainer kit the combination of RTC and LCD works as a digital clock. We have used an RTC DS-1307, which works on battery mode also so it fulfills the requirement of real time

Page 13: 8051

applications. To display the time we have used the LCD, so user can view the time on it. Only limitation is that the user can not set the time according to his/her requirement. To set the time, changes must be made in software.3.4.3 TEMPRATURE MONITORING SYSTEM:In our trainer kit the combination of ADC, temperature sensor and LCD interfacing can be used as a temperature monitoring system. It will sense the temperature of its surrounding and display it on an LCD .the temperature will be measured in Celsius. Here an ADC is used for converting the analog output of the sensor in the digital one.3.4.4 WAVE GENERATION:In our trainer kit if the DAC interfacing module is connected with the CRO then Sine wave, square wave and triangle wave can be generated. Some other types of wave forms like saw tooth, staircase can also be generated by modifying the software.3.4.5 SERIAL COMMUNICATION:

Page 14: 8051

The communication link for the multi processor and multi Controller can be established. Same way the RS-232 interfacing is used for establishing the communication link with the PERSONAL COMPUTER.3.4.6 PROSPECTIVE: By modifying the trainer kit it can be used as a control access system, digital function generator, general purpose sensor kit, temperature controlling system, home automation system etc.

Page 15: 8051

How to Interface UART with 8051

UART Interfacing with 8051 Primer Tags: 8051 primer ,interfacing uart with 8051 primer board, UART demo on 8051 primer , UART source code for 8051, UART interfacing with 8051, 8051 UART example, 8051 UART c code, 8051 UART tutorial,805 SERIAL COMMUNICATION,

Rate this (Log in to add a rating)

Overall rating

1 2 3 4 5

8051 Primer Board

The 8051 Primer board is specifically designed to help students to master the required skills in the area of embedded systems. The kit is designed in such way that all the possible features of the microcontroller will be easily used by the students. The kit supports in system programming (ISP) which is done through serial port.

NXP’s 8051 (AT89V51RD2), 8051 Primer Kit is proposed to smooth the progress of developing and debugging of various designs encompassing of speed 8-bit Microcontrollers.

Page 16: 8051

UART

UART (Universal Asynchronous Receiver Transmitter) are one of the basic interfaces which provide a cost effective simple and reliable communication between one controller to another controller or between a controller and PC.

RS-232 Level Converter

Usually all the digital ICs work 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.

RS-232 communication enables point-to-point data transfer. It is commonly used in data acquisition applications, for the transfer of data between the microcontroller and a PC.

The voltage levels of a microcontroller and PC are not directly compatible with those of RS-232, a level transition buffer such as MAX232 be used.

Interfacing UART

Fig. 1 shows how to interface the UART to microcontroller. 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 UART with 8051, we just need the basic signals.

Page 17: 8051

Fig. 1 Interfacing UART to Microcontroller

Interfacing UART with 8051

We now want to display a text in PC from 8051 Primer Board by using UART module. In 8051 Primer Board contains two serial interfaces that are UART0 & UART1. Here we are using UART0. The Transmitter pins send the data into PC and the receiver pin receives the data from PC. The PC and microcontroller speed are denoted by using baud rate. When the baud rates of both PC and Microcontroller are same, then only the data transmit and receive correctly otherwise not.

Pin Assignment with 8051

 

 UART DB-9 Connector

8051

Processor Lines

Serial Port Section

UART0(P1)

ISP PGM

RXD0 P3.0

TXD0 P3.1

UART1

(P2)

RXD1 P1.2

TXD1 P1.3

Note      : RXD1 and TXD1 lines are only available in Maxim-Dallas Microcontrollers DS89C4xx series.

Page 18: 8051

Circuit Diagram to Interface UART with 8051

Source Code

The Interfacing UART with 8051 program is very simple and straight forward, which display a text in PC from 8051 Primer Board through UART0. Some delay is occurring when a single data is sent to PC. C programs are written in Keil software. The baud rate of microcontroller is 9600.

C Program to display a text in PC from 8051

***************************************************************************************

Title : Program to display a text in PC from 8051 through UART0

Page 19: 8051

***************************************************************************************

 

 

 

#include <REG51.H>                /* special function register declarations   */

#include <stdio.h>                /* prototype declarations for I/O functions */

 

void serial_init(void);

//-------------------------------------------------

//Setup the serial port for 9600 baud at 11.0592MHz.

//-------------------------------------------------

void serial_init(void)

{

    SCON  = 0x50;                         /* SCON: mode 1, 8-bit UART, enable rcvr         */

    TMOD |= 0x20;               /* TMOD: timer 1, mode 2, 8-bit reload        */

    TH1   = 0xFD;               /* TH1:  reload value for 9600 baud @ 11.0592MHz*/

    TR1   = 1;                  /* TR1:  timer 1 run                               */

    TI    = 1;                  /* TI:   set TI to send first char of UART           */

}

Page 20: 8051

 

//--------------------------

//Main Program Starts Here

//--------------------------

void main(void)

{

            serial_init();

            printf (" PS - PrimerC51 UART Demo\n\n\r");

            while (1)

            {

            printf ("Hello World!! \n\r");   /* Print "Hello World" */

            }

        }

 

11 Feb 2013

Page 21: 8051

Amateur World

Articles Responses

Home Free Projects Development Boards Green Energy Learn Micro-Controller

May : 21 : 2012 - G-Track Project Apr : 19 : 2012 - Simple ATMEGA32 Based Oscilloscope Apr : 19 : 2012 - Simple ATMEGA8 Temperature Controller

Page 22: 8051

Re-Introducing AW51V2, 8051 Development Board

AW51V2,

8051 Development Board

All Amateur World’s development boards represents irreplaceable tools for programming and developing micro-controller based devices. Carefully chosen components and best possible production & testing workmanship thereof are the best  guarantee of high readability of our products. Due to simple possible design, a large number of add-on modules and extensive ready to use examples, our all users, regardless of there experience, have the possibility to develop their projects in fast and efficient way. More over, all of our products are designed as per our philosophy “Learn with Fun”.

Page 23: 8051

INTRODUCTION TO AW51V2, 8051 DEVELOPMENT BOARD:

“AW51V2”, 8051 Development Board is fully contained board, suitable for programming 8051 controllers from Philips as wel as for designing and testing of 8051 projects. This development board includes an on-board programmer providing an interface between the micro-controller and PC. You are simply expected to write your program in any one of 8051 compiler, generate a “*.hex” file and program your micro-controller using the on-board programmer. The “AW51V2” contains many devices like 16X2 LCD, Seven Segment Display, LED, 4X4 Matrix Keyboard, I2C I/O Expander, RTC, ADC, DAC, Relay, Stepper Motor etc. that conveniently interface with the micro-controller and allow you to easily simulate the operation of the target device.

Page 25: 8051

AW51V2 Flyer

 

Package Contains:

AW51V2, 8051 Development Board RS232 Serial Cable for Programming and Interfacing with PC Product CD with Programming Software and Examples and Experiments Product Manuals and Schematic Diagram of the Board.

System Specification:

Power Supply: 8 to 18V DC or AC Power Consumption: Maximum 350mA Weight: Maximum 700gm Inclusive of All

Page 26: 8051

 KEY FEATURES:

1. Power Supply: DC/AC 12V2. Easy RS232 Connector for Programming as well as PC Connectivity.

Page 27: 8051

3. Two Digit Seven Segment Display. Common Anode.4. Eight User LEDs.5. 16X2 alpha numeric LCD.6. Stepper Motor Driver with ULN2003.7. User Relay for High Load Driving.8. Basic R to R Ladder based Digital to Analog Converter.9. Buzzer or Speaker.10. One Digital to Analog Output.11. Four Channel Analog to Digital External Input.12. PCF8594, I2C based A to D and D to A.13. Four Presets for On board Experiment of A to D.14. AT24C08, I2C based EEPROM.15. DS10307, I2C based RTC with battery backup circuit.16. PCF8574, I2C based I/O Expander with Four Switches and Four LEDs for Experiments.17. 4X4 Matrix Keyboard.18. RESET Switch.19. P89V51RD2, Main 8051 Controller.20. External Interrupt Switches, INT0 & INT1

Page 28: 8051

Schematic Diagram:

Page 30: 8051

 Evaluation Board Circuit for 8051 Microcontroller

The evaluation board is dedicated for usages strictly related to AT89C51 (40 pin DIP), which is an infamous microcontroller and a very frequently used one in the academic arena as well. Generally, most of the evaluation boards available in the market are beyond the affordability range of an individual. Keeping this constraint in mind the board is designed such that it will not only cope with various feasible utilities of the microcontroller but also it will provide a deeper insight of microcontroller interfacing to the rookies. 

The salient features of this 8051 evaluation board are:[1] It is a very low cost design.[2] It is very lucid.[3] It has got an on-board regulated power supply (with LED).[4] All 4 ports of the 8051 microcontroller are easily accessible for further measures.[5] It has an on-board reset switch.[6] ALE, PSEN are arranged in such a manner that both internal and external memory access can be performed with a minor knob movement.[7] Port 0 pins can be used as input or output with no addendum (mere switch adjustment). [8] The board supports serial mode access through RS232 using MAX232 chip.

Schematic:

Page 31: 8051

[Note: All it takes is just to refer the circuit diagram given above and rebuild the circuit using any PCB fabrication tool readily available over Internet (e.g. PCB wizard) and transfer the design to a silk-screen. Then a PCB can be easily fabricated from that silk-screen and the various components can be populated over it using a soldering iron. Voila... you are ready with your fully functional evaluation board.]

*** Anyway, take the Mediafire link to 'PCB Wizard 3.50 PRO' ("no installation needed")[the file for the evaluation board with .pcb extension is also available along with it.]

Page 32: 8051

Wiki Page On : Development Board To Start With

29/04/2012

0 Comments

I wrote a wiki page on Embedded Nirvana for those who find it difficult for which Development Board to opt for. The link to the wiki is : Development Board To Start With. More details are to be added. If you are into Embedded and this falls in your area of interest then do edit the wiki and spread the knowledge.

About Embedded Nirvana : Embedded Nirvana is an initiative for hands-on knowledge sharing on Embedded Devices. Aimed at creating a knowledge pool about the use of Open Source tools in embedded devices and steering ahead the development of industry viable technologies and products

Add Comment

Fedora 17 : Beefy Miracle

29/04/2012

0 Comments

Add Comment

Keypad Talking To LCD Via AT89S51

18/04/2012

0 Comments

Page 33: 8051

In few previous post, I showed schematic for interfacing Keypad and LCD using 8051 architecture. This blog post shows complete implementation of the interface using AT89S51 Micro-controller with programming in assembly.

This is the final schematic for interfacing 4x4 Keypad with 16x2 LCD using AT89S51 :

To implement above circuit on General Purpose PCB, one should have following components ready :

1) AT89S51 Micro-Controller2) 4x4 Keypad 3) 16x2 LCD4) 10 Kohm resistor5) 10 uF capacitor6) Crystal Oscillator : 12 MHz7) Potentiometer : 10 Kohm8) Wires : 2 meter9) Power supply to test the circuit. The above schematic works on 5 V10) Universal Programmer : To upload the ASM programs on the AT89S51 a programmer is used.

Page 34: 8051

11) Removable IC Socket for AT89S5112) Soldering gun and materials required for soldering.

Note : One might use different techniques to solder the components and thus the list for same will vary.

Considering that one understands the technical background for Keypad and LCD. Now, follow the schematic given above and solder the components on the General Purpose PCB :

Note : While doing so, first solder LCD and check if it works properly by uploading the code to display the characters and the move on to Keypad phase. Doing in phases helps.

Page 35: 8051

Now cross check the connections and also make sure that LCD's brightness is controllable with the pot when the system in powered using a power supply. Supply voltage in this case was 5 Volt.

Next step is to upload the code for capturing Keypad data and to display same on the LCD. I would encourage individuals to write the code on own, hence not sharing here. And after the code has been burned, place the AT89S51 on IC socket and test the system, whichever key is pressed that key should be displayed on the LCD :

Page 36: 8051

If things doesn't work as desired then follow the debugging method :

1) Check wired connection.2) Soldering.3) Power Supply to all components.4) Make sure that the Keypad Rows and Columns are connected to correct PINs on the controller , same check with LCD.5) Debug the code properly.

This is the video showing how characters are displayed when keys are pressed :

Page 37: 8051

Recommended