Embedded Systems Exam 2 - Spring 2007 - MacDonald, Exams of Microprocessors

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

Pre 2010

Uploaded on 08/19/2009

koofers-user-n0f
koofers-user-n0f ๐Ÿ‡บ๐Ÿ‡ธ

10 documents

1 / 3

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
EE3376 โ€“ Embedded Systems - Spring 2007 - Exam 2 โ€“ MacDonald โ€“ Page 1
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?
pf3

Partial preview of the text

Download Embedded Systems Exam 2 - Spring 2007 - MacDonald and more Exams Microprocessors in PDF only on Docsity!

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:

  1. enable the TOV interrupt as a periodic interrupt with a period between 5 and 10 milliseconds,
  2. enable the SCI for transmission at 19600 baud rate. Do not enable reception. No other requirements.

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.