hi guys i m using pic18f2580 for my project , but here i m involved in annonying problem with portb as its pins<5:7> are not working any way, is there any hidden matter involved with this; my program is this
void main()
{
TRISB = 0X0; // Configure PORTB as output
for(; // Endless loop
{
LATB = 0; // Turn ON LED, portb also used in place of lat
Delay_ms(2000); // 2 second delay
LATB = 0XFF; // Turn OFF LED
Delay_ms(2000); // 2 second delay
}
}
other pins are working but last three are not, i have configure <0:4> as digital i/o on reset.my hardware is alright as i have checked.
void main()
{
TRISB = 0X0; // Configure PORTB as output
for(; // Endless loop
{
LATB = 0; // Turn ON LED, portb also used in place of lat
Delay_ms(2000); // 2 second delay
LATB = 0XFF; // Turn OFF LED
Delay_ms(2000); // 2 second delay
}
}
other pins are working but last three are not, i have configure <0:4> as digital i/o on reset.my hardware is alright as i have checked.