Hi again,
Here is a piece of code:
Provided that:
- A0 to A3 are pulled down (10k res.)
Then:
A0 and A1 work well has digital inputs BUT
When I put a0 high (shunt to +5V) I get:
BOOTING UP
ADC6 255
ADC7 255
ADC5 155
ADC6 255
ADC7 255
pin0
ADC5 255
ADC6 255
ADC7 255
pin0
ADC5 255
ADC6 255
ADC7 255
pin0
ADC5 158
ADC6 17
ADC7 22
similar thing to a1, only instead of "pin0" I get pin1 plus the ADC noise
Now when I punt A2 or A3 high I get:
„3íc ä¿£cÿC4h€þ255
ADC6€ÿa_G“øÃ4°gñÄ¿e˃šÐÍ255
ADC6 59
ADC7 54
ADC5 10
Ãt*gñÄ¿™£øƒ4*iñÄ¿eeŒðADC6 255
ADC7 d?i˃t°iù2i¥¬ ƒ4°lñÄ¿ee¦üADC7 ä¿ceŒðƒ4*iñÄ¿eeŒàƒ4°lñÄ¿eeŒðÃt°gñÄ¿eˇt°i€þÄ¿eeŒð‡4°lñÄ¿eeŒðƒ4*gñÄ¿eˇ4°iñÄ¿eeŒð‡4*lñÄ¿eeŒàƒ4*gñÄ¿eˇ4*iñÄ¿eeŒðƒ4*lñÄ¿eeŒðƒt°gñÄ¿e˃4*iñÄ¿eeŒð‡´h3ä255
ADC7 211
ADC5 101
ADC7 17
YES, lots of garbage and with NO REBOOT of the PIC (note that the text
"BOOTING UP" doesn't appear )
Any thoughts?
Thanks,
Pimenta
Here is a piece of code:
Code:
#picaxe 40X1
sertxd ("BOOTING UP",cr,lf)
main:
if porta pin0 = 1 then
sertxd("pin0",cr,lf)
endif
if porta pin1 = 1 then
sertxd("pin1",cr,lf)
endif
readadc 5, b0
if b0 > 0 then
sertxd("ADC5 ",#b0,cr,lf)
endif
readadc 6, b0
if b0 > 0 then
sertxd("ADC6 ",#b0,cr,lf)
endif
readadc 7, b0
if b0 > 0 then
sertxd("ADC7 ",#b0,cr,lf)
endif
goto main
- A0 to A3 are pulled down (10k res.)
Then:
A0 and A1 work well has digital inputs BUT
When I put a0 high (shunt to +5V) I get:
BOOTING UP
ADC6 255
ADC7 255
ADC5 155
ADC6 255
ADC7 255
pin0
ADC5 255
ADC6 255
ADC7 255
pin0
ADC5 255
ADC6 255
ADC7 255
pin0
ADC5 158
ADC6 17
ADC7 22
similar thing to a1, only instead of "pin0" I get pin1 plus the ADC noise
Now when I punt A2 or A3 high I get:
„3íc ä¿£cÿC4h€þ255
ADC6€ÿa_G“øÃ4°gñÄ¿e˃šÐÍ255
ADC6 59
ADC7 54
ADC5 10
Ãt*gñÄ¿™£øƒ4*iñÄ¿eeŒðADC6 255
ADC7 d?i˃t°iù2i¥¬ ƒ4°lñÄ¿ee¦üADC7 ä¿ceŒðƒ4*iñÄ¿eeŒàƒ4°lñÄ¿eeŒðÃt°gñÄ¿eˇt°i€þÄ¿eeŒð‡4°lñÄ¿eeŒðƒ4*gñÄ¿eˇ4°iñÄ¿eeŒð‡4*lñÄ¿eeŒàƒ4*gñÄ¿eˇ4*iñÄ¿eeŒðƒ4*lñÄ¿eeŒðƒt°gñÄ¿e˃4*iñÄ¿eeŒð‡´h3ä255
ADC7 211
ADC5 101
ADC7 17
YES, lots of garbage and with NO REBOOT of the PIC (note that the text
"BOOTING UP" doesn't appear )
Any thoughts?
Thanks,
Pimenta