Hi Rob, Vasile The modified adc lib of ROB gives the same result and error as mine. The adc lib no longer gives errors but now the adc_clock lib gives 1 error, see below :
jal jalv25r5 (compiled Apr 3 2021) generating p-code 1002 tokens, 426017 chars; 8421 lines; 11 traffic jams generating PIC code pass 1 generating PIC code pass 2 63 branches checked, 0 errors 312 data accesses checked, 0 errors 44 skips checked, 0 errors writing result C:\JALLIB~2\lib/adc_clock.jal:156: "Found unsupported value for constant ADC_ADCS_BITCOUNT" 1 errors, 0 warnings For the adc test program i use 16f876a_adc.jal from the sample programs, with of course the right fuses for the used 16f18857 Perhaps Vasile is right that this series of PICs needs its own library. I also take a closer look into the problem . Thanks for your effort. Kinds regards Bill. On Friday, June 18, 2021 at 1:09:35 PM UTC+2 [email protected] wrote: > Hi Bill, > > I added an alias to cover with the difference but could not test it. > > It then compiles without errors so I do not know where your other error > message comes from. Can you clarify that? > > I attached the updated library with the alias. Let me know if it works (or > the problems you encouter). > > Thanks. > > Kind regards, > > Rob > > ------------------------------ > *Van:* [email protected] <[email protected]> namens Bill Beek > <[email protected]> > *Verzonden:* donderdag 17 juni 2021 15:56 > *Aan:* jallib <[email protected]> > *Onderwerp:* [jallib] ADC library > > Hello all, > > When I tried to do a test with analog input on the 16F18857 I found that > the library adc.jal gave 7 errors. In particular, the "adcon0_chs" was not > recognized. The lib of the 16F18857 does recognize it the "adcon0_adcs" . It > seems that some newer MCU's have this problem as well. After a change of > the adc lib a new error occurred, > _error "Found unsupported value for constant ADC_ADCS_BITCOUNT". > Does anyone else have experience with this event or know a solution? > Thanks, Bill > > -- > You received this message because you are subscribed to the Google Groups > "jallib" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jallib/5305520a-4b61-4eba-9e93-0c07e34786d6n%40googlegroups.com > > <https://groups.google.com/d/msgid/jallib/5305520a-4b61-4eba-9e93-0c07e34786d6n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "jallib" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jallib/c0832bf5-eb7f-4fe5-8090-4b7d961d17d2n%40googlegroups.com.
