Техническая Спецификация для Atmel Xplained Pro Evaluation Kit ATSAMD20-XPRO ATSAMD20-XPRO

Модели
ATSAMD20-XPRO
Скачать
Страница из 660
309
Atmel | SMART SAM D20 [DATASHEET]
Atmel-42129K–SAM-D20_datasheet–06/2014
1.1. The user to connect the channel is written to the User bit group (USER.USER)
2.
Configure the channel by performing a single 32-bit write to the Channel (
) register with:
6.2.
The channel to be configured is written to the Channel Selection bit group 
(CHANNEL.CHANNEL)
2.1. The path to be used is written to the Path Selection bit group (CHANNEL.PATH)
2.2. The type of edge detection to use on the channel is written to the Edge Selection bit group 
(CHANNEL.EDGSEL)
2.3. The event generator to be used is written to the Event Generator bit group (CHANNEL.EVGEN)
22.6.2.2  Enabling, Disabling and Resetting
The EVSYS is always enabled.
The EVSYS is reset by writing a one to the Software Reset bit in the Control register (CTRL.SWRST). All registers in the 
EVSYS will be reset to their initial state. Refer to the 
 register for details.
22.6.2.3  User Multiplexer Setup
Each user multiplexer is dedicated to one event user. A user multiplexer receives all event channel outputs and must be 
configured to select one of these channels. The user must always be configured before the channel is configured. A full 
list of selectable users can be found in the User Multiplexer register (
 for details.
To configure a user multiplexer, the USER register must be written in a single 16-bit write.
It is possible to read out the configuration of a user by first selecting the user by writing to USER.USER using an 8-bit 
write and then performing a read of the USER register.
Figure 22-2. User MUX
22.6.2.4  Channel Setup
The channel to be used with an event user must be configured with an event generator. The path of the channel should 
be configured, and when using a synchronous path or resynchronized path, the edge selection should be configured. All 
these configurations are available in the Channel register (
USER 
MUX
PERIPHERAL A
PERIPHERAL B
USER.CHANNEL
USER_EVT_x
USER_EVT_y
USER_EVT_z
CHANNEL_EVT_0
CHANNEL_EVT_1
CHANNEL_EVT_m