Read the newbee threads, 16F877A no go.
Hi, I have read the threads here dealing with newbees (that's me) getting the PBP compiler (2.46 in my case) running. No fix so far. I tried making smaller programs, down to the Blink.bas in the sample dir. I have even tried the short example code provided in a post here.
DEFINE OSC 12
TRISB.2=0 'define PORTB.2 as output
start:
Toggle PORTB.2
PAUSE 1000
goto start
I have two of the Momentumfire developement boards (LCD, serial, Keypad, pots, LED numbers, 11.59 MHz), I mention these because both do exactly the same. When I compile to a .hex file (using PM or MPASM 7.1) it appears to go without errors. Then I program the hex file into the part using a Hi-Lo ALL-11
multiple IC type device programmer. When the 16F877A is placed into the circuit nothing happens.
I have read the contents of the part back into the programmer's buffer, and compared it to the printed listing of the .hex file. No problems found.
I copied the original (Dev board exerciser) back into the 16F877A and it runs fine. I can also edit minor changes to this program's hex code in the ALL-11 buffer then rewrite it, this too runs fine. I include this to indicate the programmer is working.
I was able to compile the blink.bas file for the 18F6520, and using CCS's ICD-40U download and run it (albeit very slowly) in a test PWB that just has a 32 KHz clock osc, and a regulator witha reset pulse. It conplained about a couple configuration bits, but ran.
After many hours I'm pretty underwhelmed with this so far, niether the PBP manual nor Chuck Hellebuyck's book do a good job of getting someone who doesn't already know it started with the tool and environment.
Any help or suggestions would be very welcome. If you wish to write my email is: the current year @bobby.net in the form of [email protected] (let the bots figure that one out.)
Thanks,
Bobby
More on the configuration bits.
Looking further into the configuration bits only confuses things more. From Melanie's thread on setting them up, I looked at the .inc for entries matching the datasheet's Special Features section. The datasheet calls out many configuration bit switches that are not addressed in the .inc file.
I'm really hoping these bits are not important to be set or cleared, otherwise it doesn't inspire confidence. I still have little idea on what the configuration bits should be set to. Learning more every day...
Bobby
Reply to Steve, serial output success.
Hi Steve,
You are a very bright fellow, and much more helpful than a bunch of dubious sample programs and not very clear books. At much more reasonable price too.
Suppose I'm spoiled by how long the 8031 based parts and tools have had to refine their efforts. But it shouldn't be that hard to write an example of using a command, a list of what the allowable varibles are, and what each effects.
To paraphrase, there are a lot of learning opportunities here.
Best Regards,
Bobby