28x2 readadc problem

jincamty

New Member
Hi Guys.

I must be missing something fundamental, haven't used a Picaxe for a few years.
28x2 chip

readadc a.1,bo (or any adc input and any memory location)

I can only get a reading of 1-15 not 0 - 255
Center pin of POT swings from 0 - 5v

never had this type of problem with other chips.

Please help
Cheers Cam.
 

techElder

Well-known member
First, it matters that you have it all wired up correctly. That's something that we can't see from your post.

Second, " readadc a.1,bo " looks like "bo" is not "b0" ... "b" zero.

Perhaps post a schematic?
 

hippy

Technical Support
Staff member
Are you actually reading the correct ADC pin ?

Could you be using a SYMBOL definition for the ADC channel but have used a pin name rather than an ADC channel number in that SYMBOL ?

Perhaps post your code as well as your schematic.
 
Top