Search found 1469 matches

by Jerry Messina
Thu Jul 13, 2023 10:57 am
Forum: General
Topic: DIY Programmer?
Replies: 1
Views: 1257

Re: DIY Programmer?

Personally, I wouldn't recommend rolling your own, but if you're so inclined I'd suggest something like this: http://kair.us/projects/pk2m_programmer/index.html It's from the same guy who does the pickitminus software, so at least it's supported and up to date. http://kair.us/projects/pickitminus/in...
by Jerry Messina
Wed Jul 05, 2023 2:33 pm
Forum: General
Topic: Invalid option
Replies: 7
Views: 2987

Re: Invalid option

I got a box full of old devices I know what THAT's like! There's probably not much difference between the 2620 and 2321, other than the 2620 having a lot more memory to play with. Either way, let me know if you run into any issues... these older parts are probably the least tested of the bunch when...
by Jerry Messina
Wed Jul 05, 2023 1:02 pm
Forum: General
Topic: Invalid option
Replies: 7
Views: 2987

Re: Invalid option

I decided to develop for the pic that is on the SGLCD backpack
Got a link to that backpack?

If you need help switching devices to something more recent, just holler.
by Jerry Messina
Wed Jul 05, 2023 12:26 pm
Forum: General
Topic: Invalid option
Replies: 7
Views: 2987

Re: Invalid option

I think I see what's going on. The file setdigitalio.bas defines a const 'DIG', and that's conflicting with the config settings (I assume you have the 'config' statement after the 'include's) Change the order of things... put the config statement in your main program before anything else, right afte...
by Jerry Messina
Tue Jul 04, 2023 11:12 pm
Forum: General
Topic: Invalid option
Replies: 7
Views: 2987

Re: Invalid option

Are you still using the 18F2620, and that's the device selected in the ConfigGen?

Different chips have different valid settings, and there are some devices for which DIG is a valid setting, but not for the 18F2620. Thank Microchip for that one.
by Jerry Messina
Tue Jul 04, 2023 10:50 pm
Forum: General
Topic: Invalid option
Replies: 7
Views: 2987

Re: Invalid option

Valid settings for PBADEN are ON and OFF.

You say the ConfigGenerator allows DIG? Is the ConfigGen "Microchip MPASM/MPASMX Folder" setting pointing to the Swordfish BIN folder?
by Jerry Messina
Sat Jul 01, 2023 9:57 pm
Forum: General
Topic: Blink PortB on a 18F2620
Replies: 8
Views: 3789

Re: Blink PortB on a 18F2620

PS can someone suggest a 18F device that is easier to work with? The 2620 is a pretty basic one, but since you already have them it ought to work. I wouldn't go out and buy new ones... you'd be paying a premium for older chips. What kind of serial interface were you going to make? Can't help much w...
by Jerry Messina
Sat Jul 01, 2023 2:31 pm
Forum: General
Topic: Blink PortB on a 18F2620
Replies: 8
Views: 3789

Re: Blink PortB on a 18F2620

Also, on that old chip you should probably set config 'LVP = OFF' unless you specifically know you want it on.

Chips of that vintage have a PGM pin (RB5/KBI1/PGM) that gets enabled with LVP=ON, so if you don't add a pulldown on RB5 it can drop into Program mode.
by Jerry Messina
Sat Jul 01, 2023 2:19 pm
Forum: General
Topic: Blink PortB on a 18F2620
Replies: 8
Views: 3789

Re: Blink PortB on a 18F2620

If you add the following : include "intosc.bas" #option DIGITALIO_INIT = true // automatically call SetAllDigital at startup include "setdigitalio.bas" it will automatically set it to use the intosc at the 'clock=' freq you've specified, and set all IO pins to digital mode when the program starts In...
by Jerry Messina
Sun Jun 25, 2023 4:41 pm
Forum: Compiler
Topic: Unkown analog select map
Replies: 5
Views: 2686

Re: Unkown analog select map

Nevermind. I found the message.

It's from an old copy of SetDigitalIO.bas (V2.2 or lower).
The newest version in the library folder should be V3.0, dated 8/20/22

Check your userlibrary folder for old system library files and delete them (or copy them somewhere else for the time being).
by Jerry Messina
Sun Jun 25, 2023 4:34 pm
Forum: Compiler
Topic: Unkown analog select map
Replies: 5
Views: 2686

Re: Unkown analog select map

I don't get any warnings when I compile that code. What files do you have in your userlibrary folder? Could you post what's in the project *.idf file after you compile? The .idf file is just a text file and it'll be in with your main .bas program file. You could just open the file with a text editor...
by Jerry Messina
Sun Jun 25, 2023 1:38 pm
Forum: Compiler
Topic: Unkown analog select map
Replies: 5
Views: 2686

Re: Unkown analog select map

Hi Charlie,

That warning probably has something to do with the adc.bas or setdigitalio.bas modules, but to be honest i don't recall that message.
Is that the exact warning you get? What version of the compiler?

Could you post the code, or at least a list of the library modules you're including?
by Jerry Messina
Sat May 27, 2023 3:39 pm
Forum: Compiler
Topic: ISR Context Analyzer
Replies: 1
Views: 1749

Re: ISR Context Analyzer

I've added a few new features to the ISR Context Analyzer and improved the scanning. The program will now attempt to resolve event calls automatically, and if it can't it'll issue a message 'unable to locate all event assignments' to warn you of that. How well this works depends on how the events ar...
by Jerry Messina
Mon May 22, 2023 10:59 am
Forum: Compiler
Topic: Interrupts and variable saving
Replies: 13
Views: 12182

Re: Interrupts and variable saving

I am sure it will help a lot of users. New and old one.
Me included!

I should have done this years ago, it certainly makes life a lot easier. Eventually I'll add it to the compiler plugins.
Now if I can just figure out a way to get the events incorporated directly into the isr section ...
by Jerry Messina
Sun May 21, 2023 2:53 pm
Forum: Compiler
Topic: Interrupts and variable saving
Replies: 13
Views: 12182

Re: Interrupts and variable saving

I finally put together a program to aid with all this. See forum post ISR Context Analyzer