ATSAMC21J17A TSENS registers

The 16 registers of TSENS (Temperature Sensor), from 0x40003000, with their reset value and every field. The ATSAMC21J17A has 1372 registers in 47 peripherals, one page each.

TSENS Temperature Sensor

CTRLAControl A Register

Address
0x40003000
Reset
0x00
Access
read/write
  1. 7–
  2. 6RUNSTDBY
  3. 5–
  4. 4–
  5. 3–
  6. 2–
  7. 1ENABLE
  8. 0SWRST
3 fields
FieldBitsWhat it does
RUNSTDBY6Run in Standby
ENABLE1Enable
SWRST0Software Reset

CTRLBControl B Register

Address
0x40003001
Reset
0x00
Access
write only
  1. 7–
  2. 6–
  3. 5–
  4. 4–
  5. 3–
  6. 2–
  7. 1–
  8. 0START
1 field
FieldBitsWhat it does
START0Start Measurement

CTRLCControl C Register

Address
0x40003002
Reset
0x00
Access
read/write
  1. 7–
  2. 6–
  3. 5–
  4. 4FREERUN
  5. 3–
  6. 2WINMODE2
  7. 1WINMODE1
  8. 0WINMODE0
2 fields
FieldBitsWhat it does
FREERUN4Free Running Measurement
WINMODE2:0Window Monitor Mode
  • 0 No window mode (default)
  • 1 VALUE greater than WINLT
  • 2 VALUE less than WINUT
  • 3 VALUE greater than WINLT and VALUE less than WINUT
  • 4 VALUE less than WINLT or VALUE greater than WINUT
  • 5 VALUE greater than WINUT with hysteresis to WINLT
  • 6 VALUE less than WINLST with hysteresis to WINUT

EVCTRLEvent Control Register

Address
0x40003003
Reset
0x00
Access
read/write
  1. 7–
  2. 6–
  3. 5–
  4. 4–
  5. 3–
  6. 2WINEO
  7. 1STARTINV
  8. 0STARTEI
3 fields
FieldBitsWhat it does
WINEO2Window Monitor Event Out
STARTINV1Start Conversion Event Invert Enable
STARTEI0Start Conversion Event Input Enable

INTENCLRInterrupt Enable Clear Register

Address
0x40003004
Reset
0x00
Access
read/write
  1. 7–
  2. 6–
  3. 5–
  4. 4–
  5. 3OVF
  6. 2WINMON
  7. 1OVERRUN
  8. 0RESRDY
4 fields
FieldBitsWhat it does
OVF3Overflow Interrupt Enable
WINMON2Window Monitor Interrupt Enable
OVERRUN1Overrun Interrupt Enable
RESRDY0Result Ready Interrupt Enable

INTENSETInterrupt Enable Set Register

Address
0x40003005
Reset
0x00
Access
read/write
  1. 7–
  2. 6–
  3. 5–
  4. 4–
  5. 3OVF
  6. 2WINMON
  7. 1OVERRUN
  8. 0RESRDY
4 fields
FieldBitsWhat it does
OVF3Overflow Interrupt Enable
WINMON2Window Monitor Interrupt Enable
OVERRUN1Overrun Interrupt Enable
RESRDY0Result Ready Interrupt Enable

INTFLAGInterrupt Flag Status and Clear Register

Address
0x40003006
Reset
0x00
Access
read/write
  1. 7–
  2. 6–
  3. 5–
  4. 4–
  5. 3OVF
  6. 2WINMON
  7. 1OVERRUN
  8. 0RESRDY
4 fields
FieldBitsWhat it does
OVF3Overflow
WINMON2Window Monitor
OVERRUN1Overrun
RESRDY0Result Ready

STATUSStatus Register

Address
0x40003007
Reset
0x00
Access
read only
  1. 7–
  2. 6–
  3. 5–
  4. 4–
  5. 3–
  6. 2–
  7. 1–
  8. 0OVF
1 field
FieldBitsWhat it does
OVF0Result Overflow

SYNCBUSYSynchronization Busy Register

Address
0x40003008
Reset
0x00000000
Access
read only
Size
32-bit
2 fields
FieldBitsWhat it does
ENABLE1Enable Busy
SWRST0Software Reset Busy

VALUEValue Register

Address
0x4000300C
Reset
0x00000000
Access
read only
Size
32-bit
1 field
FieldBitsWhat it does
VALUE23:0Measurement Value

WINLTWindow Monitor Lower Threshold Register

Address
0x40003010
Reset
0x00000000
Access
read/write
Size
32-bit
1 field
FieldBitsWhat it does
WINLT23:0Window Lower Threshold

WINUTWindow Monitor Upper Threshold Register

Address
0x40003014
Reset
0x00000000
Access
read/write
Size
32-bit
1 field
FieldBitsWhat it does
WINUT23:0Window Upper Threshold

GAINGain Register

Address
0x40003018
Reset
0x00000000
Access
read/write
Size
32-bit
1 field
FieldBitsWhat it does
GAIN23:0Time Amplifier Gain

OFFSETOffset Register

Address
0x4000301C
Reset
0x00000000
Access
read/write
Size
32-bit
1 field
FieldBitsWhat it does
OFFSETC23:0Offset Correction

CALCalibration Register

Address
0x40003020
Reset
0x00000000
Access
read/write
Size
32-bit
2 fields
FieldBitsWhat it does
TCAL13:8Temperature Calibration
FCAL5:0Frequency Calibration

DBGCTRLDebug Control Register

Address
0x40003024
Reset
0x00
Access
read/write
  1. 7–
  2. 6–
  3. 5–
  4. 4–
  5. 3–
  6. 2–
  7. 1–
  8. 0DBGRUN
1 field
FieldBitsWhat it does
DBGRUN0Debug Run