Endless supply of 'syntax error's.
It's something stupid - I've written 10's of K's of LOC in 4-bit paged assembly in my life but I'm having a tough time 'letting' PBP in MicroCode Studio do the work for me. After cranking out a bunch of code 'by the book', I've now retreated back to BLINK.BAS. The particulars...
PBP Ver.2.50c, MCS Ver.3.0.0.5, target uC= PIC16F506
I put 'LIST P=16F506' (no, not the single-quotes too) at the top and it bombs out with that as the first syntax error in BLINK.BAS.
Then it moves on to my next line - INCLUDE "P16F506.INC" (or M16F506.INC) - which seems OK 'cause all the errors now are in P16F506.INC.
Starting with the first line, whatever it is, every line is an excuse for it to fail the 'syntax test' - starting with ...
IFNDEF __16F506 on line 37 in P16F506.inc and
the first 'DEFINE... ' in M16F506.INC.
I've turned 'Use MPASM' on and off - no diff.
I'm a tidy sort - I like MY files to be in MY folder - have told MCS what my favorite default folder is - and have put all 'called for' files in there. This wouldn't be one of those 'MCS programmer is a dictator' things, would it?
If one of you fine fellow 'code spewers' could clue me in - or spell out EVERYTHING I need -and where I need it to be - to get BLINK.BAS to compile and run on a PIC16F506 , I'll appreciate it and probably not have to bother anyone here again.;-)
PS. While I'm here - I'm using PicStart Plus that's been upgraded with the latest flash firmware/module. Is there some reason why MCS has left it off the drop-down list of 'Available Programmers'?
Selecting the target device
The first thing I do when running these 'toolbar rich' programs is close them all. Rarely do I need something so often that 'going to the menu to select it' is a hassle, so, I prefer the increased headroom for code space. Guess what? The only toolbar thing not duplicated on the menu bar is 'target device'. I see in the registry that my 16F506 is specified, yet when I close everything and start again from scratch, it's not used to make a default selection. You know, a little 'get-it, string-search and set-listbox-index' would've been a nice touch.
Anyway....
Thanks. It's going to take some getting used to - like a 'double-clutching bulldozer operator' who gets into an electric car that has the 'ON' switch in the seat - it feels weird to 'not do something'.
While I did look at 16F506.INC early on I only recalled that it made a selection between the 'M' and the 'P' versions - didn't notice/remember that it also made the presumptive decision to set the fuses. Now I know.
BTW, the M16F506.INC is lacking the
EC_OSC equ 0FF80003h ; XXXX XXXX X011
in it's config definitions.
ALL is now well. I hope to be able to take the load off you guys one day and solve some problems myself.:-)