Pages: [1]   Go Down
Author Topic: TC and PWM  (Read 553 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 12
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I have two questions about atmel SAM3X data sheet.
1) TC
I found the description follows, 37.6.2 32-bit Counter, " When the counter has reached the value 0xFFFF and passes to 0x0000". This must be 0xFFFFFFFF and 0x00000000. Am I right ?
2) PWM
These registers,"PWM_CDTYx PWM_CPRDx PWM_CCNTx", are figured as follows, bit23 throught bit16 seems not to be zero. But I read "Only the first 16 bits channel counter size) are significant.". First 16bits means bit15 through bit 0 ?

thanks
Logged

Canada
Offline Offline
Newbie
*
Karma: 0
Posts: 17
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

1) I can confirm that the TC counter is in fact 32bit so the data sheet must be a typo.

2) I'm not totally sure about those registers but I am pretty sure the sam3x registers start at the LSB so the "first" 16 bits should be numbers 0 through 15
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 12
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thank you, drm0hr.

I actually checked PWM on Due.
From bit31 to bit16 of PWM_CPRDx and PWM_CCNTx are ignored. It were always zero.

I hope ATMEL shows typo summary of SAM3X data sheet.
Logged

Pages: [1]   Go Up
Jump to: