Hi Freaks,
I am using a M328P and am using PORTB pins as output pins.
My code to set PORTB as output is very simple:
DDRC = 0x0F; DDRD = 0xC0; DDRB = 0xFF; PORTC = 0x00; PORTD = 0x00; PORTB = 0x01;
I am making PORTB0 high.
However when I measure the voltage on the PORTB0 when I turn on the power, I get 2.5V (about half of supply voltage).
All the other PORTB channels are working fine.
What could be the problem? Did I fry the chip?
Thanks.