I will hazard a guess, because I don't have that chip to try it out, and that would be the 16f1823 file. The trade off would be losing the extra timers, pwm's, and of course just one page of memory.
I have the 16f1827, similar in features to the 16f1825, except it's an 18 pin device, and the gpio registers would be all wrong.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You are using MPASM? The 16f1823 is a pretty new device, so would need a newer MPLAB for that. My MPLAB v8.66/MPASM has the P16f1823.INC file. Also the 16f1823.dat file can be copied and renamed to 16f1825.dat.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The easiest is just to use GCBasic's internal assembler. I use Microchips MPASM just out of habit. I tried a blink led program for the 16f1823 and it seems to assemble just fine.
All that needs to be done is just right click and edit the COMPILE.BAT file in the GCBasic folder. You can comment out the line relating to makeasm.bat and insert the one for GCASM. So here is how it looks when I comment out the makeasm.bat:
@ECHO OFF
C:
cd \PROGRA~1\GCBASIC
GCBASIC /NP /NC %1 /O:compiled.asm /A:GCASM /P:download.bat
'GCBASIC /NP /NC %1 /O:compiled.asm /A:makeasm.bat /P:download.bat
Hope that works, else get a 16f1823, or an 16f1827 for more features.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I will stop buying the wrong PICs soon!
I have some PIC16F1825. Just got them today. Just figured out these PICs do not have a DAT file….
Is there one I can use?
Best regards,
I will hazard a guess, because I don't have that chip to try it out, and that would be the 16f1823 file. The trade off would be losing the extra timers, pwm's, and of course just one page of memory.
I have the 16f1827, similar in features to the 16f1825, except it's an 18 pin device, and the gpio registers would be all wrong.
Thank you.
I tried the command #chip 16f1823, 4 within a program that was working on a 16f88.
I got an error. Any idea why?
Assembling program …
Could Not Find c:\PROGRA~1\GCBASIC\compiled.cod
An error has been found:
ASM: compiled.asm:10:Error Unable
to open file "P16F1823.inc" - No such file or directory
You are using MPASM? The 16f1823 is a pretty new device, so would need a newer MPLAB for that. My MPLAB v8.66/MPASM has the P16f1823.INC file. Also the 16f1823.dat file can be copied and renamed to 16f1825.dat.
I was using GPUTILS but I guess this is too old.
What are the options I have?
I think I have the incorrect chips.. again.
Can you walk me thru a setup that may work for me?
Best regards.
The easiest is just to use GCBasic's internal assembler. I use Microchips MPASM just out of habit. I tried a blink led program for the 16f1823 and it seems to assemble just fine.
All that needs to be done is just right click and edit the COMPILE.BAT file in the GCBasic folder. You can comment out the line relating to makeasm.bat and insert the one for GCASM. So here is how it looks when I comment out the makeasm.bat:
Hope that works, else get a 16f1823, or an 16f1827 for more features.