Question

# QUESTION (1) Assuming your mierocontroller is running on a 4MHZ elock define the parameters to be...

QUESTION (1)
Assuming your mierocontroller is running on a 4MHZ elock define the parameters to be programmed in so TMR1 will generate an overflow every 0.282254 second.

1-
Prescaler Ratio=1; Timer Start Value= A4F0(16)

2.
Prescaler Ratio=4; Timer Start Value= 698C(16)

3.
Prescaler Ratio=8; Timer Start Value= 762D(16)

4.
Prescaler Ratio=16; Timer Start Value= 1849(16)

5.
Prescaler Ratio=2; Timer Start Value=A67B(16)

6.
Prescaler Ratio=8; Timer Start Value= C128(16)

7.
Prescaler Ratio=16; Timer Start Value= DBF0(16)

8.
Prescaler Ratio=1; Timer Start Value= 95DC(16)

QUESTION (2)
For a microcontroller running on a 8 MHz clock assume that on CCP1 pin (in/out pin attached to CCP module 1 that uses TMR1) a signal with frequency fx,is applied. Assuming that the content of TMRI is 100(10) at the beginning of the cycle, TMRI prescoler ratio is 1, CCP1 pre scaler ratio is 4 and the content of TMR1 is 5200(10) after one cycle, determine the unknown input signal’s frequency

1- fx = 691 Hz
2- fx = 823 Hz
3- fx = 939 Hz
4- fx = 1173 Hz
5- fx = 1396 Hz
6- fx = 1568 Hz
7- fx = 1994 Hz
8- fx = 2395 Hz

QUESTION(3)
For a microcontroller running on a 4 MHz clock assume that CCP1 pin (in/out pin attached to CCP module 1 that uses TMR1) is connected to TOCKI pin (external event input for TMRO). Considering that our output is TMRO overflow eventldefine the parameters to be programmed in so TMRO will generate an overflow every 100 seconds.

1. TMRI Prescaler Ratio-2: CCP1 Content-2A3C16) TMRO Prescaler Ratio-1, TMRO Content-FS(16)

2. TMR1 Prescaler Ratio-2: CCP1 Content-57B0(16): TMRO Prescaler Ratio-2. TMRO Content-87(16)

3. TMR1 Prescaler Ratio-4: CCP1 Content-FAE4(16y TMRO Prescaler Ratio-4, TMRO Content-3E(16)

4. TMR1 Prescaler Ratio-8: CCP1 Content-36AE(16y TMRO Prescaler Ratio-256, TMRO Content-4B(16)

5. TMR1 Prescaler Ratio-4: CCP1 Content-4963(16) TMRO Prescaler Ratio-8. TMRO Content-C0(16)

6. TMR1 Prescaler Ratio-8: CCP1 Content-8F51(16) TMRO Prescaler Ratio=16, TMR0 Content-69(16)

7. TMR1 Prescaler Ratio-8: CCP1 Content-F424(16 TMRO Prescaler Ratio=1, TMRO Content-38(16)

8. TMR1 Prescaler Ratio-4: CCP1 Content-DB6E(16 TMRO Prescaler Ratio-4, TMRO Content-CB(16)

#### Earn Coins

Coins can be redeemed for fabulous gifts.