TEMP — Temperature sensor

The temperature sensor peripheral (TEMP) measures die temperature over the temperature range of the device. Linearity compensation can be implemented if required by the application.

The main features of TEMP are the following:

To achieve the measurement accuracy stated in the electrical specification, the crystal oscillator must be selected as the HFCLK source, see CLOCK — Clock control for more information.

Operation

TEMP is started by triggering the START task.

When the temperature measurement is finished, a DATARDY event will be generated and the measurement result can be read from the TEMP register.

When the temperature measurement is finished, TEMP analog electronics power-down to save power.

TEMP only supports one-shot operation, meaning that every TEMP measurement has to be explicitly started using the START task.

Registers

Instances

InstanceDomainBase addressTrustZoneSplit accessDescription
MapAttDMA
TEMP : S
TEMP : NS
GLOBAL0x500D7000
0x400D7000
USSNANoTemperature sensor TEMP

Register overview

RegisterOffsetTZDescription
TASKS_START0x000Start temperature measurement
TASKS_STOP0x004Stop temperature measurement
SUBSCRIBE_START0x080Subscribe configuration for task START
SUBSCRIBE_STOP0x084Subscribe configuration for task STOP
EVENTS_DATARDY0x100Temperature measurement complete, data ready
PUBLISH_DATARDY0x180Publish configuration for event DATARDY
INTENSET0x304Enable interrupt
INTENCLR0x308Disable interrupt
TEMP0x508Temperature in °C (0.25° steps)
A00x520Slope of 1st piece wise linear function
A10x524Slope of 2nd piece wise linear function
A20x528Slope of 3rd piece wise linear function
A30x52CSlope of 4th piece wise linear function
A40x530Slope of 5th piece wise linear function
A50x534Slope of 6th piece wise linear function
A60x538Slope of 7th piece wise linear function
B00x540y-intercept of 1st piece wise linear function
B10x544y-intercept of 2nd piece wise linear function
B20x548y-intercept of 3rd piece wise linear function
B30x54Cy-intercept of 4th piece wise linear function
B40x550y-intercept of 5th piece wise linear function
B50x554y-intercept of 6th piece wise linear function
B60x558y-intercept of 7th piece wise linear function
T00x560End point of 1st piece wise linear function
T10x564End point of 2nd piece wise linear function
T20x568End point of 3rd piece wise linear function
T30x56CEnd point of 4th piece wise linear function
T40x570End point of 5th piece wise linear function
T50x574End point of 6th piece wise linear function

TASKS_START

Address offset: 0x000

Start temperature measurement

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
AWTASKS_STARTStart temperature measurement
Trigger1Trigger task

TASKS_STOP

Address offset: 0x004

Stop temperature measurement

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
AWTASKS_STOPStop temperature measurement
Trigger1Trigger task

SUBSCRIBE_START

Address offset: 0x080

Subscribe configuration for task START

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

SUBSCRIBE_STOP

Address offset: 0x084

Subscribe configuration for task STOP

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

EVENTS_DATARDY

Address offset: 0x100

Temperature measurement complete, data ready

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWEVENTS_DATARDYTemperature measurement complete, data ready
NotGenerated0Event not generated
Generated1Event generated

PUBLISH_DATARDY

Address offset: 0x180

Publish configuration for event DATARDY

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

INTENSET

Address offset: 0x304

Enable interrupt

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARW
W1S
DATARDYWrite '1' to enable interrupt for event DATARDY
Set1Enable
Disabled0Read: Disabled
Enabled1Read: Enabled

INTENCLR

Address offset: 0x308

Disable interrupt

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARW
W1C
DATARDYWrite '1' to disable interrupt for event DATARDY
Clear1Disable
Disabled0Read: Disabled
Enabled1Read: Enabled

TEMP

Address offset: 0x508

Temperature in °C (0.25° steps)

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARTEMP

Temperature in °C (0.25° steps)

Result of temperature measurement. Die temperature in °C, 2's complement format, 0.25 °C steps

11 bits sign extended to 32 bits, with 2 LSBs as fractional bits.

Decision point: DATARDY

A0

Address offset: 0x520

Slope of 1st piece wise linear function

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAA
Reset 0x0000038C00000000000000000000001110001100
IDR/WFieldValue IDValueDescription
ARWA0Slope of 1st piece wise linear function

A1

Address offset: 0x524

