Thanks for the reply i will give it a try when going home,
i know adcon can give unexpected behavior sometimes, but i did'nt know it can simply avoid you pic to run a simple blink led.
Thanks for the reply i will give it a try when going home,
i know adcon can give unexpected behavior sometimes, but i did'nt know it can simply avoid you pic to run a simple blink led.
if the pin the LED is on is also an AD pin, then yes it will stop it if that pin is configured for analog use.
Also, there is a problem in your code if you want the LED to blink. HIGH PORTA.1 will put port A, pin 1 high and LOW PORTA.0 will put port A, pin 0 low and thats where they will stay. Nothing will blink.
"I think fish is nice, but then I think that rain is wet, so who am I to judge?" - Douglas Adams
my mistake in the code i typed over, i tried with pins on almost every port.
B, H, A with the same result always. Not blinking. Therefore i have doubts over the device, how can i troubleshoot this ...
Hard to say without more information like the entire code, config settings and hardware setup. Are you using an external OSC?
"I think fish is nice, but then I think that rain is wet, so who am I to judge?" - Douglas Adams
This pic is on a card with an osc onboard of 6mhz supposed to be ran on 24mhz thanks to hsppl.
Here is a pdf of the card, (it's in thai) but the last 2 pages are the wiring diagrams.
http://www.steitec.net/media/product...1249723519.pdf
Can you post your code and config settings.
"I think fish is nice, but then I think that rain is wet, so who am I to judge?" - Douglas Adams
Came back home and done it over again, played a bit with the config bits and it started to blink with and without adcon, one config bit i have removed was LVP .... that should not interfere execution.;.. but ok it works now thanks for the support.
Bookmarks