Could you please give me some sort of hint as to why the following does not work:
#define FOSC 4000000L #define BAUDRATE 19200L #define BAUDCOUNT (FOSC/(BAUDRATE*16) - 1)
(results in -195 being loaded into registers), but this does:
#define FOSC 4000000L #define BAUDCOUNT (FOSC/(307200) - 1)
I'm using the latest version of WinAVR.
I would have thought that they were identical!