Page 1 of 1

tmr1 and tmr1 ext osc

Posted: Sun Feb 23, 2014 7:44 am
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);

Re: tmr1 and tmr1 ext osc

Posted: Sun Feb 23, 2014 9:10 am
by Kenrix2
Thanks for pointing this out. Enamul has previously posted a permanent solution detailed here:
http://www.matrixmultimedia.com/mmforum ... +st#p41728

Re: tmr1 and tmr1 ext osc

Posted: Sun Feb 23, 2014 11:15 am
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