PIC not powering up.

Thread Starter

saifmalik87

Joined Apr 15, 2013
3
Hi guys!

I am using Proteus 7.6 and used PIC18F45K20. All connections are correct and also coding is correct but still LEDs don't get power. Is there something wrong with hidden power pins or do I need to configure them?Can anyone help?

Thanks
Saif
 

Thread Starter

saifmalik87

Joined Apr 15, 2013
3
Thank you.
Main code in MikroC Pro:
void main() {
TRISD=0;
LATD=0;
while(1)
{
LATB=~LATB;
Delay_us(1000);
}

}
I fixed the problem. I was using PORT D in hardware but in code it was B.
:)
 
Top