I'm using a ATMega328-PU. No boot loader.
void setup() {
Serial.begin(9600);
}
void loop() {
Serial.println("TEST");
delay(1000);
}
I've tried 2 TTL adapters and I'm getting this:
select(4, [0 3], NULL, NULL, NULL) = 1 (in [3])
read(3, "\0", 1024) = 1
write(1, "\0", 1) = 1
select(4, [0 3], NULL, NULL, NULL) = 1 (in [3])
read(3, "\0", 1024) = 1
write(1, "\0", 1) = 1
select(4, [0 3], NULL, NULL, NULL) = 1 (in [3])
read(3, "\0", 1024) = 1
write(1, "\0", 1) = 1
select(4, [0 3], NULL, NULL, NULL) = 1 (in [3])
read(3, "\0", 1024) = 1
write(1, "\0", 1) = 1
select(4, [0 3], NULL, NULL, NULL) = 1 (in [3])
read(3, "\0", 1024) = 1
write(1, "\0", 1)
FD 3 is the TTL adapter.
I am NOT using an external crystal.
I've added this to my code
#ifdef F_CPU
#undef F_CPU
#endif
#define F_CPU 8000000L
On this project I need serial communications so is the 16mHz crystal required?
Chris