THEORY EXAMINATION (SEM–VI) 2016-17 MICROCONTROLLERS FOR EMBEDDED SYSTEMS

B.Tech Engineering 0 downloads
₹29.00

MICROCONTROLLERS FOR EMBEDDED SYSTEMS (NEC022R)


SECTION – A

(Attempt All | 10 × 2 = 20 Marks)

 

(a) MOVX and MOVC instructions in 8051

MOVX: Used to transfer data between accumulator and external data memory (RAM).

MOVC: Used to read data from code (program) memory, typically for lookup tables.

 

(b) Bit addressable RAM in 8051

8051 has 16 bytes (20H–2FH) of RAM that is bit-addressable. Each bit can be accessed individually, making it efficient for flags and control bits.

 

(c) Pull-up / Pull-down resistor in MSP430

Pull-up resistor: Connects input to logic HIGH when switch is open.

Pull-down resistor: Connects input to logic LOW when switch is open.
In MSP430, these are enabled internally using GPIO registers.

 

(d) Comparison of 8051 and MSP430x5xxx

Feature8051MSP430x5xxx
ArchitectureCISCRISC
Power consumptionHigherUltra-low
Word length8-bit16-bit
Clock speedModerateHigher & flexible
ApplicationsGeneral embeddedLow-power embedded

(e) Transfer modes in DMA controller of MSP430        Single transfer mode

Block transfer mode                                                     Burst block mode

Repeated single transfer mode                                    Repeated block transfer mode

 

(f) Data acquisition

Data acquisition is the process of collecting real-world analog signals, converting them into digital form using ADC, and processing them using a microcontroller.

 

(g) Any four GPIO registers                                         PxDIR – Direction register

PxIN – Input register                                                   PxOUT – Output register

PxREN – Resistor enable register

 

(h) WDTPW and WDTNMI

WDTPW: Watchdog Timer Password used to enable/disable WDT.

WDTNMI: Configures WDT pin as Non-Maskable Interrupt input.

 

(i) Serial communication interfaces in MSP430         UART / USART

SPI                                                                              I2C

USCI_Ax and USCI_Bx modules

 

(j) Features of ADC10 in MSP430                              10-bit resolution

Multiple input channels                                             Low power consumption

Internal reference voltage                                          Sample-and-hold circuit


 SECTION – B

(Attempt Any Five | 5 × 10 = 50 Marks)

 

(a) Memory-mapped vs I/O-mapped peripherals

Memory-mapped peripherals:                              Share same address space as memory

Accessed using normal load/store instructions

I/O-mapped peripherals:                                       Separate address space

Accessed using special I/O instructions

MSP430 uses memory-mapped peripherals.

 

(b) Addressing modes in 8051

Immediate                                                                 Direct

Register                                                                     Register indirect

Indexed                                                                     Relative

These modes provide flexibility in data access.

 

(c) RTC (Real Time Clock) – block diagram & applications

Blocks:                                                                    Oscillator

Counter                                                                    Control registers

Battery backup

Modes:                                                               Clock mode

Calendar mode                                                   Alarm mode

Applications: Digital clocks, data logging, embedded systems.

 

(d) PWM – working & block diagram

PWM varies duty cycle of a digital signal to control power.

Working:                                                           Timer counts

Compare register sets ON/OFF time                  Duty cycle controls output power

Applications: Motor speed control, LED dimming.

 

(e) MSP430 program: Toggle LEDs using switch

Logic:                                                                  P1.5 & P1.7 as outputs

P1.2 as input with pull-down                               On switch press → toggle LEDs

(Program written in exam with register-level instructions.)

 

(f) LED intensity control using PWM                     PWM signal is applied to LED pin.
Increasing duty cycle → more ON time → higher brightness.

 

(g) Flow chart for receiving single byte via USCI_Bx (I2C)

Steps:                                                                   Configure USCI_Bx

Set slave address = 32H                                      Enable receive mode

Start condition                                                     Receive byte

Stop condition

 

(h) ZigBee wireless module

ZigBee is a low-power, short-range wireless communication protocol.

Block diagram:                                                 RF transceiver

Microcontroller                                                  Memory

Power unit                                                          Used in IoT, home automation, sensor networks.

 

SECTION – C

(Attempt Any Two | 2 × 15 = 30 Marks)

 

(i) 8051 Assembly code to display string on LCD

Steps:                                                                  Initialize LCD

Send command bytes                                         Send ASCII data bytes

Use delay routine                                       (Complete program written in exam-oriented assembly format.)

 

(ii) Maskable interrupt in MSP430

Maskable interrupts can be enabled or disabled by software.

Working:                                                  Interrupt request generated

CPU checks enable bit                               ISR executed

Return using RETI                                      Used for timers, serial communication, GPIO.

 

(i) I2C data frame format

Frame includes:                                         Start bit

7-bit slave address                                    R/W bit

ACK/NACK                                                 Data byte

Stop bit                                                      Ensures reliable serial communication.

 

(ii) GPIO resistors in MSP430x5xx             Pull-up resistor: Input defaults to HIGH

Pull-down resistor: Input defaults to LOW

Enabled using PxREN and PxOUT registers.

 

(i) Near Field Communication (NFC)

NFC is a short-range wireless technology operating at 13.56 MHz.

Modes:

Reader/Writer mode                                 Peer-to-Peer mode

Card emulation mode                               Used in payments, access cards, smartphones.

 

(ii) DMA transfer modes                            Single transfer

Block transfer                                             Burst transfer

