NEW
Font size
WorksheetsPenilaian Formatif 2
Total questions: 10
Worksheet time: 14mins
What is Timer In PIC18?
Used to count clock signal coming in to it.
used to count object.
a type of watch.
used as pin direction
Which is FOUR(4) types of timers?
TIMER1 TIMER2 TIMER3 TIMER4
TIMER0 TIMER1 TIMER2 TIMER3
TIMER A0 TIMER A1 TIMER A2 TIMER A3
TIMER A TIMER B TIMER C TIMER D
Which timer that can be used to as both 8-bit mode and 16-bit mode?
TIMER 3
TIMER 2
TIMER 1
TIMER 0
What is pre-scaler?
A prescaler is an electronic counting circuit used to reduce a high pin electrical signal to a lower pin.
A prescaler is an electronic counting circuit used to determine electrical signal direction.
A prescaler is an electronic counting circuit used to reduce a high frequency electrical signal to a lower frequency by integer division.
A prescaler is an electronic counting circuit used to generate a high pin electrical signal to a lower pin.
Which table register to be used to configure Timer 0 register.
ADCON0 register table.
T0CON register table.
CCPON register table
CCPRIL register table.
What is the instruction to start the timer in programming for Timer 0?
GoDone Timer0=1
Go timer =1
Start Timer =1
TMR0CON=1
What is the instruction to stop timer in Timer 0?
Stop Timer0=0
TMR0ON=0
DisableTimer0=0
Undo Timer0=0
What is the instruction to clear the timer flag for the next round for Timer0?
TMR0IF=1
TMR0IF=0
ClearFlag0=0
FlagStop0=0
By referring the T0CON table, find the value for T0CON if we want to program TIMER0 in 16-bit mode, no prescaler. Use PIC18’s fosc/4 crystal for the clock source, increment on positive-edge.
TOCON=0b10101010
TOCON=0b11110111
TOCON=0b00001000
TOCON=0b01010101
By referring the T0CON table, find the value for T0CON if we want to program TIMER0 in 8-bit mode, no prescaler. Use PIC18’s Fosc/4 crystal for the clock source, increment on negative-edge.
T0CON=0b01011000
T0CON=0b11001100
T0CON=0b01011110
T0CON=0b00011010
