(Better subscribe to the list, you might miss replies otherwise.) Leiu <tvhoa...@gmail.com> wrote:
> Thanks all, But i can't find bug, Here is my full code > Result : i can show 'A'! why? Because you're using hyperterm? I've compiled this for an ATmega16, set it up on an STK500, and connected it to my terminal emulator: ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOP... I assume this is what you'd like to see, isn't it? Note that after printing the 'Z', it pauses for one "tick", which matches your code (the ISR only resets "first_edge" to 'A' then, but doesn't print out anything). -- cheers, J"org .-.-. --... ...-- -.. . DL8DTL http://www.sax.de/~joerg/ NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-) _______________________________________________ AVR-GCC-list mailing list AVR-GCC-list@nongnu.org http://lists.nongnu.org/mailman/listinfo/avr-gcc-list