Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[PIC] PIC16F84A Timer0 module

Status
Not open for further replies.

gusts

Junior Member level 2
Junior Member level 2
Joined
Mar 18, 2012
Messages
23
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
Latvia, Riga, Baldone
Visit site
Activity points
1,456
Hello all!

I just wanted to know whether PIC16F84A has any bit with a function like "Timer0 enable" or is it ever-running? I looked through the registers associated with the Timer0 but didn't find anything like that. I hope You understood me.

Best regards
gusts
 

Hello all!

I just wanted to know whether PIC16F84A has any bit with a function like "Timer0 enable" or is it ever-running? I looked through the registers associated with the Timer0 but didn't find anything like that. I hope You understood me.

Best regards
gusts

Timer0 is a free-running instruction (or RA4 edge detection) counter. Use OPTION REG <5> to select mode and the interrupt mask INTCON<5> to have TIMER0 interact with your code via the TIMER0 interrupt - INTCON2 - when TIMER0 overflows. It runs all the time, but if the interrupt mask bit is cleared, it won't affect the device's function or your code.
 
  • Like
Reactions: gusts

    gusts

    Points: 2
    Helpful Answer Positive Rating
hi ,
the timer on the 16f84 has no enable bit
untitled.jpg
 
  • Like
Reactions: gusts

    gusts

    Points: 2
    Helpful Answer Positive Rating
hello,


You can use another way to have an ON/OFF counting for Timer0
if RA4 is not used , tied RA4 to level 0V
put flag TOSE bit to 0
and after you can use TOCS to send or not send FOSC to timer0
so like an enabled bit..

are you agree with this ?
 

hello,


You can use another way to have an ON/OFF counting for Timer0
if RA4 is not used , tied RA4 to level 0V
put flag TOSE bit to 0
and after you can use TOCS to send or not send FOSC to timer0
so like an enabled bit..

are you agree with this ?

i believe the same effect is obtained if the pin is configured as output ....
 

hello,


You can use another way to have an ON/OFF counting for Timer0
if RA4 is not used , tied RA4 to level 0V
put flag TOSE bit to 0
and after you can use TOCS to send or not send FOSC to timer0
so like an enabled bit..

are you agree with this ?

i believe the same effect is obtained if the pin is configured as output ....

Excellent ideas! I will try both of them! :)
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top