Dear laborratte,
can you show us some code how it work with external crystal?
An example for xmega32A4 with external 14.7456MHz crystal -> I need a cpu clock with 29.4912 MHz.
Because, i have no sample found (also not in "ATXMEGA - kleines einmal eins") and all my trying are failed.
In the help files from bascom are only prescaleA, BC for division!! What is with doubling (max. 16MHz external crystals are allowed)???
From Helpfile:
The Xmega has 3 prescalers. With PRESCALEBC you configure the clock division of the second and the third prescaler.
Possible values:
- 1_1 (1 + 1 division)
- 1_2 (1+2 division)
- 4_1 (4 + 1 division)
- 2_2 (2 + 2 division)
This 1_2 will make the second prescaler divide by 1 and the third prescaler divide by 2.
....
Thanks.
↧