Peripheral Channel Control
PCHTRLm controls the settings of Peripheral Channel number m (m=0..28).
Name:
PCHCTRLmn
Offset:
0x80 + n*0x04 [n=0..28]
Reset:
0x00000000
Access:
PAC Write-Protection
Bit3130292827262524
Access
Reset
Bit2322212019181716
Access
Reset
Bit15141312111098
Access
Reset
Bit76543210
WRTLOCKCHENGEN[3:0]
AccessR/WR/WR/WR/WR/WR/W
Reset000000

Bit 7 – WRTLOCK: Write Lock

Write Lock

After this bit is set to '1', further writes to the PCHCTRLm register will be discarded. The control register of the corresponding Generator n (GENCTRLn), as assigned in PCHCTRLm.GEN, will also be locked. It can only be unlocked by a Power Reset.

Note that Generator 0 cannot be locked.

ValueDescription
0 The Peripheral Channel register and the associated Generator register are not locked
1 The Peripheral Channel register and the associated Generator register are locked

Bit 6 – CHEN: Channel Enable

Channel Enable

This bit is used to enable and disable a Peripheral Channel.

ValueDescription
0 The Peripheral Channel is disabled
1 The Peripheral Channel is enabled

Bits 3:0 – GEN[3:0]: Generator Selection

Generator Selection

This bit field selects the Generator to be used as the source of a peripheral clock, as shown in the table below:

Table 1. Generator Selection
Value Description
0x0 Generic Clock Generator 0
0x1 Generic Clock Generator 1
0x2 Generic Clock Generator 2
0x3 Generic Clock Generator 3
0x4 Generic Clock Generator 4
0x5 Generic Clock Generator 5
0x6 Generic Clock Generator 6
0x7 Generic Clock Generator 7
0x8 Generic Clock Generator 8
0x9 - 0xF Reserved
Table 2. Reset Value after a User Reset or a Power Reset
Reset PCHCTRLm.GEN PCHCTRLm.CHEN PCHCTRLm.WRTLOCK
Power Reset 0x0 0x0 0x0
User Reset

If WRTLOCK = 0
: 0x0

If WRTLOCK = 1: no change

If WRTLOCK = 0
: 0x0

If WRTLOCK = 1: no change

No change

A Power Reset will reset all the PCHCTRLm registers.

A User Reset will reset a PCHCTRL if WRTLOCK=0, or else, the content of that PCHCTRL remains unchanged.

PCHCTRL register Reset values are shown in the table PCHCTRLm Mapping.