UDR0 register on ATMega8

General discussion on mikroPascal for AVR.
Post Reply
Author
Message
Erki
Posts: 9
Joined: 04 Jul 2007 09:38
Location: Estonia

UDR0 register on ATMega8

#1 Post by Erki » 18 Sep 2007 06:13

Hello. I wanted to use atmega168 code on atmega8. So I changed all register names, that compiler reported as undeclared. But it didn't give error on UDR0 register.

It wasted all my day to figure out, that Rx interrupts were retriggering because I read UDR0 instead of UDR.

The compiler should report error, as there is no UDR0 register in atmega8

majdak
mikroElektronika team
Posts: 28
Joined: 28 Jun 2007 09:40

#2 Post by majdak » 18 Sep 2007 09:41

We will consider this error. Thank you for your report and contribution to bugs tracking and compilers improving.

Post Reply

Return to “mikroPascal for AVR General”