OLIMEX PA28 serial port

Has anyone gotten basic-out.c to work on a Olimex 28? Or Any serial port communication for that matter.

I’m using AVR Studio and the Kanda plugin. Through the plug in I set the fuses to:

Device clock: 1110

SUT: SUT0 Programmed is checked

Changes made to basic-out.c

//#define FOSC 16000000

#define FOSC 8000000

#define BAUD 9600

//#define MYUBRR FOSC/16/BAUD-1

#define MYUBRR FOSC/8/BAUD-1

Thanks

Ben

The 16 in #define MYUBRR FOSC/16/BAUD-1 has nothing to do with the oscillator frequency…

Also, depending on your processor, watch out for the CLKDIV8 fuse. If set, your oscillator will be divided by 8 giving a real FOSC of 1000000

/mike