{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Fall2010_quiz2_solution

# Fall2010_quiz2_solution - BILKENT UNIVERSITY Department of...

This preview shows pages 1–3. Sign up to view the full content.

BILKENT UNIVERSITY Department of Electrical and Electronics Engineering EEE212 Microprocessors QUIZ 2 11-11-2010 Fall Semester Section 1 Open book, closed notes. Use the boxes provided for your answers. Show all your calculations! Duration: 40 minutes Question 1 (30 points) Question 2 (30 points) Question 3 (40 points) TOTAL SOLUTION

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
1) [30 pts] a) Assume that you want to generate a delay of 0.5 milliseconds using Timer1, and the crystal oscillator frequency XTAL is 6 MHz . To generate the delay with a single roll-over of the timer (i.e., single raise of the TF1 flag), what should be the configuration value of the TMOD register and which initial value should be loaded to TH1 and TL1 registers? (If you need to convert a number larger than 255 to hexadecimal representation, instead of making the calculations you can use phrases like ‘high/low byte of …. (decimal number) in hexadecimals’ ). TMOD: 20 H TL1: 6 H TH1: 6 H 1 increment of the timer takes 1/(XTAL/12)=2 μ s. 0.5 ms=500 μ s, so the timer should be incremented 250 times. Timer Mode 2 will be used with TH1=TL1=-250 = 6 H
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### Page1 / 4

Fall2010_quiz2_solution - BILKENT UNIVERSITY Department of...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online