CLOCK — Clock control

The CLOCK module provides one of the interfaces to power and clock management configuration settings.

Through CLOCK module it is able to configure the following:
  • LFCLK clock source setup
  • LFCLK and HFCLK status
  • Tasks and events
  • Interrupts
  • Reset
Note: Registers INTEN, INTENSET, and INTENCLR are the same registers (at the same address) as corresponding registers in POWER — Power control.

Registers

Instances

InstanceBase addressTrustZoneSplit accessDescription
MapAttDMA

CLOCK : S
CLOCK : NS

0x50005000
0x40005000

USNSNANo

Clock control

Register overview

RegisterOffsetTZDescription
TASKS_HFCLKSTART0x000

Start HFCLK source

TASKS_HFCLKSTOP0x004

Stop HFCLK source

TASKS_LFCLKSTART0x008

Start LFCLK source

TASKS_LFCLKSTOP0x00C

Stop LFCLK source

SUBSCRIBE_HFCLKSTART0x080

Subscribe configuration for task HFCLKSTART

SUBSCRIBE_HFCLKSTOP0x084

Subscribe configuration for task HFCLKSTOP

SUBSCRIBE_LFCLKSTART0x088

Subscribe configuration for task LFCLKSTART

SUBSCRIBE_LFCLKSTOP0x08C

Subscribe configuration for task LFCLKSTOP

EVENTS_HFCLKSTARTED0x100

HFCLK oscillator started

EVENTS_LFCLKSTARTED0x104

LFCLK started

PUBLISH_HFCLKSTARTED0x180

Publish configuration for event HFCLKSTARTED

PUBLISH_LFCLKSTARTED0x184

Publish configuration for event LFCLKSTARTED

INTEN0x300

Enable or disable interrupt

INTENSET0x304

Enable interrupt

INTENCLR0x308

Disable interrupt

INTPEND0x30C

Pending interrupts

HFCLKRUN0x408

Status indicating that HFCLKSTART task has been triggered

HFCLKSTAT0x40C

The register shows if HFXO has been requested by triggering HFCLKSTART task and if it has been started (STATE).

LFCLKRUN0x414

Status indicating that LFCLKSTART task has been triggered

LFCLKSTAT0x418

The register shows which LFCLK source has been requested (SRC) when triggering LFCLKSTART task and if the source has been started (STATE).

LFCLKSRCCOPY0x41C

Copy of LFCLKSRC register, set after LFCLKSTART task has been triggered

LFCLKSRC0x518

Clock source for the LFCLK. LFCLKSTART task starts a clock source selected with this register.

TASKS_HFCLKSTART

Address offset: 0x000

Start HFCLK source

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
A

W

TASKS_HFCLKSTART

Start HFCLK source

Trigger

1

Trigger task

TASKS_HFCLKSTOP

Address offset: 0x004

Stop HFCLK source

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
A

W

TASKS_HFCLKSTOP

Stop HFCLK source

Trigger

1

Trigger task

TASKS_LFCLKSTART

Address offset: 0x008

Start LFCLK source

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
A

W

TASKS_LFCLKSTART

Start LFCLK source

Trigger

1

Trigger task

TASKS_LFCLKSTOP

Address offset: 0x00C

Stop LFCLK source

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
A

W

TASKS_LFCLKSTOP

Stop LFCLK source

Trigger

1

Trigger task

SUBSCRIBE_HFCLKSTART

Address offset: 0x080

Subscribe configuration for task HFCLKSTART

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
A

RW

CHIDX

[0..255]

DPPI channel that task HFCLKSTART will subscribe to

B

RW

EN

Disabled

0

Disable subscription

Enabled

1

Enable subscription

SUBSCRIBE_HFCLKSTOP

Address offset: 0x084

Subscribe configuration for task HFCLKSTOP

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
A

RW

CHIDX

[0..255]

DPPI channel that task HFCLKSTOP will subscribe to

B

RW

EN

Disabled

0

Disable subscription

Enabled

1

Enable subscription

SUBSCRIBE_LFCLKSTART

Address offset: 0x088

Subscribe configuration for task LFCLKSTART

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
A

RW

CHIDX

[0..255]

DPPI channel that task LFCLKSTART will subscribe to

B

RW

EN

Disabled

0

Disable subscription

Enabled

1

Enable subscription

SUBSCRIBE_LFCLKSTOP

Address offset: 0x08C

Subscribe configuration for task LFCLKSTOP

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
A

RW

CHIDX

[0..255]

DPPI channel that task LFCLKSTOP will subscribe to

B

RW

EN

Disabled

0

Disable subscription

Enabled

1

Enable subscription

EVENTS_HFCLKSTARTED

Address offset: 0x100

HFCLK oscillator started

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
A

RW

EVENTS_HFCLKSTARTED

HFCLK oscillator started

NotGenerated

0

Event not generated

Generated

1

Event generated

EVENTS_LFCLKSTARTED

Address offset: 0x104

LFCLK started

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
A

RW

EVENTS_LFCLKSTARTED

LFCLK started

NotGenerated

0

Event not generated

Generated

1

Event generated

PUBLISH_HFCLKSTARTED

Address offset: 0x180

Publish configuration for event HFCLKSTARTED

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
A

