Ok,
Just focusing on getting 60Hz out of the thing. kind of left the other code in there knowing it probably won't work completely until I rewrite it, but....
I fixed ADCON1 (= 7) and TRISB to output on B.3 and now I have a pulse! The only problem is that it seems to be 38.1Hz
Not knowing what "TMR0 = TMR0 + 94" for me is doing exactly (maybe preloading timer 0 so it overflows earlier or something?) and it has a nice integer there to play with, I changed it to various things, but no difference in the 38.1Hz.
Should I be playing with the prescaler value or something? I figure as long as the oscillator is still 20MHz, it should be the sameI know pretty much nothing when it comes to our timer friends.
My next plan is to maybe get the working code for the 16F648A ported over and seeing if that will work on an 18F with the 18F DTII stuff and go from there.
Thanks for taking the time to help me out!





Bookmarks