Question: 2) Given a PIC24H processor with Fosc=8MHz. (a) What is the value of T2CON and PR2 (in decimal) in order to generate an end
2) Given a PIC24H processor with Fosc=8MHz. (a) What is the value of T2CON and PR2 (in decimal) in order to generate an end of period flag (T2IF) every 0.2 second? (b) Assume RB0..RB3 are connected to 4 LEDs. (c) Write C statements to initialize the selected ports as outputs. (d) Write a code to use T2IF to generate a 4-bit LED binary counter. The counter increments every 0.2 seconds.
Step by Step Solution
3.45 Rating (152 Votes )
There are 3 Steps involved in it
Heres a breakdown of the problem and the code solutions for each part Problem Given PIC24H processor Fosc 8 MHz RB0RB3 connected to 4 LEDs Goal Genera... View full answer
Get step-by-step solutions from verified subject matter experts
