ismbn
Full Member level 3
- Joined
- Feb 11, 2012
- Messages
- 160
- Helped
- 4
- Reputation
- 8
- Reaction score
- 4
- Trophy points
- 1,308
- Location
- Mumbai. india
- Activity points
- 2,444
Hi all...
I am using ATmega32. I have done this coding
and burned (using USBasp for burning)it with Fuse setting for external ceramic resonator...
LOW Fuse = 0xCE;
HIGH Fuse = 0xC9;
But i am getting the correct communication on 600 Baud rate not on 9600 Baud rate...
I not understanding where i am wrong... please help me...
I have checked the same hardware before 3-4 week, It was working fine....
Please Help Its Urgent
Ismail
I am using ATmega32. I have done this coding
Code:
int main(void)
{
uart_init(103); // set 9600 baud rate
DDRA=0xFF;
DDRB=0xFF;
DDRC=0xFF;
while(1)
{
PORTA=PORTB=PORTC=0xFF;
_delay_ms(100);
PORTA=PORTB=PORTC=0x00;
_delay_ms(100);
print('A'); // send 'A' via usart
}
}
and burned (using USBasp for burning)it with Fuse setting for external ceramic resonator...
LOW Fuse = 0xCE;
HIGH Fuse = 0xC9;
But i am getting the correct communication on 600 Baud rate not on 9600 Baud rate...
I not understanding where i am wrong... please help me...
I have checked the same hardware before 3-4 week, It was working fine....
Please Help Its Urgent
Ismail