LABORATORY MANUAL EMBEDDED C LABORATORY. M. Tech I Year I Sem R13 DEPARTMENT OF ELECTRONICS & COMMUNICATION ENGG.
|
|
- Giles Glenn
- 5 years ago
- Views:
Transcription
1 LABORATORY MANUAL EMBEDDED C LABORATORY M. Tech I Year I Sem R13 DEPARTMENT OF ELECTRONICS & COMMUNICATION ENGG. BALAJI INSTITUTE OF TECHNOLOGY & SCIENCE Laknepally, Narsampet, Warangal 1
2 M.TECH. (EMBEDDED SYSTEMS)-R13 Regulations JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD M. Tech I Year I Sem. Embedded Systems EMBEDDED C LABORATORY Note: Minimum of 10 experiments have to be conducted. The following programs have to be tested on 89C51 Development board/equivalent using Embedded C Language on Keil IDE or Equivalent. 1. Program to toggle all the bits of Port P1 continuously with 250 ms delay. 2. Program to toggle only the bit P1.5 continuously with some delay. Use Timer 0, mode 1 to create delay. 3. Program to interface a switch and a buzzer to two different pins of a Port such that the buzzer should sound as long as the switch is pressed. 4. Program to interface LCD data pins to port P1 and display a message on it. 5. Program to interface keypad. Whenever a key is pressed, it should be displayed on LCD. 6. Program to interface seven segment display unit. 7. Program to transmit a message from Microcontroller to PC serially using RS Program to receive a message from PC serially using RS Program to get analog input from Temperature sensor and display the temperature value on PC Monitor. 10. Program to interface Stepper Motor to rotate the motor in clockwise and anticlockwise directions 11. Program to Sort RTOS on to 89C51 development board. 12. Program to interface Elevator. 2
3 Experiment no: 1 PROGRAMMING PORTS Program to toggle all the bits of Port P1 continuously with 250 ms delay. 3
4 #include<reg51.h> void delay(unsigned int msec) //delay function int i,j; for(i=0;i<msec;i++) for(j=0;j<1275;j++); Void main() P1=0x00; While (1) P1=0xff; delay(250); P1=0x00; delay(250); 4
5 Experiment no: 2 DELAY USING TIMERS Program to toggle only the bit P1.5 continuously with some delay. Use Timer 0, mode 1 to create delay. 5
6 #include <REGX51.H> void delay(); void main() while(1) P1=0X10; delay(); P1=0x00; void delay() TMOD=0x01; TH1=0Xff; TL1=0Xff; TR1=1; while(tf1==0); TF1=0; TR1=0; 6
7 Experiment no: 3 SWITCH & BUZZER INTERFACING Program to interface a switch and a buzzer to two different pins of a Port such that the buzzer should sound as long as the switch is pressed. H/w set up: 1. Switch is connected to P Buzzer is connected to P1.2 7
8 #include <REGX51.H> sbit a=p1^1; sbit a=p1^2; void main() a=b=0; while(1) if(a==1) b=1; else b=0; 8
9 Experiment no: 4 LCD INTERFACING Program to interface LCD data pins to port P1 and display a message on it. 9
10 //Program to display String on LCD #include<regx51.h> sfr lcd_data_pin=0x90; // data port P1 sbit rs=p3^0; // Register select pin sbit rw=p3^1; // Read write pin sbit en=p3^6; // Enable pin void delay(unsigned int msec) //delay function int i,j; for(i=0;i<msec;i++) for(j=0;j<1275;j++); void lcd_command(unsigned char comm) // function to send command to LCD lcd_data_pin=comm; en=1; rs=0; rw=0; delay(1); en=0; void lcd_data(unsigned char disp) // function to send data on LCD lcd_data_pin=disp; en=1; rs=1; rw=0; 10
11 delay(1); en=0; lcd_dataa(unsigned char *disp) // function to send string to LCD int x; for(x=0;disp[x]!=0;x++) lcd_data(disp[x]); void lcd_ini() //Function to inisialize the LCD lcd_command(0x38); delay(5); lcd_command(0x0f); delay(5); lcd_command(0x80); delay(5); void main() lcd_ini(); lcd_dataa("welcome!"); 11
12 Experiment no: 5 4X3 KEYPAD INTERFACING Program to interface keypad. Whenever a key is pressed, it should be displayed on LCD. 12
13 // Program to interface controller with controller #include<reg51.h> #define port P1 #define dataport P2 // Dataport for lcd #define key P0 // Port for keypad #define sec 100 sbit rs = port^1; sbit rw = port^2; sbit en = port^3; sbit col1=key^4; sbit col2=key^5; sbit col3=key^6; sbit row1=key^0; sbit row2=key^1; sbit row3=key^2; sbit row4=key^3; void delay(unsigned int msec) //Time delay function int i,j ; for(i=0;i<msec;i++) for(j=0;j<1275;j++); 13
14 void lcd_cmd(unsigned char item) //Function to send command to LCD dataport = item; rs= 0; rw=0; en=1; delay(1); en=0; return; void lcd_data(unsigned char item) //Funtion to send data on LCD dataport = item; rs= 1; rw=0; en=1; delay(1); en=0; return; void lcd_data_string(unsigned char *str) // Function to send string on LCD 14
15 int i=0; while(str[i]!='\0') lcd_data(str[i]); i++; delay(10); return; void lcd(unsigned char str[10]) // Funtion to Initialize LCD lcd_cmd(0x38); lcd_cmd(0x0e); //delay(sec); lcd_cmd(0x01); //delay(sec); lcd_cmd(0x82); //delay(sec); lcd_data_string(str); void display(int a) //Display functon for LCD 15
16 switch(a) case 1:lcd("one 1"); break; case 2:lcd("two 2"); break; case 3:lcd("three 3"); break; case 4:lcd("four 4"); break; case 5:lcd("five 5"); break; case 6:lcd("six 6"); break; case 7:lcd("seven 7"); break; case 8:lcd("EIGHT 8"); break; case 9:lcd("NINE 9"); break; case 0:lcd("ZERO 0"); break; case 11:lcd("*"); break; case 12:lcd("#"); 16
17 break; void check_col1() //Function for checking column one row1=row2=row3=row4=1; row1=0; if(col1==0) display(1); row1=1; row2=0; if(col1==0) display(4); row2=1; row3=0; if(col1==0) display(7); row3=1; row4=0; if(col1==0) display(11); row4=1; 17
18 void check_col2() //Function for checking column two row1=row2=row3=row4=1; row1=0; if(col2==0) display(2); row1=1; row2=0; if(col2==0) display(5); row2=1; row3=0; if(col2==0) display(8); row3=1; row4=0; if(col2==0) display(0); row4=1; void check_col3() //Function for checking column three row1=row2=row3=row4=1; row1=0; 18
19 if(col3==0) display(3); row1=1; row2=0; if(col3==0) display(6); row2=1; row3=0; if(col3==0) display(9); row3=1; row4=0; if(col3==0) display(12); //For # row4=1; void main() col1=col2=col3=1; //Input Port while(1) row1=row2=row3=row4=0; if(col1==0) check_col1(); 19
20 else if(col2==0) check_col2(); else if(col3==0) check_col3(); 20
21 Experiment no: 6 7 SEGMENT DISPLAY INTERFACING Program to interface seven segment display unit. 21
22 // Program to interface single seven segment #include<reg51.h> delay_ms(int time) // Time delay function int i,j; for(i=0;i<time;i++) for(j=0;j<1275;j++); void main() char num[]=0x40,0xf9,0x24,0x30,0x19,0x12,0x02,0xf8,0x00,0x10;// Hex values corresponding to digits 0 to 9 int c; while(1) for(c=0;c<10;c++) P2=num[c]; delay_ms(200); 22
23 Experiment no: 7 SERIAL COMMUNICATION TRANSMITTER Program to transmit a message from Microcontroller to PC serially using RS
24 #include <REGX51.H> void main() SCON=0x40; TMOD=0x20; TH1=0xFD; TR1=1; SBUF='serial communication transmitter'; while(ti==0); TI=0; while(1); 24
25 Experiment no: 8 SERIAL COMMUNICATION RECEIVER Program to receive a message from PC serially using RS
26 #include <REGX51.H> void main() int i; char a[]="serial communication receiver"; SCON=0x40; TMOD=0x20; TH1=0xFD; TR1=1; for(i=0;a[i]!='\0';i++) SBUF=a[i]; while(ti==0); TI=0; while(1); 26
27 Experiment no: 9 TEMPERATURE SENSOR INTERFACING Program to get analog input from Temperature sensor and display the temperature value on PC Monitor. 27
28 //Program to check the working of ADC0804 using LED's on its output port. #include<reg51.h> #define input P0 //Input port to read the values of ADc #define output P2 // Output port, connected to LED's. sbit wr= P1^1; // Write pin. It is used to start the conversion. sbit rd= P1^0; // Read pin. It is used to extract the data from internal register to the output pins of ADC. sbit intr= P1^2; // Interrupt pin. This is used to indicate the end of conversion. It goes low when conversion is complete. void delay(unsigned int msec ) // The delay function provides delay in msec. int i,j ; for(i=0;i<msec;i++) for(j=0; j<1275; j++); void adc() // Function to read the values from ADC and display on the LED's. rd=1; wr=0; delay(1); wr=1; 28
29 while(intr==1); rd=0; output=input; delay(1); intr=1; void main() input=0xff; // Declare port 0 as input port. while(1) adc(); 29
30 Experiment no: 10 STEPPER MOTOR INTERFACING Program to interface Stepper Motor to rotate the motor in clockwise and anticlockwise directions 30
31 // Program to interface Stepper Motor with 8051 Microcontroller (AT89C51) /**** Wave Drive Stepping ****/ #include<regx51.h> sfr stepper=0xa0; void delay(unsigned int count) int i; for(i=0;i<count;i++); void main() while(1) stepper=0x01; delay(350); stepper=0x02; delay(350); stepper=0x04; delay(350); stepper=0x08; delay(350); 31
32 /*****************************/ /**** Half Drive Stepping ****/ #include<reg51.h> sfr stepper=0xa0; void delay(unsigned int count) int i; for(i=0;i<count;i++); void main() while(1) stepper=0x01; delay(300); stepper=0x03; delay(300); stepper=0x02; delay(300); stepper=0x06; delay(300); 32
33 stepper=0x04; delay(300); stepper=0x0c; delay(300); stepper=0x08; delay(300); stepper=0x09; delay(300); /*****************************/ 33
34 EXPERIMENT-11 /****************************************************************************/ /* */ /* RTX_Test.C: A RTX-51 Application */ /* */ /****************************************************************************/ #include <rtx51tny.h> // RTX-51 tiny functions & defines #include <reg52.h> #define LCD_DATA P1 to Port(Port1) //8051 Register //Define LCD_DATA Lines #define LED P0 // Define LED for PORT 0 /***********************Define LCD control pins******************************/ sbit RS = P3^5; //Register Select sbit RW = P3^6; //LCD Read/Write sbitlcd_e = P3^7; //LCD Enable code unsigned char msg[] = (" 8051 MCOS RTOS "); code unsigned char msg1[] = (" MULTITASKING "); //Display the message //void lcd_init(void); voidlcd_cmd(unsigned char); voidlcd_display(unsigned char); /***************************************************************************/ /* Task 0 : RTX-51 tiny Initializ task */ /***************************************************************************/ voidinit(void)_task_ 0 os_create_task (1); // start task 1 INIT_UART os_create_task (2); // start task 2 SEND_UART os_create_task (3); // start task 2 LED Blink os_create_task (4); // start task 2 LCD Display while (1) // endless loop os_wait (K_TMO, 5, 0); // wait for timeout: 5 ticks /**************************************************************************/ /* Task 1 : RTX-51 tiny starts initialize serial port with task 0 */ /**************************************************************************/ 34
35 voiduart (void) _task_ 1 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 MHz TR1 = 1; // TR1: timer 1 run TI = 1; // TI: set TI to send first char of UART /**************************************************************************/ /* Task 2 : RTX-51 tiny starts send UART data with task 0 */ /**************************************************************************/ voiduart_send(void) _task_ 2 while (1) os_wait (K_TMO, 10, 0); SBUF = 'A'; /**************************************************************************/ /* Task 3 : RTX-51 tiny starts LED Blink with task 0 */ /**************************************************************************/ void led(void) _task_ 3 while (1) LED = 0x55; os_wait (K_TMO, 30, 0); LED = 0xAA; os_wait (K_TMO, 30, 0); // endless loop /**************************************************************************/ /* Task 4 : RTX-51 tiny starts LCD Initializaion with task 0 */ /**************************************************************************/ voidlcd(void) _task_ 4 while (1) unsigned char i; // endless loop dot lcd_cmd(0x38); os_wait (K_TMO, 2, 0); lcd_cmd(0x0c); os_wait (K_TMO, 2, 0); lcd_cmd(0x06); //Display On, cursor off //Shift Cursor to right //2x16 Character 5x7 35
36 os_wait (K_TMO, 2, 0); lcd_cmd(0x01); os_wait (K_TMO, 2, 0); // // First Line Message Display // lcd_cmd(0x80); os_wait (K_TMO, 2, 0); i=0; while(msg[i]!='\0') lcd_display(msg[i]); i++; os_wait (K_TMO, 4, 0); //Clear display screen //First Line Initialization // // Second Line Message Display // lcd_cmd(0xc0); os_wait (K_TMO, 2, 0); i=0; while(msg1[i]!='\0') lcd_display(msg1[i]); i++; os_wait (K_TMO, 4, 0); // // LCD command Function // voidlcd_cmd(unsigned char cmnd) LCD_DATA = cmnd; RS = 0; RW = 0; lcd_e = 1; os_wait (K_TMO, 2, 0); lcd_e = 0; // // LCD Data Function // voidlcd_display(unsigned char dat) //Second Line Initialization 36
37 LCD_DATA = dat; RS = 1; RW = 0; lcd_e = 1; os_wait (K_TMO, 2, 0); lcd_e = 0; 37
{ int i,j; for(i=0;i<count;i++) for(j=0;j<1275;j++); }
RFID based Secured access system using 8051 microcontroller (AT89C51) //Program for RFID based Secured access system using 8051 microcontroller //(AT89C51) #include sfr lcd_data_pin=0xa0; //P2
More informationHuman Eye Ball recognition system
Human Eye Ball recognition system Reg no: 10MSE1099 Name:M.V.Raam Vignesh Year: 2Year,III Semester College name: VIT University, Chennai Date:22/11/12 Abstract: The main scope of the project is to bring
More informationMEPCO SCHLENK ENGINEERING COLLEGE, SIVAKASI. Department of Electronics and Communication Engineering COURSE INSTRUCTION MANUAL
MEPCO SCHLENK ENGINEERING COLLEGE, SIVAKASI Vision Mission Envisioning a world Lead by our Engineers, holding a Beacon of Hope and Confidence for Generations to come. To Produce Competent, Disciplined
More informationSerial-out Color Sensor. Overview. Features
Visit us @ www.thearyatechnologies.com Email: aryaprotech@gmail.com / info@thearyatechnologies.com Contact us@ 0253-2512131 Serial-out Color Sensor Overview Color sensor identifies primary colors (Red,
More informationTexas Instruments Microcontroller HOW-TO GUIDE Interfacing Keypad with MSP430F5529
Texas Instruments Microcontroller HOW-TO GUIDE Interfacing Keypad with MSP430F5529 Contents at a Glance PS PRIMER MSP430 kit... 3 Keypad... 4 Interfacing keypad... 4 Interfacing keypad with MSP430F5529...
More informatione-pg Pathshala Subject: Computer Science Paper: Embedded System Module: Interfacing External Devices using Embedded C Module No: CS/ES/22
e-pg Pathshala Subject: Computer Science Paper: Embedded System Module: Interfacing External Devices using Embedded C Module No: CS/ES/22 Quadrant 1 e-text In this lecture interfacing of external devices
More information8051 Peripherals. On-Chip Memory Timers Serial Port Interrupts. Computer Engineering Timers
8051 Peripherals On-Chip Memory Timers Serial Port Interrupts Computer Engineering 2 2-1 8051 Timers 8051 Timers The 8051 has 2 internal 16-bit timers named Timer 0 and Timer 1 Each timer is a 16-bit counter
More informationMODEL ANSWER SUMMER 17 EXAMINATION Subject Title: Microcontroller and Applications Subject Code:
MODEL ANSWER SUMMER 17 EXAMINATION Subject Title: Microcontroller and Applications Subject Code: I m p o r t a n t I n s t r u c t i o n s t o e x a m i n e r s : 1) The answers should be examined by key
More informationWINTER 14 EXAMINATION Subject Code: Model Answer Page No: 1/ 26
WINTER 14 EXAMINATION Subject Code: 17509 Model Answer Page No: 1/ 26 Important Instructions to examiners: 1) The answers should be examined by key words and not as word-to-word as given in the model answer
More informationEE 354 September 16, 2016 C Sample Programs
EE 354 September 16, 2016 C Sample Programs //DataArray /* This program creates an array of data in code memory * that is 32 bytes long. Fill this array with the ascii codes for * the capital letters plus
More informationPractical Manual Embedded Systems (Course Code-USIT4P5) For. S.Y.B.Sc. I.T. (Semester IV)
Practical Manual 2017-2018 On Embedded Systems (Course Code-USIT4P5) For S.Y.B.Sc. I.T. (Semester IV) Prepared By Mrs.Archana Bhide R.J.College,Ghatkopar. 1 Index Sr No Title Introduction Introduction
More informationS.J.P.N Trust's. Hirasugar Institute of Technology, Nidasoshi.
S.J.P.N Trust's Tq: Hukkeri Dist: Belagavi DEPARTMENT OF ELECTRICAL & ELECTRONICS ENGINEERING LABORATORY MANUAL Name of the Lab: Microcontroller Laboratory Semester: V Subject Code: 15EEL57 Staff Incharge:
More informatione-pg Pathshala Subject: Computer Science Paper: Embedded System Module: Interrupt Programming in Embedded C Module No: CS/ES/20 Quadrant 1 e-text
e-pg Pathshala Subject: Computer Science Paper: Embedded System Module: Interrupt Programming in Embedded C Module No: CS/ES/20 Quadrant 1 e-text In this lecture embedded C program for interrupt handling
More information8051 Interfacing and Applications Microcontroller
8051 Interfacing and Applications Objectives: At the end of this chapter, we will be able to: List the different devices that can be interfaced with 8051 Understand the working principle. Develop the following
More informationEXPERIMENT NO. 02 ELECTRONIC VOTING MACHINE USING 8051.
EXPERIMENT NO. 02 ELECTRONIC VOTING MACHINE USING 8051. DOP: DOS: Project Members: 1) Prasad Pawaskar 58 2) Vishal Thakur 72 Page No.-1 AIM: To implement Electronic voting machine using 8051 microcontroller.(at89c51)
More informationBachelor of Engineering in Computer and Electronic Engineering
Bachelor of Engineering in Computer and Electronic Engineering Computer Engineering 1 Year 2 Semester 3 Autumn 08 Niall O Keeffe Instructions to Candidates: - 2 hours duration Answer 4 out of 6 questions.
More information1. Attempt any three of the following: 15
(2½ hours) Total Marks: 75 N. B.: (1) All questions are compulsory. (2) Make suitable assumptions wherever necessary and state the assumptions made. (3) Answers to the same question must be written together.
More information// sets the position of cursor in row and column
CODE: 1] // YES_LCD_SKETCH_10_14_12 #include //lcd(rs, E, D4, D5, D6, D7) LiquidCrystal lcd(8, 9, 4, 5, 6, 7); int numrows = 2; int numcols = 16; void setup() Serial.begin(9600); lcd.begin(numrows,
More informationLCD AND KEYBOARD INTERFACING
LCD AND KEYBOARD The 8051 Microcontroller and Embedded Systems: Using Assembly and C Mazidi, Mazidi and McKinlay Chung-Ping Young 楊中平 Home Automation, Networking, and Entertainment Lab Dept. of Computer
More informationList any four software development tools used in an embedded system and state the function of each.
Subject Code: 17658 Model Answer Page1 of 29 Important Instructions to examiners: 1) The answers should be examined by key words and not as word-to-word as given in the model answer scheme. 2) The model
More informationC:\CYGNAL\Examples\C8051F02x\C\Edu_Board_Source_Code\Magcard.c
Magcard.c Author: Baylor Electromechanical Systems Operates on an external 18.432 MHz oscillator. Target: Cygnal Educational Development Board / C8051F020 Tool chain: KEIL C51 6.03 / KEIL EVAL C51 This
More informationINTERRUPTS PROGRAMMING
INTERRUPTS PROGRAMMING The 8051 Microcontroller and Embedded Systems: Using Assembly and C Mazidi, Mazidi and McKinlay Chung-Ping Young 楊中平 Home Automation, Networking, and Entertainment Lab Dept. of Computer
More informationLABORATORY MANUAL EMBEDDED SYSTEMS LABORATORY. M. Tech I Year I Sem R15 DEPARTMENT OF ELECTRONICS & COMMUNICATION ENGG.
LABORATORY MANUAL EMBEDDED SYSTEMS LABORATORY M. Tech I Year I Sem R15 DEPARTMENT OF ELECTRONICS & COMMUNICATION ENGG. BALAJI INSTITUTE OF TECHNOLOGY & SCIENCE Laknepally, Narsampet, Warangal 506331 LIST
More informationInterrupts, timers and counters
Interrupts, timers and counters Posted on May 10, 2008, by Ibrahim KAMAL, in Micro-controllers, tagged Most microcontrollers come with a set of ADD-ONs called peripherals, to enhance the functioning of
More informationMicrocontroller and Embedded Systems:
Microcontroller and Embedded Systems: Branches: 1. Electronics & Telecommunication Engineering 2. Electrical & Electronics Engineering Semester: 6 th Semester / 7 th Semester 1. Explain the differences
More informationCPEG300 Embedded System Design. Lecture Interface with Peripheral Devices
CPEG300 Embedded System Design Lecture 0 805 Interface with Peripheral Devices Hamad Bin Khalifa University, Spring 208 Typical Devices for an Electronics System Power generation PWM control Input devices
More informationMODEL ANSWER WINTER 17 EXAMINATION Subject Title: Microcontroller and applications
Important Instructions to examiners: 1) The answers should be examined by key words and not as word-to-word as given in the model answer scheme. 2) The model answer and the answer written by candidate
More informationSANKALCHAND PATEL COLLEGE OF ENGINEERING, VISNAGAR. ELECTRONICS & COMMUNICATION DEPARTMENT Question Bank- 1
SANKALCHAND PATEL COLLEGE OF ENGINEERING, VISNAGAR ELECTRONICS & COMMUNICATION DEPARTMENT Question Bank- 1 Subject: Microcontroller and Interfacing (151001) Class: B.E.Sem V (EC-I & II) Q-1 Explain RISC
More informationa) Attempt any THREE of the following 12 M
Important Instructions to examiners: 1) The answers should be examined by key words and not as word-to-word as given in the model answer scheme. 2) The model answer and the answer written by candidate
More informationT.Y. Diploma : Sem. VI [ET/EN/EX/EJ/IE/IS/IC/DE/EV/MU/IU/ED/EI] Embedded System
T.Y. Diploma : Sem. VI [ET/EN/EX/EJ/IE/IS/IC/DE/EV/MU/IU/ED/EI] Embedded System Time : 3 Hrs.] MSBTE Specimen Question Paper Solution [Marks : 100 Q.1(a) Attempt any THREE of the following : [12] Q.1(a)
More informationMAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC Certified) SUMMER-16 EXAMINATION Model Answer
Important Instructions to examiners: 1) The answers should be examined by key words and not as word-to-word as given in the model answer scheme. 2) The model answer and the answer written by candidate
More informationModules For Six Months Industrial Training On WIRELESS EMBEDDED SYSTEM DESIGN
Modules For Six Months Industrial Training On WIRELESS EMBEDDED SYSTEM DESIGN 1 st Week Introduction to Embedded System a) Tool Hardware tool and Software tool b) Embedded designing, course study c) Board
More informationbased on candidate s understanding. 7) For programming language papers, credit may be given to any other program based on equivalent concept.
WINTER 16 EXAMINATION Model Answer Subject Code: Important Instructions to examiners: 1) The answers should be examined by key words and not as word-to-word as given in the model answer scheme. 2) The
More informationDepartment of Electronics and Instrumentation Engineering Question Bank
www.examquestionpaper.in Department of Electronics and Instrumentation Engineering Question Bank SUBJECT CODE / NAME: ET7102 / MICROCONTROLLER BASED SYSTEM DESIGN BRANCH : M.E. (C&I) YEAR / SEM : I / I
More informationELEG3923 Microprocessor Ch.9 Timer Programming
Department of Electrical Engineering University of Arkansas ELEG3923 Microprocessor Ch.9 Timer Programming Dr. Jingxian Wu wuj@uark.edu OUTLINE 2 Programming 8051 Timers Counter programming Timer programming
More informationQ.1. A) Attempt any THREE of the following:
Important Instructions to examiners: 1) The answers should be examined by key words and not as word-to-word as given in the model answer scheme. 2) The model answer and the answer written by candidate
More informationMODEL ANSWER SUMMER 17 EXAMINATION
MODEL ANSWER SUMMER 17 EXAMINATION 17658 Subject Title: EMBEDDED SYSTEM Subject Code: Important Instructions to examiners: 1) The answers should be examined by key words and not as word-to-word as given
More informationELEG3923 Microprocessor Ch.10 Serial Port Programming
Department of Electrical Engineering University of Arkansas ELEG3923 Microprocessor Ch.10 Serial Port Programming Dr. Jingxian Wu wuj@uark.edu OUTLINE 2 Basics of Serial Communication Serial port programming
More informationReal Time Operating System
Chapter 11 Real Time Operating System Lesson 06 Case Study of Traffic Light for use of RTOS 51 in Design Assumptions When a vehicle coming from north, Left turn (north to west) allowed directly Left-lane
More informationAutomated Walker with Patient Monitoring Mechanism. Kailash Kumar Jain Munoth. A Report. Presented to the Faculty of
Automated Walker with Patient Monitoring Mechanism By Kailash Kumar Jain Munoth A Report Presented to the Faculty of Assistive Technology Lab Padmasri Dr. B. V. Raju Institute of Technology Under the Supervision
More informationChapter 6 Serial EEPROM by John Leung
Chapter 6 Serial EEPROM 6.1 ATMEL I 2 C Serial EEPROM The AT24C256 (U6) is useful for our application in storing critical data like temperature and humidity data, its time stamp, graphics, icons, or even
More informationDepartment of Electronics and Communication Engineering Microprocessors and Microcontrollers Laboratory Description:
Microprocessors and Microcontrollers Laboratory Description: This laboratory enables III year II Semester ECE, and IV year I Semester EEE students to perform the various experiments in the area of Microprocessors
More information8051 Microcontroller
8051 Microcontroller 1 Salient Features (1). 8 bit microcontroller originally developed by Intel in 1980. (2). High-performance CMOS Technology. (3). Contains Total 40 pins. (4). Address bus is of 16 bit
More information8051 Serial Port. EE4380 Fall02 Class 10. Pari vallal Kannan. Center for Integrated Circuits and Systems University of Texas at Dallas
8051 Serial Port EE4380 Fall02 Class 10 Pari vallal Kannan Center for Integrated Circuits and Systems University of Texas at Dallas Serial Comm. - Introduction Serial Vs Parallel Transfer of data Simplex,
More informationFACULTY OF ENGINEERING LAB SHEET
FACULTY OF ENGINEERING LAB SHEET EMBEDDED SYSTEM DESIGN ECE3196 TRIMESTER 2 (2015/2016) : Development of a simple embedded system scheduler *Note: On-the-spot evaluation may be carried out during or at
More informationMAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC Certified)
Important Instructions to examiners: 1) The answers should be examined by key words and not as word-to-word as given in themodel answer scheme. 2) The model answer and the answer written by candidate may
More informationSYLLABUS UNIT - I 8086/8088 ARCHITECTURE AND INSTRUCTION SET
1 SYLLABUS UNIT - I 8086/8088 ARCHITECTURE AND INSTRUCTION SET Intel 8086/8088 Architecture Segmented Memory, Minimum and Maximum Modes of Operation, Timing Diagram, Addressing Modes, Instruction Set,
More informationPART-A INTRODUCTION TO 8051 MICROCONTROLLER. 8-bit data bus - It can access 8 bits of data in one operation
The Intel 8051 is Harvard architecture, single chip microcontroller (μc) which was developed by Intel in 1980 for use in embedded systems. 8051 is an 8-bit micro controller. The Important features of 8051
More informationWIRELESS EMBEDDED SYSTEM DESIGN
Modules For Six Weeks Industrial Training On WIRELESS EMBEDDED SYSTEM DESIGN 1 st Week 1 st Day Introduction to Embedded System a) Tool Hardware tool and Software tool Introduction b) Embedded designing,
More informationDiploma in Embedded Systems
Diploma in Embedded Systems Duration: 5 Months[5 days a week,3 hours a day, Total 300 hours] Module 1: 8051 Microcontroller in Assemble Language Characteristics of Embedded System Overview of 8051 Family
More informationATMEGA32 MUSIC PLAYER
Digital and Analogue Projects EITF40 09/03/2015 ATMEGA32 MUSIC PLAYER Supervised by: Bertil Lindvall Controlled by buttons and accelerometer The purpose of this project was emulating a music player that
More informationLecture 10. Serial Communication
Lecture 10 Serial Communication Serial Communication Introduction Serial communication buses Asynchronous and synchronous communication UART block diagram UART clock requirements Programming the UARTs
More informationQ 1 a) Attempt any THREE of the following: 12 TMOD.7 TMOD.6 TMOD.5 TMOD.4 TMOD.3 TMOD.2 TMOD.1 TMOD.0 GATE C/T M1 M0 GATE C/T M1 M0
Page 1 of 33 Q 1 a) Attempt any THREE of the following: 12 Q 1 a i) Describe Timer modes of 8051. Ans: Timer 0 and Timer 1 can both be used as either Counters or Timers. There are 4 different operating
More informationPearson Education Limited Edinburgh Gate Harlow Essex CM20 2JE England and Associated Companies throughout the world
Pearson Education Limited Edinburgh Gate Harlow Essex CM20 2JE England and Associated Companies throughout the world Visit us on the World Wide Web at: www.pearsoned.co.uk Pearson Education Limited 2014
More informationLecture (09) PIC16F84A LCD interface LCD. Dr. Ahmed M. ElShafee
Lecture (09) PIC16F84A LCD interface PIC16F84A LCD interface Assignment 01, 4 Zones fire controller board Assignment 02, automatic water tank controller Dr. Ahmed M. ElShafee ١ ٢ LCD LCD (Liquid Crystal
More informationSerial communication
Serial communication CSCI 255: Introduction to Embedded Systems Keith Vertanen Copyright 2011 Serial communication Terminology RS-232 protocol Baud rates Flow control Example Overview Develop functions
More informationEmbedded Controller Programming II. I/O Device Programming in C Part 1: Input and Interrupts
Discovery.com Embedded Controller Programming II I/O Device Programming in C Part 1: Input and Interrupts Ken Arnold Copyright (c)2006 Ken Arnold 051221 1 Overview Basic Input Devices Switch Input Matrix
More informationTEVATRON TECHNOLOGIES PVT. LTD Embedded! Robotics! IoT! VLSI Design! Projects! Technical Consultancy! Education! STEM! Software!
Summer Training 2016 Advance Embedded Systems Fast track of AVR and detailed working on STM32 ARM Processor with RTOS- Real Time Operating Systems Covering 1. Hands on Topics and Sessions Covered in Summer
More informationP89V51RD2 Development Board May 2010
P89V51RD2 Development Board May 2010 NEX Robotics Pvt. Ltd. 1 P89V51RD2 Development Board Introduction: P89V51RD2 Development Board P89V51RD2 Development Board is a low cost development board which have
More informationEmbedded Systems. Software Development & Education Center. (Design & Development with Various µc)
Software Development & Education Center Embedded Systems (Design & Development with Various µc) Module 1: Embedded C Programming INTRODUCTION TO EMBEDDED SYSTEM History & need of Embedded System Basic
More informationThomas Liu (Business Manager) //****************************************************************//
//****************************************************************// // Program for AM230x series //MCU: AT89S52, Frequency of crystal oscillator: 11.0592MHz //Function: Transmit RH & Temp. Data via PC
More informationBy the end of Class. Outline. Homework 5. C8051F020 Block Diagram (pg 18) Pseudo-code for Lab 1-2 due as part of prelab
By the end of Class Pseudo-code for Lab 1-2 due as part of prelab Homework #5 on website due before next class Outline Introduce Lab 1-2 Counting Timers on C8051 Interrupts Laboratory Worksheet #05 Copy
More informationMicroprocessors and Microcontrollers (EE-231)
Microprocessors and Microcontrollers (EE-231) Objective Interrupts Programming in C In Proteus On 8051 development board Interrupt An interrupt is an external or internal event that interrupts the microcontroller
More informationARM HOW-TO GUIDE Interfacing 7SEG with LPC2148 ARM
ARM HOW-TO GUIDE Interfacing 7SEG with LPC2148 ARM Contents at a Glance ARM7 LPC2148 Slicker Board... 3 Seven Segment Display... 3 Interfacing Seven Segment Display... 4 Interfacing Seven Segment with
More informationDragon12 LCD Displays Hantronix_CLD.PDF data sheet (Dragon12 CD-ROM) Dragon12 LCD Display. The Dragon12 board has a 16 character x 2 line display
Dragon12 LCD Displays Hantronix_CLD.PDF data sheet (Dragon12 CD-ROM) o Using the Dragon12 LCD display Dragon12 LCD Display The Dragon12 board has a 16 character x 2 line display Each character is a 5x7
More informationVidyalankar T.E. Sem. V [ETRX] Microprocessors and Microcontrollers I Prelim Question Paper Solution
1. (a) 1. (b) T.E. Sem. V [ETRX] Microprocessors and Microcontrollers I Prelim Question Paper Solution Priority modes. 1) Fully Nested Mode : It is a general purpose mode. IR 0 highest priority IR 1 lowest
More informationMCS-51 Serial Port A T 8 9 C 5 2 1
MCS-51 Serial Port AT89C52 1 Introduction to Serial Communications Serial vs. Parallel transfer of data Simplex, Duplex and half-duplex modes Synchronous, Asynchronous UART Universal Asynchronous Receiver/Transmitter.
More informationChapter 8 Interfacing a JHD12864J Graphic Module to AT89S52
Chapter 8 Interfacing a JHD12864J Graphic Module to AT89S52 8.1 Introduction JHD12864J is a light weight, low power consumption liquid crystal graphic display. The module measures 54.0x50.0mm only. Supply
More informationEmbedded Robotics. Software Development & Education Center
Software Development & Education Center Embedded Robotics Robotics Development with 8051 µc INTRODUCTION TO ROBOTICS Types of robots Legged robots Mobile robots Autonomous robots Manual robots Robotic
More informationWIZTECH AUTOMATION SOLUTIONS (P) LTD., An ISO 9001:2000 and IAO certified company
WIZTECH AUTOMATION SOLUTIONS (P) LTD., An ISO 9001:2000 and IAO certified company #102, W Block, 2nd and 3rd floor, 2nd Avenue, Anna nagar Roundtana, Chennai-40 E-mail: wiztech4automation@gmail.com web:
More informationacret Ameya Centre for Robotics & Embedded Technology Syllabus for Diploma in Embedded Systems (Total Eight Modules-4 Months -320 Hrs.
acret Ameya Centre for Robotics & Embedded Technology Syllabus for Diploma in Embedded Systems (Total Eight Modules-4 Months -320 Hrs.) Module 0 Introduction Introduction to Embedded Systems, Real Time
More information17. I 2 C communication channel
17. I 2 C communication channel Sometimes sensors are distant to the microcontroller. In such case it might be impractical to send analog signal from the sensor to the ADC included in the microcontroller
More informationEMBEDDED Systems. Functions. MODULE- 1 C programming with data Structure Introduction to C. Array and String. Control Flow Statements In C
EMBEDDED Systems MODULE- 1 C with data Structure Introduction to C Objectives of C Applications of C Relational and logical operators Bit wise operators The assignment statement Intermixing of data types
More informationCOURSE NAME : ELECTRICAL ENGINEERING GROUP COURSE CODE : EE/EP SEMESTER : FIFTH SUBJECT TITLE : Microcontroller and Applications (Elective I for EP) SUBJECT CODE : Teaching and Examination Scheme: Teaching
More information8051 Training Kit Lab Book
8051 Training Kit Lab Book Date: 25 September 2009 Document Revision: 1.05 BiPOM Electronics 16301 Blue Ridge Road, Missouri City, Texas 77489 Telephone: (713) 283-9970 Fax: (281) 416-2806 E-mail: info@bipom.com
More informationTimers and interrupts
Timers and interrupts CSCI 255: Introduction to Embedded Systems Keith Vertanen Copyright 2011 Timers Overview Creating fixed pauses Calculate length of events Counts events Generate baud rate for serial
More informationARM HOW-TO GUIDE Interfacing Stepper Motor with LPC2148
ARM HOW-TO GUIDE Interfacing Stepper Motor with LPC2148 Contents at a Glance ARM7 LPC2148 Slicker Board... 3 Stepper Motor... 3 Interfacing Stepper Motor... 4 Interfacing Stepper Motor with LPC2148...
More information/*Algorithm: This code display a centrifuge with five variable speed RPM by increaseing */
/*Algorithm: This code display a centrifuge with five variable speed RPM by increaseing */ /*the speed the cell which are less dense can float and the cell that are denser can sink*/ /*the user has five
More informationEMBEDDED HARDWARE DESIGN. Tutorial Interfacing LCD with Microcontroller /I
EMBEDDED HARDWARE DESIGN Tutorial Interfacing LCD with Microcontroller 2009-10/I LCD (Liquid Crystal Display) has become very popular option for displaying in Embedded Applications. Since they are very
More information8051 Microcontroller
8051 Microcontroller The 8051, Motorola and PIC families are the 3 leading sellers in the microcontroller market. The 8051 microcontroller was originally developed by Intel in the late 1970 s. Today many
More informationMicrocontroller and Applications
S.Y. Diploma : Sem. IV [DE/EJ/ET/EN/EX/EQ/IS/IC/IE] Microcontroller and Applications Time: 3 Hrs.] Prelim Question Paper Solution [Marks : 70 Q.1 Attempt any FIVE of the following : [10] Q.1(a) Define
More informationUnit-I. 1. INTRODUCTION TO MICROCONTROLLERS. Micro controller, types, selection of a microcontroller and applications
Department of Technical Education DIPLOMA COURSE IN ELECTRONICS AND COMMUNICATION ENGINEERING Fourth Semester MICROCONTROLLERS AND APPLICATION Contact Hours/Week : 04 Contact Hours/Semester : 64 CONTENTS
More information2. (2 pts) If an external clock is used, which pin of the 8051 should it be connected to?
ECE3710 Exam 2. Name _ Spring 2013. 5 pages. 102 points, but scored out of 100. You may use any non-living resource to complete this exam. Any hint of cheating will result in a 0. Part 1 Short Answer 1.
More informationDragon12 LCD Displays Huang Sections 7.8 Hantronix_CLD.PDF data sheet (Dragon12 CD-ROM) ATD_10B8C Block User Guide. Dragon12 LCD Display
Dragon12 LCD Displays Huang Sections 7.8 Hantronix_CLD.PDF data sheet (Dragon12 CD-ROM) ATD_10B8C Block User Guide o Using the Dragon12 LCD display Dragon12 LCD Display The Dragon12 board has a 16 character
More informationMUFFAKHAM JAH COLLEGE OF ENGINEERING AND TECHNOLOGY (Affiliated to Osmania University) Banjara Hills, Hyderabad, Telangana State.
MUFFAKHAM JAH COLLEGE OF ENGINEERING AND TECHNOLOGY (Affiliated to Osmania University) Banjara Hills, Hyderabad, Telangana State. INFORMATION TECHNOLOGY DEPARTMENT EMBEDDED SYESTEM LAB MANUAL TABEL OF
More information8051 Microcontroller Interrupts
8051 Microcontroller Interrupts There are five interrupt sources for the 8051, which means that they can recognize 5 different events that can interrupt regular program execution. Each interrupt can be
More informationARM HOW-TO GUIDE Interfacing GLCD with LPC2148 ARM
ARM HOW-TO GUIDE Interfacing GLCD with LPC2148 ARM Contents at a Glance ARM7 LPC2148 Primer Board... 3 GLCD (Graphical Liquid Crystal Display)... 3 Interfacing GLCD... 4 Interfacing GLCD with LPC2148...
More informationMicrocontroller & Interfacing
Course Title Course Code Microcontroller & Interfacing EC406 Lecture : 3 Course Credit Practical : 1 Tutorial : 0 Total : 4 Course Objective At the end of the course the students will be able to Understand
More information80C51 Block Diagram. CSE Overview 1
80C51 Block Diagram CSE 477 8051 Overview 1 80C51 Memory CSE 477 8051 Overview 3 8051 Memory The data width is 8 bits Registers are 8 bits Addresses are 8 bits i.e. addresses for only 256 bytes! PC is
More informationProgram Modeling Concepts:
Program Modeling Concepts: Lesson-6: FSM STATE TABLE AND ITS APPLICATIONS 1 FSM State Table A state table can then be designed for representation of every state in its rows. The following six columns are
More informationARM HOW-TO GUIDE Interfacing GLCD with LPC2148 ARM
ARM HOW-TO GUIDE Interfacing GLCD with LPC2148 ARM Contents at a Glance ARM7 LPC2148 Evaluation Board... 3 GLCD (Graphical Liquid Crystal Display)... 3 Interfacing GLCD... 4 Description of GLCD... 5 Interfacing
More informationArduino Uno. Power & Interface. Arduino Part 1. Introductory Medical Device Prototyping. Digital I/O Pins. Reset Button. USB Interface.
Introductory Medical Device Prototyping Arduino Part 1, http://saliterman.umn.edu/ Department of Biomedical Engineering, University of Minnesota Arduino Uno Power & Interface Reset Button USB Interface
More informationLABORATORY MANUAL Interfacing LCD 16x2, Keypad 4x4 and 7Segment Display to PIC18F4580
LABORATORY MANUAL Interfacing LCD 16x2, Keypad 4x4 and 7Segment Display to PIC18F458 1. OBJECTIVES: 1.1 To learn how to interface LCD 16x2, Keypad 4x4 and 7Segment Display to the microcontroller. 1.2 To
More informationEmbedded Systems. Embedded Programmer. Duration: 2 weeks Rs Language and Tools. Embedded System Introduction. Embedded C programming
Embedded Systems Embedded Programmer Duration: 2 weeks Rs.7000 Embedded System Introduction ü PLDs ü Microprocessors ü Signal processing and Data processing ü Micro controllers ü 8051 Microcontroller ü
More informationThe industrial technology is rapidly moving towards ARM based solutions. Keeping this in mind, we are providing a Embedded ARM Training Suite.
EMBEDDED ARM TRAINING SUITE ARM SUITE INCLUDES ARM 7 TRAINER KIT COMPILER AND DEBUGGER THROUGH JTAG INTERFACE PROJECT DEVELOPMENT SOLUTION FOR ARM 7 e-linux LAB FOR ARM 9 TRAINING PROGRAM INTRODUCTION
More informationAppendix A: Rack Specification Sheet
Appendices Appendix A: Rack Specification Sheet A-1 Appendix B: Pinion Specification Sheet B-1 Appendix C: Specification Sheets for Motors One and Two Motor One Specification Sheet C-1 C-2 Motor Two Specification
More informationRobosoft Systems in association with JNCE presents. Swarm Robotics
Robosoft Systems in association with JNCE presents Swarm Robotics What is a Robot Wall-E Asimo ABB Superior Moti ABB FlexPicker What is Swarm Robotics RoboCup ~ 07 Lets Prepare for the Robotics Age The
More information8051 Serial Communication
8051 Serial Communication Basics of serial communication Parallel: transfers eight bits of data simultaneously over eight data lines expensive - short distance fast Serial : one bit at a time is transferred
More informationPGT302 Embedded Software Technology. PGT302 Embedded Software Technology
PGT302 Embedded Software Technology 1 PART 4 Hardware Platform 2 2 Objectives for Part 4 Need to DISCUSS and ANALYZE the following topics: Board (GTUC51B001) specifications startup sequence, bootloader
More informationLCDs. Embedded Systems Interfacing. 20 September 2011
20 September 2011 How Polarizers Work How work How Color Work Other Technologies Reflective Nematic (no back light) Cholesteric Liquid Crystal Organic LED/Polymer LED Vacuum Florescent Display Display
More information