RW

CHIDX

[0..255]

DPPI channel that event HFCLKSTARTED will publish to

B

RW

EN

Disabled

0

Disable publishing

Enabled

1

Enable publishing

PUBLISH_LFCLKSTARTED

Address offset: 0x184

Publish configuration for event LFCLKSTARTED

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
A

RW

CHIDX

[0..255]

DPPI channel that event LFCLKSTARTED will publish to

B

RW

EN

Disabled

0

Disable publishing

Enabled

1

Enable publishing

INTEN

Address offset: 0x300

Enable or disable interrupt

Bit number313029282726252423222120191817161514131211109876543210
IDBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
A

RW

HFCLKSTARTED

Enable or disable interrupt for event HFCLKSTARTED

Disabled

0

Disable

Enabled

1

Enable

B

RW

LFCLKSTARTED

Enable or disable interrupt for event LFCLKSTARTED

Disabled

0

Disable

Enabled

1

Enable

INTENSET

Address offset: 0x304

Enable interrupt

Bit number313029282726252423222120191817161514131211109876543210
IDBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
A

RW

HFCLKSTARTED

Write '1' to enable interrupt for event HFCLKSTARTED

Set

1

Enable

Disabled

0

Read: Disabled

Enabled

1

Read: Enabled

B

RW

LFCLKSTARTED

Write '1' to enable interrupt for event LFCLKSTARTED

Set

1

Enable

Disabled

0

Read: Disabled

Enabled

1

Read: Enabled

INTENCLR

Address offset: 0x308

Disable interrupt

Bit number313029282726252423222120191817161514131211109876543210
IDBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
A

RW

HFCLKSTARTED

Write '1' to disable interrupt for event HFCLKSTARTED

Clear

1

Disable

Disabled

0

Read: Disabled

Enabled

1

Read: Enabled

B

RW

LFCLKSTARTED

Write '1' to disable interrupt for event LFCLKSTARTED

Clear

1

Disable

Disabled

0

Read: Disabled

Enabled

1

Read: Enabled

INTPEND

Address offset: 0x30C

Pending interrupts

Bit number313029282726252423222120191817161514131211109876543210
IDBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
A

R

HFCLKSTARTED

Read pending status of interrupt for event HFCLKSTARTED

NotPending

0

Read: Not pending

Pending

1

Read: Pending

B

R

LFCLKSTARTED

Read pending status of interrupt for event LFCLKSTARTED

NotPending

0

Read: Not pending

Pending

1

Read: Pending

HFCLKRUN

Address offset: 0x408

Status indicating that HFCLKSTART task has been triggered

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
A

R

STATUS

HFCLKSTART task triggered or not

NotTriggered

0

Task not triggered

Triggered

1

Task triggered

HFCLKSTAT

Address offset: 0x40C

The register shows if HFXO has been requested by triggering HFCLKSTART task and if it has been started (STATE).

Bit number313029282726252423222120191817161514131211109876543210
IDBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
A

R

SRC

Active clock source

HFINT

0

HFINT - 64 MHz on-chip oscillator

HFXO

1

HFXO - 64 MHz clock derived from external 32 MHz crystal oscillator

B

R

STATE

HFCLK state

NotRunning

0

HFXO has not been started or HFCLKSTOP task has been triggered

Running

1

HFXO has been started (HFCLKSTARTED event has been generated)

LFCLKRUN

Address offset: 0x414

Status indicating that LFCLKSTART task has been triggered

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
A

R

STATUS

LFCLKSTART task triggered or not

NotTriggered

0

Task not triggered

Triggered

1

Task triggered

LFCLKSTAT

Address offset: 0x418

The register shows which LFCLK source has been requested (SRC) when triggering LFCLKSTART task and if the source has been started (STATE).

Bit number313029282726252423222120191817161514131211109876543210
IDBAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
A

R

SRC

Active clock source

RFU

0

Reserved for future use

LFRC

1

32.768 kHz RC oscillator

LFXO

2

32.768 kHz crystal oscillator

B

R

STATE

LFCLK state

NotRunning

0

Requested LFCLK source has not been started or LFCLKSTOP task has been triggered

Running

1

Requested LFCLK source has been started (LFCLKSTARTED event has been generated)

LFCLKSRCCOPY

Address offset: 0x41C

Copy of LFCLKSRC register, set after LFCLKSTART task has been triggered

Bit number313029282726252423222120191817161514131211109876543210
IDAA
Reset 0x0000000100000000000000000000000000000001
IDR/WFieldValue IDValueDescription
A

R

SRC

Clock source

RFU

0

Reserved for future use

LFRC

1

32.768 kHz RC oscillator

LFXO

2

32.768 kHz crystal oscillator

LFCLKSRC

Address offset: 0x518

Clock source for the LFCLK. LFCLKSTART task starts a clock source selected with this register.

Bit number313029282726252423222120191817161514131211109876543210
IDAA
Reset 0x0000000100000000000000000000000000000001
IDR/WFieldValue IDValueDescription
A

RW

SRC

Clock source

RFU

0

Reserved for future use (equals selecting LFRC)

LFRC

1

32.768 kHz RC oscillator

LFXO

2

32.768 kHz crystal oscillator