Search found 1473 matches
- Fri Jul 14, 2023 12:30 pm
- Forum: User Modules
- Topic: Program Memory Read/Write Q41
- Replies: 15
- Views: 6747
Re: Program Memory Read/Write Q41
Also, I know we're talking about a Q41 here so the following doesn't really apply when working with program memory, but loading the TBLPTR registers this way: Public Sub EraseBlock (pAddress As TABLEPTR,... will only work for program memory <= 64K, and no other flash sections (if that matters). TABL...
- Fri Jul 14, 2023 11:53 am
- Forum: User Modules
- Topic: Program Memory Read/Write Q41
- Replies: 15
- Views: 6747
Re: Program Memory Read/Write Q41
Does that actually work? The datasheets call out a very specific sequence of asm instructions that it says must be followed for the unlock to work. It's interesting that in new datasheets they show it as 'C' code, so there may be some leeway... since they mention that interrupts must be disabled it ...
- Thu Jul 13, 2023 12:36 pm
- Forum: User Modules
- Topic: Program Memory Read/Write Q41
- Replies: 15
- Views: 6747
Re: Program Memory Read/Write Q41
Locking and unlocking NVM requires a very special sequence of operations, so I'm not sure I follow you about the "putting it into variables" part. Looking at that MemoryAccess wiki page there appear to be some serious flaws in the WriteItem() code. The TableWrite() sub auto increments the TBLPTR, an...
- Thu Jul 13, 2023 11:07 am
- Forum: User Modules
- Topic: Program Memory Read/Write Q41
- Replies: 15
- Views: 6747
Re: Program Memory Read/Write Q41
Reading program memory is pretty straight-forward, and that's probably what most people use.
Writing is another story.
I'll take a look at doing an update to that memoryAccess module that's on the wiki.
Is there any feature in particular you're looking for?
Writing is another story.
I'll take a look at doing an update to that memoryAccess module that's on the wiki.
Is there any feature in particular you're looking for?
- Thu Jul 13, 2023 10:57 am
- Forum: General
- Topic: DIY Programmer?
- Replies: 1
- Views: 1740
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...
- Wed Jul 05, 2023 2:33 pm
- Forum: General
- Topic: Invalid option
- Replies: 7
- Views: 3476
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...
- Wed Jul 05, 2023 1:02 pm
- Forum: General
- Topic: Invalid option
- Replies: 7
- Views: 3476
Re: Invalid option
Got a link to that backpack?I decided to develop for the pic that is on the SGLCD backpack
If you need help switching devices to something more recent, just holler.
- Wed Jul 05, 2023 12:26 pm
- Forum: General
- Topic: Invalid option
- Replies: 7
- Views: 3476
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...
- Tue Jul 04, 2023 11:12 pm
- Forum: General
- Topic: Invalid option
- Replies: 7
- Views: 3476
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.
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.
- Tue Jul 04, 2023 10:50 pm
- Forum: General
- Topic: Invalid option
- Replies: 7
- Views: 3476
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?
You say the ConfigGenerator allows DIG? Is the ConfigGen "Microchip MPASM/MPASMX Folder" setting pointing to the Swordfish BIN folder?
- Sat Jul 01, 2023 9:57 pm
- Forum: General
- Topic: Blink PortB on a 18F2620
- Replies: 8
- Views: 4286
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...
- Sat Jul 01, 2023 2:31 pm
- Forum: General
- Topic: Blink PortB on a 18F2620
- Replies: 8
- Views: 4286
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.
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.
- Sat Jul 01, 2023 2:19 pm
- Forum: General
- Topic: Blink PortB on a 18F2620
- Replies: 8
- Views: 4286
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...
- Sun Jun 25, 2023 4:41 pm
- Forum: Compiler
- Topic: Unkown analog select map
- Replies: 5
- Views: 3196
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).
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).
- Sun Jun 25, 2023 4:34 pm
- Forum: Compiler
- Topic: Unkown analog select map
- Replies: 5
- Views: 3196
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...