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
USNSNANoClock control

Register overview

RegisterOffsetTZDescription
TASKS_HFCLKSTART0x000Start HFCLK source
TASKS_HFCLKSTOP0x004Stop HFCLK source
TASKS_LFCLKSTART0x008Start LFCLK source
TASKS_LFCLKSTOP0x00CStop LFCLK source
SUBSCRIBE_HFCLKSTART0x080Subscribe configuration for task HFCLKSTART
SUBSCRIBE_HFCLKSTOP0x084Subscribe configuration for task HFCLKSTOP
SUBSCRIBE_LFCLKSTART0x088Subscribe configuration for task LFCLKSTART
SUBSCRIBE_LFCLKSTOP0x08CSubscribe configuration for task LFCLKSTOP
EVENTS_HFCLKSTARTED0x100HFCLK oscillator started
EVENTS_LFCLKSTARTED0x104LFCLK started
PUBLISH_HFCLKSTARTED0x180Publish configuration for event HFCLKSTARTED
PUBLISH_LFCLKSTARTED0x184Publish configuration for event LFCLKSTARTED
INTEN0x300Enable or disable interrupt
INTENSET0x304Enable interrupt
INTENCLR0x308Disable interrupt
INTPEND0x30CPending interrupts
HFCLKRUN0x408Status indicating that HFCLKSTART task has been triggered
HFCLKSTAT0x40CThe register shows if HFXO has been requested by triggering HFCLKSTART task and if it has been started (STATE).
LFCLKRUN0x414Status indicating that LFCLKSTART task has been triggered
LFCLKSTAT0x418The register shows which LFCLK source has been requested (SRC) when triggering LFCLKSTART task and if the source has been started (STATE).
LFCLKSRCCOPY0x41CCopy of LFCLKSRC register, set after LFCLKSTART task has been triggered
LFCLKSRC0x518Clock 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
AWTASKS_HFCLKSTARTStart HFCLK source
Trigger1Trigger task

TASKS_HFCLKSTOP

Address offset: 0x004

Stop HFCLK source

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
AWTASKS_HFCLKSTOPStop HFCLK source
Trigger1Trigger task

TASKS_LFCLKSTART

Address offset: 0x008

Start LFCLK source

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
AWTASKS_LFCLKSTARTStart LFCLK source
Trigger1Trigger task

TASKS_LFCLKSTOP

Address offset: 0x00C

Stop LFCLK source

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
AWTASKS_LFCLKSTOPStop LFCLK source
Trigger1Trigger task

SUBSCRIBE_HFCLKSTART

Address offset: 0x080

Subscribe configuration for task HFCLKSTART

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWCHIDX[0..255]DPPI channel that task HFCLKSTART will subscribe to
BRWEN
Disabled0Disable subscription
Enabled1Enable subscription

SUBSCRIBE_HFCLKSTOP

Address offset: 0x084

Subscribe configuration for task HFCLKSTOP

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWCHIDX[0..255]DPPI channel that task HFCLKSTOP will subscribe to
BRWEN
Disabled0Disable subscription
Enabled1Enable subscription

SUBSCRIBE_LFCLKSTART

Address offset: 0x088

Subscribe configuration for task LFCLKSTART

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWCHIDX[0..255]DPPI channel that task LFCLKSTART will subscribe to
BRWEN
Disabled0Disable subscription
Enabled1Enable subscription

SUBSCRIBE_LFCLKSTOP

Address offset: 0x08C

Subscribe configuration for task LFCLKSTOP

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWCHIDX[0..255]DPPI channel that task LFCLKSTOP will subscribe to
BRWEN
Disabled0Disable subscription
Enabled1Enable subscription

EVENTS_HFCLKSTARTED

Address offset: 0x100

HFCLK oscillator started

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWEVENTS_HFCLKSTARTEDHFCLK oscillator started
NotGenerated0Event not generated
Generated1Event generated

EVENTS_LFCLKSTARTED

Address offset: 0x104

LFCLK started

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWEVENTS_LFCLKSTARTEDLFCLK started
NotGenerated0Event not generated
Generated1Event generated

PUBLISH_HFCLKSTARTED

Address offset: 0x180

Publish configuration for event HFCLKSTARTED

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWCHIDX[0..255]DPPI channel that event HFCLKSTARTED will publish to
BRWEN
Disabled0Disable publishing
Enabled1Enable publishing

PUBLISH_LFCLKSTARTED

Address offset: 0x184

Publish configuration for event LFCLKSTARTED

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWCHIDX[0..255]DPPI channel that event LFCLKSTARTED will publish to
BRWEN
Disabled0Disable publishing
Enabled1Enable publishing

INTEN

Address offset: 0x300

Enable or disable interrupt

Bit number313029282726252423222120191817161514131211109876543210
IDBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWHFCLKSTARTEDEnable or disable interrupt for event HFCLKSTARTED
Disabled0Disable
Enabled1Enable
BRWLFCLKSTARTEDEnable or disable interrupt for event LFCLKSTARTED
Disabled0Disable
Enabled1Enable

INTENSET

Address offset: 0x304

Enable interrupt

Bit number313029282726252423222120191817161514131211109876543210
IDBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWHFCLKSTARTEDWrite '1' to enable interrupt for event HFCLKSTARTED
Set1Enable
Disabled0Read: Disabled
Enabled1Read: Enabled
BRWLFCLKSTARTEDWrite '1' to enable interrupt for event LFCLKSTARTED
Set1Enable
Disabled0Read: Disabled
Enabled1Read: Enabled

INTENCLR

Address offset: 0x308

Disable interrupt

Bit number313029282726252423222120191817161514131211109876543210
IDBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWHFCLKSTARTEDWrite '1' to disable interrupt for event HFCLKSTARTED
Clear1Disable
Disabled0Read: Disabled
Enabled1Read: Enabled
BRWLFCLKSTARTEDWrite '1' to disable interrupt for event LFCLKSTARTED
Clear1Disable
Disabled0Read: Disabled
Enabled1Read: Enabled

INTPEND

Address offset: 0x30C

Pending interrupts

Bit number313029282726252423222120191817161514131211109876543210
IDBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARHFCLKSTARTEDRead pending status of interrupt for event HFCLKSTARTED
NotPending0Read: Not pending
Pending1Read: Pending
BRLFCLKSTARTEDRead pending status of interrupt for event LFCLKSTARTED
NotPending0Read: Not pending
Pending1Read: Pending

HFCLKRUN

Address offset: 0x408

Status indicating that HFCLKSTART task has been triggered

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARSTATUSHFCLKSTART task triggered or not
NotTriggered0Task not triggered
Triggered1Task 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
ARSRCActive clock source
HFINT0HFINT - 64 MHz on-chip oscillator
HFXO1HFXO - 64 MHz clock derived from external 32 MHz crystal oscillator
BRSTATEHFCLK state
NotRunning0HFXO has not been started or HFCLKSTOP task has been triggered
Running1HFXO 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
ARSTATUSLFCLKSTART task triggered or not
NotTriggered0Task not triggered
Triggered1Task 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
ARSRCActive clock source
RFU0Reserved for future use
LFRC132.768 kHz RC oscillator
LFXO232.768 kHz crystal oscillator
BRSTATELFCLK state
NotRunning0Requested LFCLK source has not been started or LFCLKSTOP task has been triggered
Running1Requested 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
ARSRCClock source
RFU0Reserved for future use
LFRC132.768 kHz RC oscillator
LFXO232.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
ARWSRCClock source
RFU0Reserved for future use (equals selecting LFRC)
LFRC132.768 kHz RC oscillator
LFXO232.768 kHz crystal oscillator