

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Exam questions related to embedded systems, specifically covering topics such as port a as gpio, initialization of serial port based lcd, and initialization of pwm peripheral.
Typology: Exams
1 / 3
This page cannot be seen from the preview
Don't miss anything!


Student Name:______________________________ Student ID: _______________
Show work with intermediate steps. Showing only the answer will get no credit. Problem 1
The following questions are related to Port A as GPIO.
a) If address $0002 contains $00 and all of the Port A pins have a 100k ohm resistor to Vdd (5V) and 4k ohm resistor to ground, what value would you find in address $0000?
b) Assuming the same conditions in part A, what would be the value of address $0000 after the instruction โ movb #$ff, $0000 โ was executed?
c) If address $0002 is $ff and every pin has a 100k ohm resistor to Vdd (5V), what would be the value of address $0000 after the instruction โ movb #$00, $0000 โ was executed?
d) If address $0002 is $55 and every pin has a 100k ohm resistor to Vdd (5V), what would be the value of address $0000 after the instruction โ movb #$00, $0000 โ was executed?
Student Name:______________________________ Student ID: _______________
Problem 2 In Jamecoโs parts catalog there exist several serial port based LCDs. If you send a ascii character as a byte through the tx pin of the SCI port, it will be displayed on the LCD.
Write an initialization subroutine that will:
Assume that a TOV interrupt service routine exists that will transmit the appropriate ascii characters through the SCI. You just need to initialize the SCI and TOV for later use given the requirements above.