FN
FROST-NORD Industrial Systems
FN-2400
—
2.6.12
3.2
—
—
LINK
← Documentation

FN-TEMP8 Data Format Specification

FN-STD-TEMP8 · Rev. 2 · 2011-03 · Download PDF

1. Purpose

FN-TEMP8 is the one-byte temperature representation used throughout the FNmega128 platform. It encodes an integer temperature in degrees Celsius using sign-magnitude form.

2. Bit Layout

  • Bit 7 — sign (0 = positive, 1 = negative)
  • Bits 6–0 — magnitude (absolute temperature, 0–127)

Representable range: −127 to +127 degrees Celsius.

3. Zero Handling

Two encodings map to zero. 0x00 is positive (canonical) zero; 0x80 is negative zero. Both decode to 0 °C. Encoders emit 0x00 for zero.

EncodingValue
0x00+0 °C (canonical)
0x80−0 °C (normalized to 0)

4. Examples

Temperature (°C)BinaryHex
-30100111109E
-241001100098
-181001001092
-12100011008C
+00000000000
+80000100008
+240001100018
+30000111101E
+1000110010064
+125011111017D
+127011111117F

5. Conversion

encode(t):  if t >= 0: byte = t & 0x7F
            else:     byte = 0x80 | ((-t) & 0x7F)

decode(b):  mag = b & 0x7F
            value = -mag if (b & 0x80) else mag
The simulator recognizes valid FN-TEMP8 values across the entire representable range, including values outside the ranges offered by the ordinary configuration interface.