This preview has intentionally blurred sections. Sign up to view the full version.View Full 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
- Spring '09
- Microprocessor, 16-bit Timer, Blue dashed line, PORTDINV