wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

PIC18 TIMER

Total questions: 10

Worksheet time: 6mins

Name
Class
Date
1.

How many timers do we have in the PIC18F4520?

a)

1

b)

2

c)

3

d)

4

2.

Timer0 can be used only as a 16-bit timer.

a)

True

b)

False

3.

1. The T0CON register is a (n) _______-bit register.

a)

8-bit

b)

16-bit

c)

32-bit

d)

4-bit

4.

11. Timer0 supports the highest prescaler value of _________.

a)

126

b)

256

c)

255

d)

64

5.

1. In 16-bit mode, the counter rolls over when the counter goes from ______ to ________.

a)

FH to 0H

b)

FFH to 00H

c)

FFFH to 000H

d)

FFFFH to 0000H

6.

1. Find the frequency and period used by timer if the crystal attached to the PIC18 has the following values:

a. XTAL=10 MHz

a)

0.4us

b)

0.04us

c)

0.4ms

d)

0.4ns

7.

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)

a)

1.6us

b)

1.6ns

c)

1.6ms

d)

0.16us

8.

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.

a)

RA4

b)

RA3

c)

RB3

d)

RB4

9.

What is the function of prescaler in PIC timer?

a)

Used when it is necessary to measure longer periods of time

b)

Used to make a short periods of time

c)

Used to create counter

d)

No answer

10.

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 ?

a)

Timer as a counter

b)

Timer as a time delay