Slope of 2nd piece wise linear function

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAA
Reset 0x000003B300000000000000000000001110110011
IDR/WFieldValue IDValueDescription
ARWA1Slope of 2nd piece wise linear function

A2

Address offset: 0x528

Slope of 3rd piece wise linear function

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAA
Reset 0x000003FA00000000000000000000001111111010
IDR/WFieldValue IDValueDescription
ARWA2Slope of 3rd piece wise linear function

A3

Address offset: 0x52C

Slope of 4th piece wise linear function

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAA
Reset 0x0000045100000000000000000000010001010001
IDR/WFieldValue IDValueDescription
ARWA3Slope of 4th piece wise linear function

A4

Address offset: 0x530

Slope of 5th piece wise linear function

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAA
Reset 0x000004AA00000000000000000000010010101010
IDR/WFieldValue IDValueDescription
ARWA4Slope of 5th piece wise linear function

A5

Address offset: 0x534

Slope of 6th piece wise linear function

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAA
Reset 0x0000053900000000000000000000010100111001
IDR/WFieldValue IDValueDescription
ARWA5Slope of 6th piece wise linear function

A6

Address offset: 0x538

Slope of 7th piece wise linear function

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAA
Reset 0x0000057800000000000000000000010101111000
IDR/WFieldValue IDValueDescription
ARWA6Slope of 7th piece wise linear function

B0

Address offset: 0x540

y-intercept of 1st piece wise linear function

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAA
Reset 0x0000003700000000000000000000000000110111
IDR/WFieldValue IDValueDescription
ARWB0y-intercept of 1st piece wise linear function

B1

Address offset: 0x544

y-intercept of 2nd piece wise linear function

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAA
Reset 0x0000001100000000000000000000000000010001
IDR/WFieldValue IDValueDescription
ARWB1y-intercept of 2nd piece wise linear function

B2

Address offset: 0x548

y-intercept of 3rd piece wise linear function

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAA
Reset 0x0000000500000000000000000000000000000101
IDR/WFieldValue IDValueDescription
ARWB2y-intercept of 3rd piece wise linear function

B3

Address offset: 0x54C

y-intercept of 4th piece wise linear function

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAA
Reset 0x0000002B00000000000000000000000000101011
IDR/WFieldValue IDValueDescription
ARWB3y-intercept of 4th piece wise linear function

B4

Address offset: 0x550

y-intercept of 5th piece wise linear function

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAA
Reset 0x0000008F00000000000000000000000010001111
IDR/WFieldValue IDValueDescription
ARWB4y-intercept of 5th piece wise linear function

B5

Address offset: 0x554

y-intercept of 6th piece wise linear function

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAA
Reset 0x0000015D00000000000000000000000101011101
IDR/WFieldValue IDValueDescription
ARWB5y-intercept of 6th piece wise linear function

B6

Address offset: 0x558

y-intercept of 7th piece wise linear function

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAA
Reset 0x000001C000000000000000000000000111000000
IDR/WFieldValue IDValueDescription
ARWB6y-intercept of 7th piece wise linear function

T0

Address offset: 0x560

End point of 1st piece wise linear function

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAA
Reset 0x000000E500000000000000000000000011100101
IDR/WFieldValue IDValueDescription
ARWT0End point of 1st piece wise linear function

T1

Address offset: 0x564

End point of 2nd piece wise linear function

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAA
Reset 0x000000FB00000000000000000000000011111011
IDR/WFieldValue IDValueDescription
ARWT1End point of 2nd piece wise linear function

T2

Address offset: 0x568

End point of 3rd piece wise linear function

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAA
Reset 0x0000001000000000000000000000000000010000
IDR/WFieldValue IDValueDescription
ARWT2End point of 3rd piece wise linear function

T3

Address offset: 0x56C

End point of 4th piece wise linear function

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAA
Reset 0x0000002B00000000000000000000000000101011
IDR/WFieldValue IDValueDescription
ARWT3End point of 4th piece wise linear function

T4

Address offset: 0x570

End point of 5th piece wise linear function

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAA
Reset 0x0000004100000000000000000000000001000001
IDR/WFieldValue IDValueDescription
ARWT4End point of 5th piece wise linear function

T5

Address offset: 0x574

End point of 6th piece wise linear function

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAA
Reset 0x0000005000000000000000000000000001010000
IDR/WFieldValue IDValueDescription
ARWT5End point of 6th piece wise linear function