Hi All,
I am using atmega644 with sanguino 1.01 , we met a problem when testing serial1. atmega644 would halt after calling "Serial1.println" several times and there also did't have anything output on USART1. anyone can help us?
// the setup routine runs once when you press reset:
void setup() {
Serial.begin(9600);
Serial.println("Starting...");
Serial1.begin(9600);
Serial1.println("Serial1 Starting...");
}
void loop() {
Serial.println("loop");
Serial1.println("loop1");
delay(1000);
}
Hi All,
I am using atmega644 with sanguino 1.01 , we met a problem when testing serial1. atmega644 would halt after calling "Serial1.println" several times and there also did't have anything output on USART1. anyone can help us?
// the setup routine runs once when you press reset:
void setup() {
Serial.begin(9600);
Serial.println("Starting...");
Serial1.begin(9600);
Serial1.println("Serial1 Starting...");
}
void loop() {
Serial.println("loop");
Serial1.println("loop1");
delay(1000);
}
retrolefty:
No the 644p does have two serial ports, the 644 just one.
I was counting the 'p' ones as a seperate series, but yeah the 644p has two.
catchup, do you have the Atmega644p or the atmega644?
(note that the 'p' is not the same as 'pu', for example there are AtMega644P-PU and AtMega644-PU).
Yes, I consider the fact that the 644 (one uart) and 644a (two uarts) have the same device signature to be a pretty big mistake on Atmel's part... Grr.
Take a look to the mapping if the ISR for the serial Port you wanna use. I have did some fixes in Arduino103 environment for m644,644p , 1284p to use the the serial port. The #defines of the
supportet ATMega variants are not complete in all purposes. Just extend them and add your MPU model to the right register definition.
Take a look to the compilers mapping file and compare the IRQ Vectors he mapped with the datasheet of the MPU you use.
catchup:
Hi All,
I am using atmega644 with sanguino 1.01 , we met a problem when testing serial1. atmega644 would halt after calling "Serial1.println" several times and there also did't have anything output on USART1. anyone can help us?
// the setup routine runs once when you press reset: