Closed gfilios closed 9 years ago
Solved: It was the wrong F_CPU value.
Working with the ATMEGA328P it should be F_CPU = 1000000
Yup! You've gotta set the F_CPU to whatever speed your chip is running.
Later in the book, you'll find places where we run the chip at 8MHz, and you'll need to make sure F_CPU is set accordingly. (The Makefiles in my code repo should all work, btw.)
Hi,
I am working with your book and get stuck in chapter 5 "Serial I/O".
When wiring up the serialLoopBack example (code and breadboard) I receive only garbage on the computer side.
So i simplified the code, but still gets garbage. Unfortunately your book, does not give any suggestion in the case, something is received, but the received values are not what was expected.
Any ideas what might be wrong?
Here is the Code / Using a simple setup (just a FTDI Serial Connection):
ATMEL Code
Python Code
Unfortunately I can see, nor the character "c", nor any values incrementing: This is the Output:
what is missing in the implementation, or configuration? Where should I continue searching?