0% found this document useful (0 votes)
29 views3 pages

Esseries1 24-25 With Scheme

Earnest money security deposit hhvc

Uploaded by

anamayank111
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
29 views3 pages

Esseries1 24-25 With Scheme

Earnest money security deposit hhvc

Uploaded by

anamayank111
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

GPC MATTANUR, ELECTRONICS ENGINEERING DEPARTMENT

EMBEDDED SYSTEMS (5041)


Semester-5(24-25) Series exam -1 Time:45 minutes Maximum mark: 20
PART A
I. Answer all questions in one word or sentence. (4 x 1 = 4 marks)
1 List any four data types used in Embedded C programming. M 2.05 R
2 M 2.04 R
Name any two timer registers in Atmega32.
3 Atmega 32 has ............... bytes of SRAM. M 2.03 R
4 Register to indicate arithmetic conditions such as the carry bit are called………… M 2.03 R
PART B
II. Answer any 3 questions. (3 x 3 = 9 marks)
5 Write an AVR embedded C program to toggle LEDs connected to PORT C. M 2.06 A
6 Describe any three criteria to choose a microcontroller in embedded system. M 2.01 U
7 List any six features of AtMega 32 microcontroller. M 2.03 R
8 Explain hardware interrupt features in AVR M 2.07 U
PART C
III. Answer one full question (1 x 7 = 7)
9 Describe about Atmega32 with the help of a simplified block M 2.02 U
diagram
10 Write an Embedded C program to convert given BCD number to ASCII number. M 2.05 A

GPC MATTANUR, ELECTRONICS ENGINEERING DEPARTMENT


EMBEDDED SYSTEMS (5041)
Semester-5(24-25) Series exam -1 Time:45 minutes Maximum mark: 20
PART A
I. Answer all questions in one word or sentence. (4 x 1 = 4 marks)
1 List any four data types used in Embedded C programming. M 2.05 R
2 M 2.04 R
Name any two timer registers in Atmega32.
3 Atmega 32 has ............... bytes of SRAM. M 2.03 R
4 Register to indicate arithmetic conditions such as the carry bit are called………… M 2.03 R
PART B
II. Answer any 3 questions. (3 x 3 = 9 marks)
5 Write an AVR embedded C program to toggle LEDs connected to PORT C. M 2.06 A
6 Describe any three criteria to choose a microcontroller in embedded system. M 2.01 U
7 List any six features of AtMega 32 microcontroller. M 2.03 R
8 Explain hardware interrupt features in AVR M 2.07 U
PART C
III. Answer one full question (1 x 7 = 7)
9 Describe about Atmega32 with the help of a simplified block M 2.02 U
diagram
10 Write an Embedded C program to convert given BCD number to ASCII number. M 2.05 A
Scoring Indicators

EMBEDDED SYSTEMS

Q No Scoring Indicators Split Sub Total score


score Total

PART A 4

I. 1 Unsigned char, char, unsigned int, int, float, double (any two) 1

I. 2 TCNT0, TCCR0, OCR0 1

I. 3 2K, 2048 bytes 1

I. 4 Status register 1

PART B
4

II. 5 #include <avr/io.h> 3 3

int main(void)
{
DDRC = 0xFF; // initialize port as o/p
while(1)
{
// LED on
PORTC = 0xFF; // PC = High = Vcc
//LED off
PORTC = 0x00; // PC = Low = 0v
}
}

II. 6 1.Computing needs 3*1 3


Most important criteria in choosing a microcontroller in an embedded
application is that, it should meet the computing need of the task efficiently
and cost effectively. It include features like:
Computing Speed
The microcontroller must complete the assigned task as per the requirement
of the problem statement. It also depends on the right bit size of the
microcontroller i.e. 8-bit, 16-bit, or 32-bit required as per the needs of the
application or task.
Power Consumption
This is very important for those embedded systems where the system runs on
battery powered not by on directly wired electricity.
Memory
The amount of code memory (ROM) and data memory (RAM) required on
the chip.
Input/Output Ports
How many input and output devices are required. Input-output ports can vary
from 2,3,4,6 and so on. It totally depends on the application which needs to
implement.
Any 3

II. 7 32K bytes of In-System Programmable Flash Program memory with Read- 6*.5 3
While-Write capabilities
1024 bytes EEPROM
2K byte SRAM
32 general purpose I/O lines
On-chip Debugging support and programming
Two 8-bit Timer/Counters with Separate Prescalers and Compare Modes
One 16-bit Timer/Counter with Separate Prescaler, Compare Mode, and
Capture Mode
Real Time Counter with Separate Oscillator
Four PWM Channels
8-channel, 10-bit ADC

Any 6

II. 8 External interrupts are triggered via external pins. 3 3


• The RESET interrupt - Triggered from pin 9.
• External Interrupt 0 (INT0) - Triggered from pin 16.
• External Interrupt 1 (INT1) - Triggered from pin 17.
• External Interrupt 2 (INT2) - Triggered from pin 3
The ATMega32 RESET interrupt is triggered when a low voltage
(approximately 0V) is applied to reset pin. So the reset pin should be kept at
or near the Vcc voltage for normal operation.
INT0,INT1 are level and edge triggered, while INT2 is edge triggered only,
can be programmed by registers
These registers stores the interrupt flags, the interrupt enable bits, and control
information for each of the external interrupts.
• General Interrupt Flag Register (GIFR)
• General Interrupt Control Register (GICR)
• MCU Control Register (MCUCR)
• MCU Control and Status Register (MCUCSR)

PART C 7

III. 9 3 7 7

PC,ALU,SP,Flags, registers, sram, eeprom, rom

III. 10 Program to convert a packed BCD data byte to ASCII and display the 7 7 7
bytes on port b and port c

#include <avr/io.h>
int main(void)
{
unsigned char x, y;
unsigned char mybyte = 0x29; //data
DDRB = DDRC = 0xFF; // o/p ports
x = mybyte& 0x0F;
PORTB = x | 0x30;
y = mybyte& 0xF0; //upper digit
y = y >> 4;
PORTC = y | 0x30; // lower byte
return 0;
}

You might also like