User`s guide

32
Bit(s) Name Description
43 Reserved
2 C3TRIPE C3TRIP Enable:
1 C2TRIPE C2TRIP Enable:
COMCONA contains settings for the PWM – something that is essential in motor control for
example. The PWM has only been covered very briefly in this report; there is a great
introduction and loads of information regarding both dynamics and general operation in the
Event Manager Reference Guide.
Next up is the compare action control register, ACTRA. Again, this is a register essential to
the PWM and it was mentioned earlier in chapter A.3.4.
ACTRA as seen in the Event Manager Reference Guide
Bit(s) Name Description
15 CAPRES Capture reset. Always reads zero.
1413 CAP12EN Captures 1 and 2 Enable:
12 CAP3EN Capture 3 Enable:
11 Reserved Reads return zero; writes have no effect.
10 CAP3TSEL GP timer selection for capture unit 3.
9 CAP12TSEL GP timer selection for capture units 1 and 2.
8 CAP3TOADC Capture unit 3 event starts ADC.
76 CAP1EDGE Edge detection control for Capture Unit 1.
54 CAP2EDGE Edge detection control for Capture Unit 2.
32 CAP3EDGE Edge detection control for Capture Unit 3.
10 Reserved Reads return zero; writes have no effect.
While most of the registers deal with event managers and PWM – some are related to the
ADC-inputs instead. For a complete reference of these registers – consult the Analog-to-
Digital Converter Reference Guide. Let’s take a look at one of the ADC control registers,
ADCTRL1: