PIC MICROCONTROLLER
ARCHITECTURE OF 8085
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
T1CKI
|
|
T0CKI
|
|
CCP1
|
|
T1OSI
|
Detailed explanation-1: -When a counter is desired, the T1CKI input is selected by the Timer1 Oscillator Enable (T1OSCEN) bit. Timer1 is incremented on the rising edge of the external clock input signal at the T1CKI pin, which can be synchronized to the microcontroller system clock or can run asynchronously.
Detailed explanation-2: -Timer mode is selected by clearing the T0CS bit (OPTION<5>).
Detailed explanation-3: -The PIC16F877A basically has three timer modules. These timer module terminals are also multiplexed with other functions for handling alternate functions. These three-timer modules as named as TIMER 0, TIMER 1 and TIMER 2. These modules help to perform various timer, Counter or PWM Generation.
Detailed explanation-4: -When the external clock is selected (TMR1CS<1:0> = 10*), the Timer1 Oscillator Enable (T1OSCEN) bit selects the external signal source. The Timer1 module may work as a counter using an I/O pin as the input source, or a timer using an external 32 kHz clock oscillator.
Detailed explanation-5: -Calculate the Timer Count for the required delay. Set the Presaclar bits in OPTION REG as per the delay calculations. Clear the PSAbit for using the prescalar. Select the Clock Source Internal/External using TOCS bit. Load the timer value into TMRO register. Enable the Timer0 Interrupt by setting TMR0IE bit. More items