Hi Vasi, With previous ADC lib versionb, it compiles, but no asm output for set_analog_pin() procedure is generated. What is possible is all pins become analog in your code, so at the end adc_read(4) does perform the job.
About dependent/independent pins, when you look at datasheet and see a table showing PCFG bits combination, it's dependent. Cheers, Seb > Hi, > > Now 18F2550/18F4550 have dependent adc pins? This code worked for me > before for 18F2550: > > include 18f2550 -- target PICmicro > pragma target clock 48_000_000 > include delay > -- > enable_digital_io() > alias led is pin_A0 > pin_A0_direction = output > > const bit ADC_HIGH_RESOLUTION = true > const byte ADC_NVREF = 0 > > include adc > adc_init() > set_analog_pin(4) > > var word measure > forever loop > measure = adc_read(4) > led = on > delay_1ms(measure) > led = off > delay_1ms(measure) > end loop > > -------- > Vasi > > On Oct 18, 1:28 am, "a.faber" <[email protected]> wrote: > > Hi Seb, > > The 18f4450 & 18f4450 and 18f4550 are OK now, while making the unit > test, I > > noticed that the 18f4458 does not work maybe you can check this one too. > > Albert > > > -- Sébastien Lelong http://www.sirloon.net http://sirbot.org --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "jallib" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/jallib?hl=en -~----------~----~----~----~------~----~------~--~---
