don’t give up...

Originally Posted by
Techbuilder
Ohh opps even when I reprogrammed it still nothinghttp://www.picbasic.co.uk/forum/images/icons/icon9.gif
Unhappy
The link you gave me was different from mine.
His at least turned on
mine doesn't even do that
Shouldn't the sample program work from pbp?
Hi Techbuilder,
You are right, the other poster had a slightly different problem, with the PIC16F84A not blinking correctly, than you have.
But, if you could read some of the parts that MIGHT apply to your general problem, that would save the people trying to help, from repeating the same information.
It is a little easier to read than to type, and it is the reader needing the information not the person helping. This reduces the burden on the people helping, so that they do not get burned out and stop trying to help.
In fact it is considered good forum practice to search diligently, for any answered problem, that could contain a clue, before asking.
Some of the parts that MIGHT apply:
But, you may be trying too hard. Most of the defines are already supplied by the default *.INC file (16F84A.INC).
In Microcode Studio make sure you are using the button for
Compile(ing) AND Program(ing),
NOT the button for just
Compile(ing).
See this microEngineering Labs web page:
Specifying configuration bit settings in PICBASIC PRO programs.
If you add a configuration directive to your program file, you are actually replacing the default configuration that the compiler would otherwise include. The easiest way to determine the correct syntax is to get examples from the compiler and assembler's built-in resource files. To that end, it's best to understand how the compiler determines the config defaults....
....The first thing the compiler looks for is a file in the PBP folder that matches the targeted PIC. If you tell it to compile for a 16F84A, it reads the file "16F84A.INC". The contents of this file are divided into 2 sections, one for each assembler. An internal variable, "PM_USED", tells the compiler which section of the file to use. In the following example, you will see that the top section ("ifdef" to "else") is meant for the PM assembler and the bottom section ("else" to "endif") is meant for the MPASM assembler.
http://www.melabs.com/support/config_defaults.htm
This might mean that if you refer to a different device in your code, compiler or programmer, you may run into trouble.
Let us know if you have tried any of our posted suggestions.
Did you add the capacitor to the 78L05?
Did you change the DEFINES in your code to @ DEVICE pic16F84A
The sample PBP program should work for your project, don’t give up.
-Adam-
Ohm it's not just a good idea... it's the LAW !
Bookmarks