gne_577
Junior Member level 3
Hello
I made a development board using pic18f85j11. It works fine as i check the port by glowing LED connected in sink pattern. I connected all the LED on H port.According to thuMb rule its code should be
But It didnt works in this manner as i mentioned as i written above code.
It just follows the
TRISH=0x00;
or
TRISH=0xFF;
it didn't follow the LATH command.
At the output i didn't connect any pull up if require then what should be its value..??
My circuit works on 5V
Controller on 3.3V
and Driving resistance for led is 330ohm for glow.
All Leds are connected in Sink operation.
Thank you
I made a development board using pic18f85j11. It works fine as i check the port by glowing LED connected in sink pattern. I connected all the LED on H port.According to thuMb rule its code should be
Code C - [expand] 1 2 3 4 5 6 7 8 9 10 11 12 13 void main () { ADCON1=0XFF; \\ analog converted into digital TRISH = 0X00; DELAY(50); while(1) { LATH = 0X00; DELAY(50); LATH = 0XFF; DELAY(50); }
But It didnt works in this manner as i mentioned as i written above code.
It just follows the
TRISH=0x00;
or
TRISH=0xFF;
it didn't follow the LATH command.
At the output i didn't connect any pull up if require then what should be its value..??
My circuit works on 5V
Controller on 3.3V
and Driving resistance for led is 330ohm for glow.
All Leds are connected in Sink operation.
Thank you
Last edited by a moderator: