Go Down

Topic: dsadsadada (Read 465 times) previous topic - next topic

senioriceman

Dec 16, 2016, 08:49 pm Last Edit: Mar 19, 2017, 08:12 pm by senioriceman
sadadasdad

weird_dave

LDRA and LDRB just tell the hardware when to load the counter value into RA and RB. This is all about time measurement, which may or may not be used for PWM.

Page 868 shows RA, RB and RC used in PWM
http://www.atmel.com/ru/ru/Images/Atmel-11057-32-bit-Cortex-M3-Microcontroller-SAM3X-SAM3A_Datasheet.pdf

This is the first time I've looked at the timer registers, so please forgive me if I've made a mistake :)

Rufe0

They have uses in capture mode where your timing an external signal of some sort.

weird_dave

If you look at page 868, you will see that RC is the timer loop count (timer range) and RA and RB can be used to time 2 separate events on the same timer

Rufe0

Hi Rufe0,

Is it like measuring the high time of a input signal to the pin.
You can do that yes aswell as the time between pulses and other things. It's all explained in the manual

http://www.atmel.com/ru/ru/Images/Atmel-11057-32-bit-Cortex-M3-Microcontroller-SAM3X-SAM3A_Datasheet.pdf

Page 856 onwards, it is abit to take in all at once but once you've read it a few times and used it in programs, you will understand it.

Go Up