[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[avr-gcc-list] atmega32 problems
From: |
Jamie Morken |
Subject: |
[avr-gcc-list] atmega32 problems |
Date: |
Sun, 24 Aug 2003 21:33:39 -0700 |
Hi,
I am getting strange outputs from my atmega32 (5Volt 40pin dip version).
The below code should set all portc pins to 5Volts but one of the portc pins
is floating around 1.2volts and another portc pin stays at about 4.5volts.
Am I missing something or is the chip most likely damaged? (time for
another digikey order doh!)
cheers,
Jamie Morken
here is the code:
int main(void)
{
UART_Init();
PRINT("atmega32 test\r\n");
sbi(DDRC, PC7);
sbi(DDRC, PC6);
sbi(DDRC, PC5);
sbi(DDRC, PC4);
sbi(DDRC, PC3);
sbi(DDRC, PC2);
sbi(DDRC, PC1);
sbi(DDRC, PC0);
sbi(PORTC, PC7);
sbi(PORTC, PC6);
sbi(PORTC, PC5);
sbi(PORTC, PC4);
sbi(PORTC, PC3);
sbi(PORTC, PC2);
sbi(PORTC, PC1);
sbi(PORTC, PC0);
while(1)
{
PRINT("test\r\n");
}
} //end of main
- [avr-gcc-list] atmega32 problems,
Jamie Morken <=