Unkown analog select map

Coding and general discussion relating to the compiler

Moderators: David Barker, Jerry Messina

Post Reply
CharlieM
Registered User
Registered User
Posts: 211
Joined: Wed Oct 10, 2007 12:05 am

Unkown analog select map

Post by CharlieM » Sat Jun 24, 2023 11:07 pm

Hello Everyone,

ITs good to be back here. I am using a 18F452 and I get this warning and I think it has something to do with the pic I'm using.
If I change it to a 18F4520 then the warning goes away. I am playing around with the GLCD module. any ideas?
Running version 2.2.4.0 ICC 1.2.1.0
Regards CharlieM

Jerry Messina
Swordfish Developer
Posts: 1473
Joined: Fri Jan 30, 2009 6:27 pm
Location: US

Re: Unkown analog select map

Post by Jerry Messina » Sun Jun 25, 2023 1:38 pm

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?

CharlieM
Registered User
Registered User
Posts: 211
Joined: Wed Oct 10, 2007 12:05 am

Re: Unkown analog select map

Post by CharlieM » Sun Jun 25, 2023 2:36 pm

Hi Jerry,
I am running the lastest version of compiler.
That is the exact warning message,and here is the code I am messing with. As I mentioned if I change the device type to say 18F4520 then I dont get a warning. Thanks for taking a look at this for me.


Code: Select all


Device = 18F452
Clock = 8
#option GLCD_DATA = PORTD        // data port
#option GLCD_RS = PORTB.2        // RS pin
#option GLCD_EN = PORTB.4        // EN pin
#option GLCD_RW = PORTB.3        // RW pin
#option GLCD_CS1 = PORTB.0       // chip select
#option GLCD_CS2 = PORTB.1       // chip select
#option GLCD_ASPECT_RATIO = 75   // aspect ratio, smaller number will squeeze y for GLCD circles and box
#option GLCD_INIT_DELAY = 100   // initialisation delay (ms)
#option GLCD_INVERT_CS = false   // invert CS lines... 

  
  Config
    OSC = HS,           // HS oscillator
    OSCS = OFF,         // Oscillator system clock switch option is disabled (main oscillator is source)
    PWRT = OFF,         // PWRT disabled
    BOR = OFF,          // Brown-out Reset disabled
    BORV = 20,          // VBOR set to 2.0V
    WDT = OFF,          // WDT disabled (control is placed on the SWDTEN bit)
    WDTPS = 128,        // 1:128
    CCP2MUX = OFF,      // CCP2 input/output is multiplexed with RB3
    STVR = OFF,         // Stack Full/Underflow will not cause RESET
    LVP = OFF,          // Low Voltage ICSP disabled
    DEBUG = OFF,        // Background Debugger disabled. RB6 and RB7 configured as general purpose I/O pins.
    CP0 = OFF,          // Block 0 (000200-001FFFh) not code protected
    CP1 = OFF,          // Block 1 (002000-003FFFh) not code protected
    CP2 = OFF,          // Block 2 (004000-005FFFh) not code protected
    CP3 = OFF,          // Block 3 (006000-007FFFh) not code protected
    CPB = OFF,          // Boot Block (000000-0001FFh) not code protected
    CPD = OFF,          // Data EEPROM not code protected
    WRT0 = OFF,         // Block 0 (000200-001FFFh) not write protected
    WRT1 = OFF,         // Block 1 (002000-003FFFh) not write protected
    WRT2 = OFF,         // Block 2 (004000-005FFFh) not write protected
    WRT3 = OFF,         // Block 3 (006000-007FFFh) not write protected
    WRTC = OFF,         // Configuration registers (300000-3000FFh) not write protected
    WRTB = OFF,         // Boot Block (000000-0001FFh) not write protected
    WRTD = OFF,         // Data EEPROM not write protected
    EBTR0 = OFF,        // Block 0 (000200-001FFFh) not protected from Table Reads executed in other blocks
    EBTR1 = OFF,        // Block 1 (002000-003FFFh) not protected from Table Reads executed in other blocks
    EBTR2 = OFF,        // Block 2 (004000-005FFFh) not protected from Table Reads executed in other blocks
    EBTR3 = OFF,        // Block 3 (006000-007FFFh) not protected from Table Reads executed in other blocks
    EBTRB = OFF         // Boot Block (000000-0001FFh) not protected from Table Reads executed in other blocks
       
    
    
Include "GLCD.bas"
Include "FixedFont.bas"
Include "Arial.bas"
Include "Garamond.bas"
Include "Tahoma.bas"
Include "Verdana.bas"
Include "Times.bas"


 
GLCD.Cls

DelayMS(200)
	
GLCD.SetFont(Fixed)
GLCD.WriteAt(4,2,"System Font")
GLCD.SetFont(ArialBold)
GLCD.WriteAt(4,10,"Arial Font")
GLCD.SetFont(GaramondBold)
GLCD.WriteAt(4,20,"Garamond Font")
GLCD.SetFont(TahomaBold)
GLCD.WriteAt(4,30,"Tahoma Font")
GLCD.SetFont(VerdanaBold)
GLCD.WriteAt(4,40,"Verdana Font")
GLCD.SetFont(Times)
GLCD.WriteAt(4,50,"Times New Roman")
Running version 2.2.4.0 ICC 1.2.1.0
Regards CharlieM

Jerry Messina
Swordfish Developer
Posts: 1473
Joined: Fri Jan 30, 2009 6:27 pm
Location: US

Re: Unkown analog select map

Post by Jerry Messina » Sun Jun 25, 2023 4:34 pm

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 and copy/paste the contents of the '.file' section from the beginning of the file.

Jerry Messina
Swordfish Developer
Posts: 1473
Joined: Fri Jan 30, 2009 6:27 pm
Location: US

Re: Unkown analog select map

Post by Jerry Messina » Sun Jun 25, 2023 4:41 pm

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).

CharlieM
Registered User
Registered User
Posts: 211
Joined: Wed Oct 10, 2007 12:05 am

Re: Unkown analog select map

Post by CharlieM » Sun Jun 25, 2023 6:18 pm

Thanks Jerry,

I just moved everything in the user library and everything works as expected. Thanks again.
Running version 2.2.4.0 ICC 1.2.1.0
Regards CharlieM

Post Reply