hello thanks your help , i have found the question on github.
portb.0 is an4 use
ADCIN 4, adval ' Read channel 0 to adval
and set adcon1 to %00010000
there is no need to use tris to set the pin to an input just use adcon1 to make it analogue
Thank you and my wish is to set port B.0 to be the analog input (pin 8). I was not planning on using any of the A ports except for the resonator.
Well I mentionned pins in my post and I was first to reply so I'm taking credit for solving this. :D
All this talk of Assembler makes me wish I had kept it fresh. Unfortunately I worked in COBOL and graduation dates back to 1984. I dabbled in various BASICs over the years but that was it.
It took me two days to figure out :)
when connecting to BS2, I was reversing the pins, so pinout in code was correct for that code only. Everything works just fine, thanks!
The resistor influences the TPOUT+/-
signal amplitude.Read the Data sheet 19.1.4 it tells there.
WDT timer "resets" PIC to code beginning. Put clear right after you declare your variables so they exist as a ram location, and they should clear, better you should simply zero them in code...
There is a decompiler for Windows. Its called IDA. It costs a skrillion Deutsche Marks. It will disassemble a PIC executable (but not of course decompile - to do that it needs to know about the...
Try setting your TRIS register.
There is no content in this section