Repeated transfer modes                          DMA improves performance by reducing CPU load.

File Size
51.4 KB
Uploader
SuGanta International
⭐ Elite Educators Network

Meet Our Exceptional Teachers

Discover passionate educators who inspire, motivate, and transform learning experiences with their expertise and dedication

KISHAN KUMAR DUBEY

KISHAN KUMAR DUBEY

Sant Ravidas Nagar Bhadohi, Uttar Pradesh , Babusarai Market , 221314
5 Years
Years
₹10000+
Monthly
₹201-300
Per Hour

This is Kishan Kumar Dubey. I have done my schooling from CBSE, graduation from CSJMU, post graduati...

Swethavyas bakka

Swethavyas bakka

Hyderabad, Telangana , 500044
10 Years
Years
₹10000+
Monthly
₹501-600
Per Hour

I have 10+ years of experience in teaching maths physics and chemistry for 10th 11th 12th and interm...

Vijaya Lakshmi

Vijaya Lakshmi

Hyderabad, Telangana , New Nallakunta , 500044
30+ Years
Years
₹9001-10000
Monthly
₹501-600
Per Hour

I am an experienced teacher ,worked with many reputed institutions Mount Carmel Convent , Chandrapu...

Shifna sherin F

Shifna sherin F

Gudalur, Tamilnadu , Gudalur , 643212
5 Years
Years
₹6001-7000
Monthly
₹401-500
Per Hour

Hi, I’m Shifna Sherin! I believe that every student has the potential to excel in Math with the righ...

Divyank Gautam

Divyank Gautam

Pune, Maharashtra , Kothrud , 411052
3 Years
Years
Not Specified
Monthly
Not Specified
Per Hour

An IIT graduate having 8 years of experience teaching Maths. Passionate to understand student proble...

Explore Tutors In Your Location

Discover expert tutors in popular areas across India

Spoken English Classes Near By CR Park Improve Fluency, Boost Confidence & Unlock Better Opportunities in 2026 Chittaranjan Park, Delhi
Study Abroad Consultation Classes Near Dwarka Mor Complete Guidance for International Education Dwarka Mor, Delhi
IELTS Coaching Near Noida Sector 105 – Complete Guide for Students Preparing for Study Abroad Noida
Meditation Coaching Near Sohna Road – Discover Peace, Focus, and Mental Balance Sohna Road, Gurugram
Social Science Classess Dwarka Mor, Delhi
Diet & Nutrition Consultation Near Sector 127 Noida – A Complete Guide to Healthy Living Noida
Prenatal Yoga Training Near Uppal Southend, Gurugram – A Calm & Healthy Pregnancy Journey Uppal Southend, Gurugram
Spoken English Classes Near By Moti Nagar Improve Fluency, Build Confidence & Unlock Better Career Opportunities in 2026 Motinagar, Delhi
Guitar Classes Near South Extension – Professional Guitar Training in South Delhi South Extension, Delhi
Guitar Classes Near Sarita Vihar – Learn Guitar from Expert Trainers in South Delhi Sarita Vihar, Delhi
Photography Basics Classes Near By Dwarka Mor – Learn the Art Behind the Lens Dwarka Mor, Delhi
Vedic Maths Classes Near Sector 99A Dwarka Expressway, Gurugram – Boost Speed, Accuracy & Mental Calculation Skills Sector 99A, Gurugram
Guitar Classes Near Central Noida Sector 5 – Learn Guitar with Professional Trainers B Block Sector 5, Noida
🇯🇵 Japanese Language Classes Near Sector 54 Gurugram – Learn Japanese with Expert Guidance Gurugram
Maths Coaching Near By Dwarka Mor – Build Strong Concepts & Score Higher Dwarka Mor, Delhi
Diet & Nutrition Consultation Near Sector 125 Noida – Your Complete Guide to Healthy Living Sector 125, Noida
Yoga Classes Near Sector 105 Gurugram (Dwarka Expressway) – Transform Your Body & Mind Naturally Gurugram
Painting Classes Near Sector 67A Gurugram – Explore Creativity & Master Artistic Expression Sector 67A, Gurugram
Prenatal Yoga Training Near Sector 123 Noida – A Complete Guide for Healthy Pregnancy Noida
Spanish Language Classes Near Sector 43 Gurugram – Learn Spanish with Expert Trainers Sector 43, Gurugram
⭐ Premium Institute Network

Discover Elite Educational Institutes

Connect with top-tier educational institutions offering world-class learning experiences, expert faculty, and innovative teaching methodologies

Réussi Academy of languages

sugandha mishra

Réussi Academy of languages
Madhya pradesh, Indore, G...

Details

Coaching Center
Private
Est. 2021-Present

Sugandha Mishra is the Founder Director of Réussi Academy of Languages, a premie...

IGS Institute

Pranav Shivhare

IGS Institute
Uttar Pradesh, Noida, Sec...

Details

Coaching Center
Private
Est. 2011-2020

Institute For Government Services

Krishna home tutor

Krishna Home tutor

Krishna home tutor
New Delhi, New Delhi, 110...

Details

School
Private
Est. 2001-2010

Krishna home tutor provide tutors for all subjects & classes since 2001

Edustunt Tuition Centre

Lakhwinder Singh

Edustunt Tuition Centre
Punjab, Hoshiarpur, 14453...

Details

Coaching Center
Private
Est. 2021-Present
Great success tuition & tutor

Ginni Sahdev

Great success tuition & tutor
Delhi, Delhi, Raja park,...

Details

Coaching Center
Private
Est. 2011-2020