

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
An excerpt from an embedded systems exam, including problem statements and instructions for filling out a table and writing subroutines. The problems involve interrupt handling, initialization of a real time interrupt, and configuring pwm channels.
Typology: Exams
1 / 3
This page cannot be seen from the preview
Don't miss anything!


Student Name:_______________________________ Student ID: _______________ Problem 1 A section of the main program is running shown below and is in the middle of executing the inx instruction when a RTI periodic interrupt occurs.shown in below as well and is a contrived example. Fill out the table describing The ISR is register and memory values at different points throughout the sequence
rti_isr: ldy A, X inca iny
ldy A, X styrti A, X
Table 1
Location Prior to INCA Just after INX Just after RTI Just after LDY reg A $0F reg B $ reg D reg X $1FF reg Y $ Mem $2000 $ Mem $2001 $ Mem $2002 $ Mem $2003 $
Student Name:______________________________ Student ID: _______________ Problem 2 (30 pts) Write an initialization subroutine for the Real Time Interrupt so that it will interrupt approximately every 4 uS.find the address in the register section of your class notes.). (Hint: RTR values are below and you can
Show calculations for any credit. Use actual addresses for registers.