Hello,

The sddc headers are generated from Microchip assembly processor header
files (.inc).

Here is the source ( p18f45k50.inc ):

;----- ADCON0 Bits -----------------------------------------------------
ADON             EQU  H'0000'
GO_NOT_DONE      EQU  H'0001'

DONE             EQU  H'0001'

GO               EQU  H'0001'

NOT_DONE         EQU  H'0001'

another source ( p18f46k20.inc ):

;----- ADCON0 Bits -----------------------------------------------------
ADON             EQU  H'0000'
GO_NOT_DONE      EQU  H'0001'

DONE             EQU  H'0001'
CHS0             EQU  H'0002'
CHS1             EQU  H'0003'
CHS2             EQU  H'0004'
CHS3             EQU  H'0005'

NOT_DONE         EQU  H'0001'

GO_DONE          EQU  H'0001'

GO               EQU  H'0001'

I think Microchip missed the CHS bits from the .inc file and this is not
sdcc bug.

Regards,

  Zsolt

2017-07-13 10:01 GMT+02:00 Kustaa Nyholm <kustaa.nyh...@sparetimelabs.com>:

> Hi,
>
> ADCON0bits struct def seems to miss CHS bit field which is available for
> 18F4550 in pic18f4550.h
>
> Also CHS0..CHS3 are missing.
>
> Further pic18f4550.h defines GO_NOT_DONE, GO, NOT_DONE and DONE fields for
> ADCON0, last
> of which seems wrong because the bit  meaning is "go/not done" so DONE
> does not make sense.
>
> Where do these definitions come from, do they have Microchip origins or is
> this just
> a regular typo/bug in SDCC?
>
> Should I file a bug report?
>
> I'm using sdcc 3.4.0
>
> wbr Kusti
>
>
>
>
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Sdcc-user mailing list
> Sdcc-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/sdcc-user
>



-- 
~~~~~~~~~~~~~~~~
http://galzsolt.zzl.org
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to