Hello Darrel, I tried adding "DEFINE OSCCAL_1K 1" once above the @_Config....statement and once below it, both cases my PIC went dead. Is it that any other statement goes along with this?
Hello Darrel, I tried adding "DEFINE OSCCAL_1K 1" once above the @_Config....statement and once below it, both cases my PIC went dead. Is it that any other statement goes along with this?
___________________
WHY things get boring when they work just fine?
I tried whole day today to make this code work via my PC but unfortunately it didn't worked. The serin command is not working at all. I tried using MAX232 and sent data via PC after setting correct baud rate and other settings, but no results at all.
The interrupt and whatever is in ISR, is working fine. Though the weak internal pullup for PortA.0 & 1 didn't worked (I wonder why), but I managed with external pullups for them.
Sending o9* via my PC does not put pin5 high. I tried it nearly million times today.
Can oscillator be the culprit?
As explained in the above post, my PIC went dead when I tried using DEFINE OSCCAL_1K 1. So I removed that statement and kept trying but
I really need some help to make it work with Serin command.
___________________
WHY things get boring when they work just fine?
That means the OSCCAL value is gone.
Without the calibration's RETLW, using OSCCAL_1K creates an infinite loop.
And without the calibration, SERIN has a snowball's chance ...
You could try random OSCCAL values, you might get lucky.
Or, stick a crystal or resonator on it, and it should be able to SERIN.
<br>
DT
Hi, I tried it with another PIC with the define statement on top of the code. It worked fine. I can't use external resonator, as I am using those pins.
How do I know which PICs need this DEFINE statement and which don't?
I am trying to serout with 12F635 & serin at 16F676. It is still giving problems, does 635 also needs some kind of calibration? Thanks
___________________
WHY things get boring when they work just fine?
The same way you know about all the other things the chip does ... the Datasheet. (Oscillator section)
Only the really OLD chips need OSCCAL calibration.
No, the 635 doesn't need an OSCCAL.I am trying to serout with 12F635 & serin at 16F676. It is still giving problems, does 635 also needs some kind of calibration? Thanks
It has a precision multi-speed internal oscillator, and you can select the speed with OSCCON. But it defaults to 4Mhz.
It's factory calibrated, and the calibration can not be erased.
The 635 has a comparator that needs to be turned off though.
CMCON0 = 7
<br>
DT
Bookmarks