Can't get a 16F88 to do anything.
Is there anyone out there willing to give me a code sample that will flash an LED using a 16F88 (code from start to finish including all fuse settings etc.).
I have worked with lots of PIC's, though mostly the 12F series lately. I started out programming microcontrollers in HEX, then graduated to assembly, and have been using PICBasic PRO for years (currently using v 2.47). I am very familair with them and usually don't have any problems, but this 16F88 is kicking my tail! I have the CMCON, ANSEL, TRIS settings, & OSCCON to what I'm pretty sure are the correct settings (though I have tried a few different settings), but still nothing.
I have looked over all the similar links and have tried everthing in them and I still can't get a blinking LED from this chip. I always start with a new chip by getting an LED blinking, but I just can't seem to get it. I have spent hours on this! It's got to be some little thing I am missing, but I haven't been able to see it. At this point I am just throwing any piece of code in there.
So, all I need is some known good code. I don't care which port you put it on or anything, just give me a blinking LED that usies the internal RC oscillator at 8MHz, no comparators turned on, no analog, just digital I/O all all the ports.
I have tried different chips (3) and different breadboards and different power supply's.
I am using Microcode Studio Plus as my editor, I then import the file the MPLab like I do with all my other chips. I have set the chip selection to correct one in both Mircode Studio Plus and MPLab. I have tried setting the fuses through the code (which is what I usually do) and manually, neither way has worked for me. My code doesn't spit out any errors (not that it means too much).
I am stuck! Any help would be greatly appreciated.
Carl
Bad 16F88 and external oscillator
Quote:
Originally Posted by
nomad
i had 3 16f88's that no matter what i did, they would not run with internal osc. pop a crystal and 2 caps and not another problem since.
I hope this isn't a bad batch of 16F88's. I bought 50 of these, but it was back when they first came out, so maybe. If they don't work with the new compiler etc. then I will try them with a crystal, but that won't do me much good as the board they are going into has already been produced without a section for a crystal. You might be asking, "What kind of idiot gets a board produced without having fully tested the code in a microcontroller?". Well, the board is actually designed to use either a 12F683 (which it has been using for a couple years without any problems) or a 16F88. The 16F88 brings in some advanced circuitry and options to the circuit that we haven't used up until this time, but we would like to start including those options. So, I am stuck with needing to use the internal oscillator since that is what the board is designed to use.
Are you aware of a bad lot/date code of 16F88's?
Thanks for your input!
Carl