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
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to