EEE 5th Semester - Embedded C Programming - EE3017 - Important Questions with Answer - Unit 2 - Embedded C
EEE 5th Semester - Embedded C Programming - EE3017 - Important Questions with Answer - Unit 2 - Embedded C
4th Semester
3rd Semester
- MA3151 MA3251
1st Semester
2nd Semester
Power System
Operation and Control
Control Systems - - EE3602 Open Elective 2
EE3503 Project Work /
Open Elective-1
Open Elective 3 Intership
Elective 1 Elective-4
Open Elective 4
Elective 2 Elective-5
Elective 7
Elective 3 Elective-6
Management Elective
All EEE Engg Subjects - [ B.E., M.E., ] (Click on Subjects to enter)
Circuit Theory Digital Logic Circuits Electromagnetic Theory
Environmental Science and Linear Integrated Circuits Discrete Time Systems and
Engineering and Applications Signal Processing
Electronic Devices and Electrical Machines I Electrical Machines II
Circuits
Power Plant Engineering Special Electrical Machines Transmission and Distribution
Power System Analysis Control Systems Power Electronics
Power System Operation Measurements and Design of Electrical Machines
and Control Instrumentation
Communication Engineering Solid State Drives Embedded Systems
Power Quality High Voltage Engineering Protection and Switchgear
Flexible AC Transmission Microprocessors and Electric Energy Generation,
Systems Microcontrollers Utilization and Conservation
Professional Ethics in Physics for Electronics Basic Civil and Mechanical
Engineering Engineering Engineering
Transforms and Partial Environmental Science and Problem Solving and Python
Differential Equations Engineering Programming
Engineering Physics Engineering Chemistry Numerical Methods
Engineering Graphics Technical English Object Oriented Programming
Principles of Management Total Quality Management
Page 1 of 4
www.BrainKart.com
https://play.google.com/store/apps/details?id=info.therithal.brainkart.annauniversitynotes
Page 2 of 4
www.BrainKart.com
4931_Grace College of Engineering,Thoothukudi
E
2. What are the calculations of hardware delays?
We calculate the required starting value for the timer.
We load this value into the timer.
CO
We start the timer.
The timer will be incremented, without software intervention, at a rate deter-
CE
mined by the oscillator frequency; we wait for the timer to reach its maximum
value and ‘roll over’.
The timer signals the end of the delay by changing the value of a flag variable.
RA
EE3017_ECP
https://play.google.com/store/apps/details?id=info.therithal.brainkart.annauniversitynotes
Page 3 of 4
www.BrainKart.com
4931_Grace College of Engineering,Thoothukudi
incremented at a 1 MHz rate. A 15 ms delay therefore requires the following number of timer
increments:
15ms
---------------- × 1000000 = 15000 increments.
1000ms
The timer overflows when it is incremented from its maximum count of 65535.
Thus, the initial value we need to load to produce a 15ms delay is:
65536 – 15000 = 50536 (decimal) = 0xC568
6.Why Timer 2 is not used?
Timer 2 can be used to generate delays . However, this is not an inappropriate use for this
resource (in most applications). This is because Timer 2 has features which make it
particularly well suited to the creation of an operating system, and most ‘real’ applications
E
will reserve Timer 2 for this purpose.
CO
7. Write a c program to generate delay using timer?
void DELAY_HARDWARE_50ms(void)
{
// Configure Timer 0 as a 16-bit timer
CE
ET0 = 0; // No interupts
// Values for 50 ms delay
TH0 = 0x3C; // Timer 0 initial value (High Byte)
G
}
8. Write few example for languages & Machine Code used?
First-Generation Language (1GL) Assembly Language.
Second-Generation Languages (2GLs) COBOL, FORTRAN
EE3017_ECP
https://play.google.com/store/apps/details?id=info.therithal.brainkart.annauniversitynotes
Page 4 of 4
www.BrainKart.com
4931_Grace College of Engineering,Thoothukudi
E
Part B & C
1.
2.
3.
Explain Creating loop timeouts. CO
Explain Timer 0&Timer 1 in details along with TCON and TMOD registers.
How can we create portable hardware delay?
4. Write about Project Header with neat diagram.
5. Write in detail about port header?
CE
RA
G
EE3017_ECP
https://play.google.com/store/apps/details?id=info.therithal.brainkart.annauniversitynotes
Click on Subject/Paper under Semester to enter.
Probability and Environmental Sciences
Professional English complex function - and Sustainability -
Professional English - - II - HS3252 MA3303 GE3451
I - HS3152
Statistics and Electromagnetic Transmission and
Matrices and Calculus Numerical Methods - Theory - EE3301 Distribution - EE3401
4th Semester
3rd Semester
- MA3151 MA3251
1st Semester
2nd Semester
Power System
Operation and Control
Control Systems - - EE3602 Open Elective 2
EE3503 Project Work /
Open Elective-1
Open Elective 3 Intership
Elective 1 Elective-4
Open Elective 4
Elective 2 Elective-5
Elective 7
Elective 3 Elective-6
Management Elective
All EEE Engg Subjects - [ B.E., M.E., ] (Click on Subjects to enter)
Circuit Theory Digital Logic Circuits Electromagnetic Theory
Environmental Science and Linear Integrated Circuits Discrete Time Systems and
Engineering and Applications Signal Processing
Electronic Devices and Electrical Machines I Electrical Machines II
Circuits
Power Plant Engineering Special Electrical Machines Transmission and Distribution
Power System Analysis Control Systems Power Electronics
Power System Operation Measurements and Design of Electrical Machines
and Control Instrumentation
Communication Engineering Solid State Drives Embedded Systems
Power Quality High Voltage Engineering Protection and Switchgear
Flexible AC Transmission Microprocessors and Electric Energy Generation,
Systems Microcontrollers Utilization and Conservation
Professional Ethics in Physics for Electronics Basic Civil and Mechanical
Engineering Engineering Engineering
Transforms and Partial Environmental Science and Problem Solving and Python
Differential Equations Engineering Programming
Engineering Physics Engineering Chemistry Numerical Methods
Engineering Graphics Technical English Object Oriented Programming
Principles of Management Total Quality Management