dsk2858
Member level 2
- Joined
- Aug 17, 2011
- Messages
- 47
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,286
- Location
- Chennai,India
- Activity points
- 1,683
Hi ,
I am using ATmega32A MCU and AVR Studio-4 .written a assembly program to glow the leds connected in PORTD.
I simulated it using AVR Studios-4 simulator ,its executing exactly as the program.
Then i burned the generated .hex file in to the ATmega32A it was no getting executing.
I tested the MCU it is fine by writing the same code using C-Language .
Help me to solve the problem.
thank u
I am using ATmega32A MCU and AVR Studio-4 .written a assembly program to glow the leds connected in PORTD.
I simulated it using AVR Studios-4 simulator ,its executing exactly as the program.
Code:
[COLOR="#FF0000"].INCLUDE "M32DEF.INC"
.ORG 0x0000
RJMP MAIN
MAIN: LDI R16,$FF
LDI R17,$00
OUT DDRD,R16
OUT PORTD,R17
END: RJMP END[/COLOR]
Then i burned the generated .hex file in to the ATmega32A it was no getting executing.
I tested the MCU it is fine by writing the same code using C-Language .
Code:
[COLOR="#FF0000"]#include<avr/io.h>
main()
{
DDRD=0XFF;
PORTD=0X00;
}[/COLOR]
Help me to solve the problem.
thank u