Be careful using the internal oscillator and the MCLR pin as an input. We just discussed this on another thread. You will not be able to reprogram it if you do.
Be careful using the internal oscillator and the MCLR pin as an input. We just discussed this on another thread. You will not be able to reprogram it if you do.
> Be careful using the internal oscillator and the MCLR pin as an input. We just discussed this on another thread. You will not be able to reprogram it if you do.
There is NO PROBLEM with this combination - it's used all the time - in fact it's my preferred choice for this PIC. There is no correlation internally within the PIC between your OSCILLATOR choice and your MCLR choice. Simply drop it into your programmer and away you go with whatever settings you desire.
And now... it also depend of how good your device programmer is. An crapy Programming sequence timing and signal will ruine your life.
<img src="http://www.picbasic.co.uk/forum/attachment.php?attachmentid=878&stc=1&d=1148149000 ">
As many here use free solution, there's many chance that it do some bugs. But i do understand why some choose these solution as PIC programming is not their main job or they simply can't afford the price of a good programmer.
I heard that some have fix some bugs when using a driver as in the ICSP guide of MicroChip... i can't say... http://ww1.microchip.com/downloads/e...Doc/30277d.pdf
Last edited by mister_e; - 21st May 2006 at 19:21.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Steve, thanks for all your help - really appreciated.
One more thing I've got to do is:
When the reset (mclr) is pulled low, (pushbutton) this thing goes into a reset routine, which I can write with no problem. This routine must reset (or stop) the wdt cycle, turn on a couple of outputs in sequence and run the ADs each time until they are equal. Then, it has to engage the wdt again and go to sleep for 2 minutes or so. (outputs actually running motors until ADs are equal)
Without pushing mclr putton, it needs to then wake up from sleep every 2 minutes, run the ADs, then turn on the outputs, recheck ADs until equal, then go to sleep again for another 2 minutes.
These two functions are baffling to me because I find no info about how to use the wdt or mclr to reset as above, in the manual at all. If you can help with some sample code to do this, or tell me where to find it, that will be REALLY appreciated.
Thanks all!
Ron
PS This thing, times 2, is for an azimuth drive for my telescope-in case you are curious! As mentioned before, it operates most of the night, totally off of sunlight it gets during the day.
PPS I understand seeing stars better than PIC code!!!
Section 9.6 watch dog timer, have to be your friend now. Set the right prescaller in OPTION register and use the TO bit of STATUS.
This should be something good enough to start.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks