NEW
Font size
WorksheetsPIC18 TIMER
Total questions: 10
Worksheet time: 6mins
How many timers do we have in the PIC18F4520?
1
2
3
4
Timer0 can be used only as a 16-bit timer.
True
False
1. The T0CON register is a (n) _______-bit register.
8-bit
16-bit
32-bit
4-bit
11. Timer0 supports the highest prescaler value of _________.
126
256
255
64
1. In 16-bit mode, the counter rolls over when the counter goes from ______ to ________.
FH to 0H
FFH to 00H
FFFH to 000H
FFFFH to 0000H
1. Find the frequency and period used by timer if the crystal attached to the PIC18 has the following values:
a. XTAL=10 MHz
0.4us
0.04us
0.4ms
0.4ns
1. Find the frequency and period used by timer if the crystal attached to the PIC18 has the following values.
a. XTAL=10 MHz (prescaler 1:4)
1.6us
1.6ns
1.6ms
0.16us
When the timer used as a counter, it is a pulse outside the PIC18 that increments the TH, TL registers. State the PIC pin for counter.
RA4
RA3
RB3
RB4
What is the function of prescaler in PIC timer?
Used when it is necessary to measure longer periods of time
Used to make a short periods of time
Used to create counter
No answer
1-Hz external clock is being fed into pin T0CKI (RA4) and PORTB is connected to 8 LEDs as illustrate in Figure1. Which TIMER program will be used for the question ?
Timer as a counter
Timer as a time delay
