This preview shows page 1. Sign up to view the full content.
Unformatted text preview: n seconds delay. Where n is an integer parameter. Hint: you may use regular loop statements or you may use inline assembly instruction in your C code by function asm() , e.g. asm(“NOP”) ;. (30 points) 3. Show how __PORTDbits_t is defined in the header file for PIC32MX795F512L MCU. What’s the relationship between __PORTDbits_t and PORTDbits? (10 points) 4. Write a C program to turn on port 0 of PORTD for 2 seconds and turn it off for 1 second, then repeat. Use the virtual Logic Analyzer to measure the accuracy of your program. (30 points)...
View Full Document
This document was uploaded on 06/24/2011.
- Spring '09