Yes, I've read AVR100.
I just STILL don't get it!
(Xmega64a4u/ studio 6,2)
Need to get the clock out of pin 4 of Port C because I think I've blown Pin 7....
This seems logical - using what's offerd to me as I type in Atmel Studio suggests what I reckon should work - except the last one PORTCFG_CLKOUT_PC_gc, I made that up following the logic... or otherwise....
I got all these from pp 154-155 of the AU-Manual, and searching iox64a4u.h
/PORTCFG_CLKEVOUT = (PORTCFG_CLKOUTSEL_CLK1X_gc | PORTCFG_CLKEVPIN_PIN4_gc | PORTCFG_CLKOUTSEL_CLK2X_gc | PORTCFG_CLKOUT_PC_gc);
But it throws out PORTCFG_CLKEVPIN_PIN4_gc
PORTCFG_CLKEVOUT = (0x81);
works fine - clock appears on my freq. counter on Pin 4 (Why am I typing all that crap, anyway?...).
However, in an attempt to be 'proper' I tried the lengthy way first.
My includes are:
#include <avr/io.h> ( in iox64a4u.h, it makes sense)
What have I missed???