Question: 3) Use timerl to generate a 2-KHz square wave on pin RB4 (Fosc=4-Mhz, TMRIF is in PIR 1 register) (13 points) B7 B6 B5 B4

3) Use timerl to generate a 2-KHz square wave on pin RB4 (Fosc=4-Mhz, TMRIF is in PIR 1 register) (13 points) B7 B6 B5 B4 B3 B2 B1 BO RD16 TICKPS1 TICKPSO TIOSCEN TISYNC TMRICS TMR10N Timer1 Oscillator 1 = Enables Timer 1 in 16-bit Operation 0 = Enables Timer 1 in two 8-bit Operations Prescaler Select Bits 1 11 = 1:8 10 = 1:4 01 = 1:2 00=1:1 1 = Enables Timer 0 = Disables Timer 1 = Enabled 0 = Disabled 1 = External Clock RCO/T13CK1 (Rising Edge) 0 = Internal Clock 1 = No chronization of External Clock Input 0 = Synchronization of External Clock Input
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
