Divide by 1-32768 with 4 bits? (XMEGA event system)

Go To Last Post
5 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi to all,
There is a problem in XMEGA-A Datasheet(doc8077.pdf).
One of the possible settings for CHnMUX register is:

1000 M

Description of this setting in datasheet:

ClkPER divide by M(M=1 to 32768)

and there is nothing about this setting in Datasheet.How can a 4bit value makes divide up to 32768 and if there are only 16 values for division, what are the division factors?

Ozhan KD
Knowledge is POWER

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

M = 2^N, where N = 0..15.

Warning: Grumpy Old Chuff. Reading this post may severely damage your mental health.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thanks. that's right.
Datasheet must be modified to:
ClkPER divide by 2^M

Ozhan KD
Knowledge is POWER

Last Edited: Wed. Oct 6, 2010 - 11:49 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

See Figure 14.3 in XMegaA Manual.

Warning: Grumpy Old Chuff. Reading this post may severely damage your mental health.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

There are several mistakes in atmel datasheets and this was not the first case. For example, in Event system register description:

Table 6-3: Compare march --> Compare match
Table 6-3: ClkPER divide by M --> ClkPER divide by 2^M
Table 6-4: 101 TCxn_CCA --> 101 TCxn_CCB
Table 6-4: 110 TCxn_CCA --> 110 TCxn_CCC
Table 6-4: 111 TCxn_CCA --> 111 TCxn_CCD
...

Ozhan KD
Knowledge is POWER