Gast
#885333
Hi all, I know it's a German forum so sorry for the English post. I'm in the learning period of German I can read it roughly but can't write. Now I'm using atmega128 to do a project. Before the uC worked totally okay, however from this week it just stops working. I dont know what went wrong so I used a simple method to check it, by which I attached a LED to the I/O port. My circuit is truely simple, connect the PORTB.1 with a 470ohm resistor and the longer end of the LED, the shorter end of the LED was connected to the GND. I use 5V Vcc and JTAGICE. my program is like this: .INCLUDE "m128def.inc" .CSEG .ORG 0x00 RJMP main main: ldi r16, low(ramend) out spl, r16 ldi r16, high(ramend) out sph, r16 repeat: ldi r16,0x01 out ddrb,r16 ldi r16,0x01 out portb,r16 jmp repeat After all the uC didnt work any more, I was wondering if the microcontroller is broken. So I checked the voltage between Vcc and GND, and it is okay. So now I'm in no where. Could anyone tell me how to check if the microcontroller is broken? Dank!