ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
r_tsn_cal_regs_t Struct Reference

TSN factory-calibration block (read-only on hardware). More...

#include <ra8_tsn_regs.h>

Data Fields

volatile uint32_t TSCDR
 +0x00 Calibration code at high ref temperature.
volatile uint32_t TSCDR2
 +0x04 Calibration code at low ref temperature.

Detailed Description

TSN factory-calibration block (read-only on hardware).

HUM Ch 55.2.2 "TSCDR / TSCDR2 : Temperature Sensor Calibration Data Registers", p 3498-3499. The two words are programmed at the factory and capture the raw ADC code observed at the high and low calibration temperatures (HUM Ch 55.3.1 p 3499-3500):

  • TSCDR – code at the high reference (105 or 125 degC).
  • TSCDR2 – code at the low reference (-40 degC).

Both words are 32-bit memory cells in the MRAM trim area but only the lower 12 bits (k_ra8_tscdr_data_mask) carry the calibration code; the upper bits read 0.

Note
The cells live in the MRAM trim region (0x02C1EDA0). Hardware exposes them as read-only; tests inject values by writing to the fake mmap backing store.
See also
ra8_tsn_cal()

Definition at line 132 of file ra8_tsn_regs.h.

Field Documentation

◆ TSCDR

volatile uint32_t r_tsn_cal_regs_t::TSCDR

+0x00 Calibration code at high ref temperature.

Definition at line 133 of file ra8_tsn_regs.h.

Referenced by ra8_tsn_convert_to_milli_c().

◆ TSCDR2

volatile uint32_t r_tsn_cal_regs_t::TSCDR2

+0x04 Calibration code at low ref temperature.

Definition at line 134 of file ra8_tsn_regs.h.

Referenced by ra8_tsn_convert_to_milli_c().


The documentation for this struct was generated from the following file: