tmr1 and tmr1 ext osc

Moderator: Benj

Post Reply
brandonb
Posts: 438
Joined: Mon Aug 29, 2011 12:26 am
Location: arizona
Contact:

tmr1 and tmr1 ext osc

Post by brandonb »

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
Contact:

Re: tmr1 and tmr1 ext osc

Post by Kenrix2 »

Thanks for pointing this out. Enamul has previously posted a permanent solution detailed here:
http://www.matrixmultimedia.com/mmforum ... +st#p41728

brandonb
Posts: 438
Joined: Mon Aug 29, 2011 12:26 am
Location: arizona
Contact:

Re: tmr1 and tmr1 ext osc

Post by brandonb »

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

Post Reply