News:

PROTON pic BASIC Compilers for PIC, PIC24, dsPIC33

Main Menu

PIC16f1619 compilation error

Started by Giuseppe MPO, Jul 06, 2021, 11:59 AM

Previous topic - Next topic

Giuseppe MPO

I get this error using the HSEROUT instruction:

Error[113]   D:\WORK\PIC\LAMPADA\A.S 1914 : Symbol not previously defined (_PPS_FN_TX)

I deleted all the lines of the program to find the point of the error, and saw that the Hserout instruction generates it.

   Device = 16F1619

   Xtal = 4

init:   While
   HSerOut ["*"]
    Wend
    
        End

The error remains even with these 4 lines, obviously compiling with any other PIC the error disappears.

top204

That's from when Microchip first started implementing PPS and kept changing their alias names in the official .inc file and datasheets.

Add this line of code in your program:

    Symbol _PPS_Fn_TX = 18      ' Replace the mis-named PPS value's name


I'll add the names now used to the PPI file for that device. This is going to crop up a few times with the earlier enhanced 14-bit core devices that had PPS introduced to them because the PPI files are semi-auto created from the official .inc files and datasheets, so when Microchip change a name later, they do not state anywhere that a name has been changed, so the original PPI file remains with their original name for an alias.

Giuseppe MPO