Menu

PIC16F1825

Help
Anobium
2011-12-01
2013-05-30
  • Anobium

    Anobium - 2011-12-01

    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,

     
  • kent_twt4

    kent_twt4 - 2011-12-02

    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.

     
  • Anobium

    Anobium - 2011-12-02

    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

     
  • kent_twt4

    kent_twt4 - 2011-12-02

    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.

     
  • Anobium

    Anobium - 2011-12-03

    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.

     
  • Anobium

    Anobium - 2011-12-05

    Can you walk me thru a setup that may work for me?

    Best regards.

     
  • kent_twt4

    kent_twt4 - 2011-12-05

    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.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.