Académique Documents
Professionnel Documents
Culture Documents
Institute of Technology
(Managed by Shree Tapi Brahmcharyashram Sabha)
Name:____________________________________________
Branch: __________________________________________
EnrolmentNo:_____________________________________
Exam No:__________________ Year__________________
Microcontroller
Practical No :- 1(A)
Date:-__________
• To open “Keil uVision4” find the below icon on your PC Desktop and double
click on it.
• Click on “Project menu” then click on “New uVision Project” to create new
project.
It will show a new window. Set a “Project Name” in a new empty folder and click
on save.
• Device Target :-
From given list of device name under Data base, select NXP (founded by
Philips) ->P89V51RD2. Press OK.
1. Write the program code in KEIL IDE and create a Hex File.
2. Power on the kit.
3. Connect the NI-51 kit to the PC via DB9 or USB connector.
4. Open Flash Magic software. And set the option as mention below.
• Introduction to NI KIT-51:-
The NI KIT-51 Microcontroller Starter Kit consists of:
• NI KIT-51 Description:
• Connect the serial cable to the 9-pin ‘D’ connector on the target board
cabinet.
• Connect the power supply cable to the 230V AC mains.
• Make sure that the DPDT switch next to keyboard is switched to PROG for
programming and RUN for execution.
• Connect the other end of the serial cable to a serial port on your PC.
• Switch on the mains. The green LED indicates that the target board is
running.
• Features :-
• Philips flash microcontroller P89V51RD2
• On chip 64KB flash memory and 1KB RAM
• ISP/IAP programming mode
• 12 clock/6 clock per machine cycle operating mode
• Crystal 11.0592 MHz
• 16 x 2 Alpha-numeric LCD Display Module
• 5 nos. of user programmable keys
• 8 nos.of LEDs on Port-1
SSASIT, SURAT EC DEPARTMENT Page 10
Microcontroller
AIM: Introduction to the concept of Flag Bits, Stack, RAM and ROM.
Program:
ORG 00H
//Observe Flags
//==================
// Mnemonics Comment
//1. Carry Flag after addition E1h + E2h = 1C3h
MOV A,#0E1H
ADD A,#0E2H
//Observe Memory
//==============
End
Results:-
Conclusion: