Wednesday, July 4, 2007

Harvard Architecture Lesson

AVR has Harvard architecture. The program and data memory are totally separate entities. However, pointers to program memory have the same type as pointers to data memory.

This solved my yesterdays mysterious printouts. I was passing "const char*" to a function that was expecting "const prog_char *".

No comments: