{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

# HW3 - 4 In the following circuit explain how the portion in...

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

Ve373 Design of Microprocessor Based System Homework 3 Assigned: April 28, 2011 Due: May 5, 2011, at 10:00 am. The homework should be submitted electronically to SAKAI. Submission should include a word document as well as all the source codes. 1. In following diagram, explain how ODC register works. (10 points) 2. What are the virtual addresses for PORTDCLR, PORTDSET, and PORTDINV? Design a logic circuit that implements the functionality of PORTDCLR, PORTDSET, and PORTDINV. Hint: the circuit should have PROTDCLR, PORTDSET, PORTDINV, and PORTD as source registers, and PORTD as destination register. (20 points) 3. Write a snippet of C code to generate 10 msec delay using a 16-bit timer and a 32-bit timer separately. Assume that SYSCLK = 8 MHz. (20 points)

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

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 4. In the following circuit, explain how the portion in the blue dashed line works. (20 points) 1 5. For a PIC32 MCU with following setup: SYSCLK = 20 MHz, PBDIV = 0b10, T2CON = 0, TCS = 0, TCKPS = 0b010, TMR2 = 0, PR2 = 0x00FF; How much time does it take for TMR2 to match with PR2? When TMR2 matches PR2, how much time does it take for TMR2 to be reset to 0? (20 points) 6. Write a snippet of C code to measure the length of high-level of a signal coming in from T4CK with a 16-bit timer, assuming the length is longer than the time a 16-bit timer can count even with the biggest prescale. Assume PBCLK = 1 MHz, the resolution of measurement should be less than 10 us. (20 points) 2...
View Full Document

{[ snackBarMessage ]}

### Page1 / 2

HW3 - 4 In the following circuit explain how the portion in...

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

View Full Document
Ask a homework question - tutors are online