BEC41103 Advanced Microcontroller

INDIVIDUAL ASSIGNMENT #1

Answer all of the following questions

1. 2. 3. 4. 5. 6. 7. 8.

Why program the PIC18 in C? Explain the advantages and disadvantages of assembler and compilers. Write a C program to send values 00-FF to PORT C. Write a C program to send hex values for ASCII characters of 1,2,3,4,5,6,7,8,9 to PORT A. Write a C program to toggle all the bits of PORT A continuously. Write a C program to toggle all the bits of PORT A 70,000 times. Write a C program to toggle all the bits of PORT A and PORT B continuously with a 250ms delay . Write a C program to turns on the LED. In this project 8 LEDs are connected to PORTB of a PIC18 and operate at 4MHz. The program turn on LED with 1s delay between each output.

*Please submit your individual assignment on February 24, 2014 in Advanced Microcontroller class.

BEC41103/Sem II, 1314

Sign up to vote on this title
UsefulNot useful

Master Your Semester with Scribd & The New York Times

Special offer for students: Only $4.99/month.

Master Your Semester with a Special Offer from Scribd & The New York Times

Cancel anytime.