tmr1 and tmr1 ext osc

Moderator: Benj

brandonb
Posts: 438
Joined: Mon Aug 29, 2011 12:26 am
Location: arizona
Has thanked: 175 times
Been thanked: 173 times
Contact:

tmr1 and tmr1 ext osc

Postby brandonb » Sun Feb 23, 2014 7:44 am

at least with 16f1939 when enable tmr1 it cuts out useage of c0,c1 pins... the problem is when select instruction clock as source it should clear bit 3 in t1con register... after enable tmr1 put this line of code afterwards to regain control of c0,c1 pins

Code: Select all

t1con&=~(1<<3);

Kenrix2
Flowcode v5 User
Posts: 211
Joined: Tue Feb 19, 2013 9:51 pm
Has thanked: 72 times
Been thanked: 177 times
Contact:

Re: tmr1 and tmr1 ext osc

Postby Kenrix2 » Sun Feb 23, 2014 9:10 am

Thanks for pointing this out. Enamul has previously posted a permanent solution detailed here:
viewtopic.php?f=29&t=11477&p=41728&hilit=tmr1+st#p41728

brandonb
Posts: 438
Joined: Mon Aug 29, 2011 12:26 am
Location: arizona
Has thanked: 175 times
Been thanked: 173 times
Contact:

Re: tmr1 and tmr1 ext osc

Postby brandonb » Sun Feb 23, 2014 11:15 am

thanks, i didn't realize, a while back i discovered this problem and there was no fix, then i learned how to read datasheets, was adding tmr1,3,5 to libraries tonight and figured would post that