Stcomet: Smart Meter and Powerline Communication System-On-Chip
Stcomet: Smart Meter and Powerline Communication System-On-Chip
Stcomet: Smart Meter and Powerline Communication System-On-Chip
Features
Integrated differential PLC analog front-end
PGA with automatic gain control and ADC
Current DAC with transmission predriver
Digital transmission level control
Zero crossing comparator
Up to 500 kHz PLC signal bandwidth
Integrated dual line driver
14 V p-p single ended, 28 V p-p differential
output range
Very high linearity for EMC compliance
Externally configurable amplifier topology
1 A rms max. current
Embedded overtemperature protection
Suitable for all PLC signals up to 500 kHz
Fully reprogrammable real-time engine (RTE)
modem for PLC standards up to 500 kHz
High accuracy metering front-end
3 independent 24-bit ADC channels
3.6 kHz bandwidth
Dedicated DSP for turnkey calculation of
metrology parameters
Direct access to 24-bit data
Integrated application core: ARM 32-bit
Cortex-M4F CPU
96 MHz maximum frequency
8-channel direct memory access controller
8-region memory protection unit
Serial wire and JTAG interfaces
September 2015
This is information on a product in full production.
Cryptographic engine
AES 128/192/256 engine
True random number generator
Memories
640 kB or 1 MB of embedded Flash
128 kB of embedded SRAM
8 kB of embedded shared RAM
Flexible static memory controller
Clock management
24 MHz external crystal for system clock
with internal QFS synthesizer
32.768 kHz external crystal for RTC
Power management
3.3 V and 8 - 18 V external supply voltages
1.2 V and 5 V integrated linear regulators
Normal and low power modes
Real-time clock (RTC)
VBAT supply with battery health monitoring
for RTC and backup registers
-40 C to +85 C operating temperature range
Applications
Smart metering, smart grid and Internet of
Things applications
Compliant with EN 50470-1, EN 50470-3, IEC
62053-21, IEC 62053-22 and IEC 62053-23
Compliant with CENELEC, FCC, ARIB
regulations
DocID028281 Rev 1
1/67
www.st.com
Contents
STCOMET
Contents
1
Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
1.1
Device architecture . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
1.2
1.2.2
1.2.3
1.2.4
Line driver . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
1.3
1.4
1.5
1.4.1
1.4.2
1.4.3
1.4.4
1.4.5
1.4.6
1.4.7
1.4.8
1.4.9
1.4.10
1.4.11
Communication interfaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
1.5.2
1.6
1.7
Memories . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
1.8
1.7.1
1.7.2
1.7.3
Embedded SRAM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
1.7.4
2/67
DocID028281 Rev 1
STCOMET
Contents
1.9
Power management . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
VBAT operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
1.10
1.11
1.12
1.13
Boot modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
1.14
System reprogrammability . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
1.14.1
1.14.2
Pin definition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
2.2
Memory map . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
Electrical characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
4.1
4.2
Thermal characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
4.3
Operating conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
Power supply characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
4.4
4.5
4.6
4.4.2
4.4.3
AFE characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
Metrology characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
4.5.1
4.5.2
Package information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64
5.1
5.2
Thermal data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65
DocID028281 Rev 1
3/67
67
Contents
STCOMET
Ordering information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66
Revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66
4/67
DocID028281 Rev 1
STCOMET
List of tables
List of tables
Table 1.
Table 2.
Table 3.
Table 4.
Table 5.
Table 6.
Table 7.
Table 8.
Table 9.
Table 10.
Table 11.
Table 12.
Table 13.
Table 14.
Table 15.
Table 16.
Table 17.
Table 18.
Table 19.
Table 20.
Table 21.
Table 22.
Table 23.
Table 24.
Table 25.
Table 26.
Table 27.
Table 28.
Table 29.
Table 30.
Table 31.
Table 32.
Table 33.
Table 34.
Table 35.
Table 36.
Table 37.
Table 38.
Table 39.
Table 40.
Table 41.
Table 42.
DocID028281 Rev 1
5/67
67
List of figures
STCOMET
List of figures
Figure 1.
Figure 2.
Figure 3.
Figure 4.
Figure 5.
Figure 6.
Figure 7.
Figure 8.
Figure 9.
Figure 10.
Figure 11.
Figure 12.
Figure 13.
Figure 14.
Figure 15.
Figure 16.
Figure 17.
Figure 18.
6/67
DocID028281 Rev 1
STCOMET
Description
Description
The STCOMET is a device that integrates a power line communication (PLC) modem,
a high-performance application core and metrology functions.
The PLC modem architecture has been designed to target EN50065, FCC, ARIB compliant
PLC applications. Together with the application core, it enables the STCOMET to support
the PRIME, G1, G3, IEEE 1901.2, METERS AND MORE and other narrow band PLC
protocol specifications.
The metrology sub-system is suitable for EN 50470-1, EN 50470-3, IEC 62053-21, IEC
62053-22 and IEC 62053-23 compliant class1, class0.5 and class0.2 AC metering
applications.
The STCOMET basic block diagram is shown in Figure 1.
Figure 1. STCOMET basic block diagram
DocID028281 Rev 1
7/67
67
Description
1.1
STCOMET
Device architecture
The architecture is composed of the following parts:
1.
2.
3.
Real-time engine: the digital core running the lower layers of the PLC protocol stack
and implementing modulation and demodulation
4.
5.
Protocol engine: the main digital core for running meter application, metrology
algorithm and the upper layers of the PLC protocol stack
6.
Basic peripherals
Com1 peripherals
Com2 peripherals
Crypto peripherals.
8/67
DocID028281 Rev 1
STCOMET
Description
Figure 2. STCOMET detailed architecture
6:-7$*
73,8
(70
$77
7KHUPDO
)/$6+
=HUR FURVVLQJ
7KHUPDO &XUUHQW
$'&
&38
&RUWH[0)
5HDOWLPH
HQJLQH
$)(
65$0 65$0
19,&
/LQHGULYHU
038
'0$&
FKDQQHOV
'$&
6KDUHG
5$0
,3&
$+%
)38
$7 7&75/
751*
$3%
&U\SWR
%DVLF
$+%
$3%
)60&
86$57
351*
$(6
&5&
,&
0HWU
$+%
$3%
0HWURORJ\
*3,2
*37
*3,2
*37
*3,2
*37
*3,2
*37
*3,2
*37
*3,2
*37
$+% $+%
$3% $3%
*3,2
*3,2
*3,2
*3,2
*3,2
*37
86$57
*37
86$57
86$57
&$1
::'*
$3%
$3%
$3%
&$1
86$57
57&
,&
,&
)/$6+&75/
$7
$'&
)60&B&75/
63,
$7
6<6&75/
5&*
63,
63,
63,
&RP
0,6&
63,
&RP
%DVLF
$0
DocID028281 Rev 1
9/67
67
Description
1.2
STCOMET
1.2.1
1.2.2
1.2.3
Transmission chain
The transmitted signal, generated in the digital domain, is fed into a dedicated digital-toanalog converter (DAC).
The DAC output is then fed into a predriver for buffering and applying an additional gain
before the line driver.
10/67
DocID028281 Rev 1
STCOMET
Description
1.2.4
Line driver
The STCOMET is equipped with an integrated high-performance dual power line driver. It
has very low distortion, allowing the device to comply with EMC requirements.
When supplied at maximum voltage, the line driver is capable to provide 28 V p-p in
differential configuration or 14 V p-p in single-ended configuration.
The output current can reach 1 A rms in both differential and single-ended configurations, in
order to drive very low power line impedance.
Any overtemperature event will force the line driver to shut down, thus preventing the
STCOMET to get damaged.
1.3
Metrology sub-system
The STCOMET device embeds a metrology sub-system designed for high accuracy
measurement of single-phase and split phase power and energy using a Rogowski coil,
current transformer, or shunt current sensors.
This sub-system calculates instantaneous and RMS voltage and currents, active, active
fundamental, reactive and apparent power and energy. It also monitors when the SAG or
SWELL event on voltage and the SWELL event on the current are present in the input line.
The metrology sub-system consists of an analog and a digital section. The analog section
consists of two programmable gain low-noise low offset amplifiers (PGA) and three 24-bit
2nd order ADCs, bandgap voltage references with temperature compensation, a lowdrop voltage regulator and DC buffers. The digital section consists of a hardwired DSP and
DFE to the input modulators and an interconnection bus with the Cortex-M4 core.
The hardwired processing unit can be bypassed for direct access to the metrology samples
by the application core.
Key features of this block are:
Active and reactive power accuracy < 0.1% error over 1:5000 range
Active and reactive power accuracy < 0.5% error over 1:10000 range
0 - 3.6 kHz bandwidth at -3 dB, up to 72nd (60th) harmonic content at 50 Hz (60 Hz)
Primary and auxiliary current comparison for anti-tamper function on single-phase two
wires systems
The metrology sub-system is fully configurable and allows fast digital calibration in a single
point over the entire current dynamic range.
DocID028281 Rev 1
11/67
67
Description
STCOMET
The metrology sub-system generates its high accuracy voltage reference for ADC,
externally available on METR_VREF for filtering purpose only.
A 100 nF capacitor between METR_VREF and METR_AGND is required.
The metrology voltage reference can be compensated vs. temperature by the dedicated
trimming register.
1.4
1.4.1
12/67
DocID028281 Rev 1
STCOMET
Description
Table 1. Cortex-M4F core configuration
Component
Presence
Comment
JTAG
Yes
Full-featured debug access port (DAP), SWJ-DP and AHB access port
ETM
Yes
ITM
Yes
TPIU
Yes
FPB
Yes
DWT
Yes
DEBUG level
N/A
IRQ
N/A
80 IRQ source
Priority level
N/A
MPU
Yes
FPU
Yes
BB
Yes
RESET_ALL_REGS
Yes
CLKGATE
Yes
WIC
Yes
10 lines: NMI, WWDG, RTC, metrology, GPIOs, IPC, DMA, GPT0, SPI0 and
USART0
1.4.2
1.4.3
DocID028281 Rev 1
13/67
67
Description
STCOMET
Table 2. Interrupt definition and position
Position Priority
Acronym
Description
-3
Reset
Reset
-2
NMI
-1
HardFault
MemManage
MPU mismatch
BusFault
UsageFault
SVCall
DebugMonitor
Debug monitor
PendSV
SysTick
WDG_WIC
RTC_WIC
METR_V_WIC
10
GPIO_WIC
11
IPC_WIC
12
DMAC_WIC
13
GPT0_WIC
14
SPI0_WIC
15
USART0_WIC
16
Reserved
10
17
TAMPER
11
18
RTC
Real-time clock
12
19
FLASH_FATAL_ERROR
Flash interface
13
20
FLASH_ECC_RWW_ERROR
Flash interface
14
21
FLASH_ARY_DONE
Flash interface
15
22
IPC_MBOX
IPC mailbox
16
23
IPC_QUEUES
IPC queues
17
24
IPC_SHAREDRAM
18
25
DMA_Ch(1)
19
26
DMA_Ch(2)
20
27
DMA_Ch(3)
21
28
DMA_Ch(4)
22
29
DMA_Ch(5)
23
30
DMA_Ch(6)
24
31
DMA_Ch(7)
14/67
DocID028281 Rev 1
STCOMET
Description
Table 2. Interrupt definition and position (continued)
Position Priority
Acronym
Description
25
32
DMA_Ch(8)
26
33
ADC
27
34
METR_C1
28
35
METR_C2
29
36
FSMC_FILL_FIFO
FSMC interface
30
37
SPI1
31
38
SPI2
32
39
SPI3
33
40
SPI4
34
41
I2C0_EVENT
35
42
I2C0_ERROR
36
43
I2C1_EVENT
37
44
I2C1_ERROR
38
45
I2C2_EVENT
39
46
I2C2_ERROR
40
47
AT0_BRK
41
48
AT0_UP
42
49
AT0_TRG_COM
43
50
AT0_CC
44
51
AT1_BRK
45
52
AT1_UP
46
53
AT1_TRG_COM
47
54
AT1_CC
48
55
GPT1
49
56
GPT2
50
57
GPT3
51
58
USART1
52
59
USART2
53
60
USART3
54
61
USART4
USART4global interrupt
55
62
CAN0
56
63
CAN1
57
64
AES
58
65
GPIO00
59
66
GPIO01
DocID028281 Rev 1
15/67
67
Description
STCOMET
Table 2. Interrupt definition and position (continued)
Position Priority
Acronym
Description
60
67
GPIO02
61
68
GPIO03
62
69
GPIO04
63
70
GPIO05
64
71
GPIO06
65
72
GPIO07
66
73
GPIO08
67
74
GPIO09
68
75
GPIO10
69
76
GPT4
70
77
GPT5
71
78
GPT6
72
79
GPT7
73
80
Reserved
74
81
Reserved
75
82
Reserved
76
83
Reserved
77
84
Reserved
78
85
Reserved
79
86
Reserved
1.4.4
16/67
DocID028281 Rev 1
STCOMET
Description
Table 3. DMA channels muxing scheme
Peripheral
CH1
CH2
CH3
CH4
CH5
CH6
CH7
METR
ADC
CH8
METR
ADC
SPI0
SPI0_TX
SPI0_RX
SPI1
SPI2
SPI2_TX
SPI1_TX
SPI1_RX
SPI3_TX
SPI3_RX
SPI2_RX
SPI3
SPI4
USART0
USART0_TX
SPI4_TX
SPI4_RX
USART2_TX
USART2_RX
USART4_TX
USART4_RX
I2C2_TX
I2C2_RX
USART0_RX
USART1
USART1_TX USART1_RX
USART2
USART3
USART3_TX
USART3_RX
USART4
I2C0
I2C0_TX
I2C1
I2C1_TX
I2C0_RX
I2C1_RX
I2C2
AT0
AT0_CH1
AT0_CH2
AT0_CH4
AT0_TRIG
AT0_COM
AT0_UP
AT1
AT1_CH3
AT0_CH3
AT1_TRIG
AT1_COM
AT1_UP
AT1_CH1
AT1_CH2
AT1_CH4
GPT0_UP
GPT0
GPT1
GPT1_UP
GPT2
GPT2_UP
GPT3
GPT4
GPT5
GPT3_UP
GPT4_UP
GPT5_UP
GPT6
GPT7
GPT6_UP
GPT7_UP
DocID028281 Rev 1
17/67
67
Description
1.4.5
STCOMET
Overlapping regions
Background region
When memory regions overlap, memory access is affected by the attributes of the region
with the highest number.
The background region has the same memory access attributes as the default memory
map, but is accessible from privileged software only.
The MPU is useful to isolate and protect different parts of the firmware by giving different
levels of access privileges (for example: to implement separation of the metering-related
FW from the rest of the application FW). If a part of the firmware tries to access a memory
location that is prohibited by the MPU, the processor generates a fault. This causes a fault
exception that could be detected by the privileged firmware, which can take the appropriate
action.
The MPU is optional and can be bypassed for applications that do not need it.
1.4.6
1.4.7
External interrupt
Each GPIOs port can generate interrupts. For each port one interrupt line is dedicated. The
pins of one port share the same interrupt line.
18/67
DocID028281 Rev 1
STCOMET
1.4.8
Description
1.4.9
SysTick timer
The Cortex-M4 has a 24-bit system timer, SysTick, which counts down from the
programmable reload value to zero. It supports the autoreload and can generate
a maskable system interrupt when the counter reaches zero.
1.4.10
DocID028281 Rev 1
19/67
67
Description
STCOMET
Input data size can be configured between 1, 8, 16, 24 or 32 bits with selectable bit and byte
endianness.
The CRC unit allows the specification of the initial value (all zero, all one, or a generic value)
and the possibility to select an automatic XOR with all one when reading the data output.
1.4.11
Communication interfaces
Inter-integrated circuit interface (I2C)
The STCOMET embeds 3 I2C bus interfaces that can operate in multimaster and slave
modes. They can support the Standard and Fast modes. They support the 7/10-bit
addressing mode and the 7-bit dual addressing mode (as slave). A hardware CRC
generation/verification is embedded.
The I2C peripherals can be served by DMA and support SMBus 2.0/PMBus operations.
20/67
DocID028281 Rev 1
STCOMET
Description
1.5
1.5.1
1.5.2
1.6
Configuration of real-time engine modes and functionalities during the normal working
operations
Data and information exchange between the Cortex-M4 and real-time engine in both
directions.
The Cortex-M4 wake up from a low power mode triggered by the real-time engine.
The real-time engine wakes up from a low power mode triggered by the Cortex-M4.
DocID028281 Rev 1
21/67
67
Description
STCOMET
1.7
Memories
1.7.1
640 kB or 1 MB of size
Sector erase with possibility to suspend erase procedure in case of read access to
other flash sectors
Name
Number
Base address
Size
Main memory
B0F0
0x00000000
16 kB
B0F1
0x00004000
16 kB
B0F2
0x00008000
32 kB
B0F3
0x00010000
32 kB
B0F4
0x00018000
16 kB
B0F5
0x0001C000
16 kB
B0F6
0x00020000
64 kB
B0F7
0x00030000
64 kB
B0F8
0x00040000
128 kB
B0F9
0x00060000
128 kB
B0FA
10
0x00080000
128 kB
B0FB
11
0x000A0000
128 kB
B0FC
12
0x000C0000
128 kB
B0FD
13
0x000E0000
128 kB
B0SH
14
0x00100000
16 kB
Shadow sector
Note
Shadow sector is accessible only in some security levels (see Section 1.13: Boot modes on
page 30).
1.7.2
22/67
DocID028281 Rev 1
STCOMET
1.7.3
Description
Embedded SRAM
The STCOMET device has 128 kB of a static RAM. The Cortex-M4 can perform byte, half
word (16 bits) or full word (32 bits) access to the SRAM at maximum speed, with zero wait
states for both read and write operations. The SRAM start address is 0x20000000, the end
address is 0x20001FFFF.
The SRAM is split into two blocks of 64 kB with a capability for concurrent access by AHB
master sub-systems.
The Cortex-M4 can also execute a code from the RAM at a zero wait state.
1.7.4
Asynchronous parallel NOR Flash with up to 21-bit address bus (no synchronous
parallel NOR supported)
The data bus can be selected between 16 bits or 8 bits (reducing the total amount of
accessible memory), for little or big endian operation.
The FSMC peripheral can connect up to 2 memories with 2 independent chip select lines
(Ebar). The maximum size of each memory is 4 MB. Having 2 chip select lines, the
maximum external memory size is 8 MB.
1.8
6<6B&75/
&ORFNV
0,6&
5HVHWDQGFORFNV
5HVHWV
4)6
$0
DocID028281 Rev 1
23/67
67
Description
STCOMET
The system reset is generated by the RESETn pin (active low). Through the system
controller is also possible to assert a system software reset. The software reset to single
peripherals can be forced through MISC registers.
Clock management
Two external clock sources are required for the STCOMET:
1.
24 MHz frequency
2.
Internal clocks are generated by a quadruple frequency synthesizer (QFS) that is fed by the
24 MHz source. Digital blocks can also use the external sources as clock reference.
The clock strategy is depicted in Figure 4.
24/67
DocID028281 Rev 1
STCOMET
Description
Figure 4. STCOMET clock tree
+&/.WR$+%
3HULSKHUDOV
&/.WR$)(')(
0,6&4)6B&/.B&75
0,6&4)6B&/.B&75
0,6&4)6B&/.B&75
0,6&4)6B&/.B&75
&/.WR$'&
FSXBIFON
&/.WR57(
FSXBKFON
0,6&4)6B&75
&38
67&/.
'LYLVRU
TIVBFONRXW>@
0&2
0&2
SU HVFDOHU
0,6&4)6B&75>@
4)6
TIVBFONRXW
0,6&$0%$B&)*>@
',9
26&B,1
0&/.B,1
0&/.B287
%DVLF$3%
SU HVFDOHU
3&/.B%
WREDVLF
SH ULSKHUDOV
&RP
$3%
SU HVFDOHU
3&/.B&
WR&RP
SH ULSKHUDOV
&RP
$3%
SU HVFDOHU
3&/.B&
WR&RP
SH ULSKHUDOV
&U\SWR
$3%
SU HVFDOHU
3&/.B&5<37
WR&U\SWR
SH ULSKHUDOV
TIVBFONRXW
0,6&26&,B&)*
>@
0+]
26&
FSXBVWFON
6<67B&65&/.6285&(
TIVBFONRXW
TIVBFONRXW
'(%8*
0,6&0&2B&/.B&)*
0,6&751*B51&/.B&)*B5(*51*&/.B6(/
.+]
26&
26&B287
0HWURORJ\
SU HVFDOHU
&/.WR
57&FRUH
0&2
751*
GL YLVRU
6<6&753//546:
6<6&75;7$/546:
RU
0,6&*(1B&/.B&)*>@
&/.B7
WR751*
&/.B0(75
WRPHWURORJ\
0+]
V\ QWK
At a startup the 24 MHz oscillator clock is selected. This source must be always present to
allow the STCOMET starting correctly. 24 MHz can be provided by a quartz crystal or by any
other source. In this latter case, the clock must be provided through the MCLK_IN pin while
the MCLK_OUT pin must be tied to DGND. 32.768 KHz must be provided by a quartz
crystal.
APB peripherals can work up to 48 MHz. Each PCLK prescaler to the sub-systems should
be configured to respect this maximum frequency.
DocID028281 Rev 1
25/67
67
Description
STCOMET
The general purpose ADC clock can run up to 33 MHz. The RTC core uses only the 32 KHz
external oscillator. The TRNG can work with the external 32 kHz or with the internal
cpu_hclk. If the internal clock is selected, the divisor should be configured to provide an
accurate 32 kHz clock in order to respect the requirements for a true random generation.
The metrology prescaler must be configured to provide a 24 MHz clock to the metrology
block.
Two master clock output lines can be enabled. The MCO1 is multiplexed with one general
purpose I/O and can take one of the QFS outputs with a configurable prescaler. The MCO2
is a 16 MHz clock output derived from the 24 MHz metrology sub-system clock and it can be
used to provide the same clock reference to additional external metrology devices.
1.9
Power management
The STCOMET should be powered with, at least, two external supply voltages:
3.3 V for I/Os, embedded Flash, QFS, DAC, OSC, ADC general purpose, 1.2 V
regulator and metrology
The device needs also two more supply voltages that can be generated internally:
1.2 V for digital cores and logic, embedded Flash, QFS and oscillator
1.2 V and 5 V can be provided by two internal linear regulators connected respectively to
DVDD_1V2 and AVDD_5V pins and supplied respectively by DVDD_3V3_REG and PVCC
pins. A bypass mode is available for the 1.2 V regulator in case an external source is used.
The device needs also 3 V for the metrology section, always generated internally by an LDO
regulator supplied by the AVDD_3 V3_M pin.
The power-on reset (POR) is conditioned by the level of DVDD_3 V3_IO and DVDD_1V2: at
power on, the whole STCOMET device is kept under reset until the two supply voltages are
above the respective turn-on thresholds named V(DVDD_3 V3_IO)_TH and
V(DVDD_1V2)_TH, while the device is turned off as soon as one of the voltages goes below
its turn-off thresholds, namely V(DVDD_3 V3_IO)_TL and V(DVDD_1V2)_TL.
An internal comparator checks the supply voltage on AVDD_5V_AFE as well, enabling the
use of the PLC AFE when the voltage is above V(AVDD_5V_AFE)_TH and disabling it when
the voltage goes below V(AVDD_5V_AFE)_TL.
Refer to Figure 5 and Figure 6 for the detailed power supply scheme.
26/67
DocID028281 Rev 1
STCOMET
Description
Figure 5. Power supply scheme - digital and metrology sections
3RZHU
VZLWFK
9%$7
57&FRUHED FNXSUHJLVWHUV
/HYHOVKLIWHUV
WR9
'9''B9B,2
*3,2V
9 VHFWLRQ
,2ORJLF
9
UHJXODWRU
'9''B9B5(*
&RUWH[0SHULSKHUDOV
5$0UHDO WLPHHQJLQH
'9''B9
'9''B9B)/$6+
)/$6+
'9''B9B)/$6+
0+]
RVFLOODWRU
'9''B9B0&/.
'9''B9B4)6
4)6
'9''B9B4)6
0HWURORJ\
GLJLWDO
0(75B$9''B9
9
UHJXODWRU
0HWURORJ\
9
0(75B$9''B9
$0
DocID028281 Rev 1
27/67
67
Description
STCOMET
Figure 6. Power supply scheme - PLC AFE and line driver section
39&&
3*1'
3$
39&&
WR9
3*1'
9
UHJXODWRU
3$
$9''B9
$*1'
$9''B9B3*$
$)(
$9''B9B5;$'&
$9''B9B7;'59
)HUULWH
EHDG
$9''B9B'$&
9
$0
28/67
DocID028281 Rev 1
STCOMET
Description
VBAT operation
In case the RTC peripheral is used, the VBAT pin shall be supplied (2.0 V to 3.6 V) for the
RTC core operation and persistence of backup registers. An external battery or a similar
power source can be used.
The VBAT operation is activated, through an on-chip power switch, when the
DVDD_3V3_IO is not present. In this case the main core of the RTC and the backup
registers are under the VBAT domain.
The application can constantly monitor the health of the battery by reading the voltage level
present at the VBAT pin through the channel 7 of the general purpose 12-bit ADC.
A dedicated cutoff switch has been included to avoid continuous leakage from the battery
when the ADC is not sampling the line.
1.10
1.11
The RTC is clocked with a 32.768 kHz external crystal and has coarse calibration (periodic
digital calibration), smooth calibration (0.954 ppm) and analog calibration functionalities.The
1 Hz /512 Hz internal reference clock is optionally available on RTC_TAMPB for calibration.
The RTC has also twenty 32-bit backup registers (80 bytes), available for user defined data
storage. The possibility that backup registers are reset when a tamper detection event
occurs is selectable by software.
DocID028281 Rev 1
29/67
67
Description
1.12
STCOMET
The first sensor monitors the line driver temperature and can be used by the RTE to prevent
the line driver to be shut down abruptly by the overtemperature protection. The way to use
this information may depend on the protocol and on the version of the RTE firmware, so its
usage (if any) will be described within the specific firmware documentation released by
STMicroelectronics.
The second sensor monitors the temperature of the low power section of the device. It is
internally connected to the channel 8 of the general purpose 12-bit ADC (see Section :
General purpose analog-to-digital converter (ADC) on page 21 for further details) and it can
be used by the application for its own purposes.
The accuracy of the sensors is guaranteed by design. In case a higher accuracy is required
on the low power temperature sensor, the user shall adopt its own calibration procedure
during the application manufacturing.
1.13
Boot modes
The STCOMET provides different security levels of protection:
30/67
1.
Level 1: unsecure
The Cortex-M4 is accessible through the JTAG and it's possible to download the
firmware in the embedded Flash using debugger plug-in or to load it from the external
NVM using the system boot functionality. It's also possible to download customer OTP
data such as cryptography keys. The shadow sector is not accessible.
2.
Level 2: secure
The JTAG is blocked and it's not possible to access the embedded Flash for external
read or write operation. It's possible to load the ciphered firmware image from the
external NVM and upgrade the firmware thanks to the IAP functionality. Read access to
the embedded Flash is possible to the CortexTM-M4 code, including the shadow sector.
3.
DocID028281 Rev 1
STCOMET
Description
4.
5.
In order to respect these security requirements, the STCOMET embeds a bootloader code.
The user can also configure the boot mode through the BOOT0/1 pins to select the proper
mode. The following boot modes are available:
1.
Normal mode: this is the standard way of booting the code and eventually load (or
restore) a new image version from the external NVM.
2.
Customer OTP write mode: in this mode the user can write its security keys and data
(e.g.: custom EUI48). After booting in this mode the security level is 2 (secure) or 4
(secure for customer loader) based on the selected option. In the security level 2 only
ciphered firmware can be loaded from an external memory while in the security level 4
the firmware upgrade is left to a customer bootloader.
3.
Unlocking mode: this is the boot mode that enables again all the debug feature.
4.
Low power mode: the minimal boot mode to guarantee low power operations. The
RTE is not enabled and the CortexTM-M4 code is executed as soon as possible at 24
MHz (the user can then scale the clock up or down).
The relationship between the security level and boot mode are shown in Table 5:
Table 5. Boot mode and security level relationship
Boot
mode
Normal
mode
Level 1
Yes
Customer
Yes go to level
OTP write
2 or 4
mode
Level 2
Level 3
Yes
Yes, but no update
If lock option
is performed on
selected for some
locked sector
area go to level 3
Level 4
Level 1*
Yes
(no update is
performed)
Yes
No
No
No
No
Unlocking
mode
Yes go to level
1*
Yes go to level
1*
Yes go to level
1*
Yes go to level
1*
Yes go to level
1*
Low power
mode
Yes
Yes
Yes
Yes
Yes
DocID028281 Rev 1
31/67
67
Description
STCOMET
Table 6 shows the values of the boot pins for each boot mode.
Table 6. Boot modes and BOOT0/1 pin values
1.14
Boot mode
BOOT1
BOOT0
Normal boot
0x2
0x0
Unlocking
0x1
Low power
0x3
System reprogrammability
The STCOMET supports both in-system and in-application programming (ISP and IAP)
modes through the use of the embedded Flash and an external non-volatile memory (NVM).
If the external NVM contains two firmware copies, it's also possible to roll back to the
previous firmware version in case of firmware malfunctioning. The change of firmware to
enable different functionalities will require a complete reset of the device if the customer
does not implement its own bootloader.
1.14.1
1.14.2
32/67
DocID028281 Rev 1
STCOMET
2.1
Pin definition
Figure 7. TQFP176 pinout
(1*0@
(1*0@
%7%%@7@*0
(1*0@
(1*0@
(1*0@
(1*0@
(1*0@
(1*0@
(1*0@
(1*0@
(1*0@
(1*0@
(1*0@
(1*0@
(1*0@
(1*0@
(1*0@
(1*0@
%7%%@7
%7%%@7@3&(
%7%%@7@*0
3&4&37&%
(1*0@
(1*0@
(1*0@
(1*0@
(1*0@
(1*0@
(1*0@
(1*0@
(1*0@
(1*0@
(1*0@
(1*0@
(1*0@
(1*0@
(1*0@
(1*0@
(1*0@
(1*0@
(1*0@
%7%%@7@*0
(1*0@
52'1
52'1
&YQPTFEQBEEPXO
(1*0@
(1*0@
%7%%@7@*0
(1*0@
(1*0@
(1*0@
(1*0@
(1*0@
(1*0@
(1*0@
(1*0@
(1*0@
(1*0@
(1*0@
(1*0@
(1*0@
(1*0@
(1*0@
(1*0@
(1*0@
(1*0@
(1*0@
(1*0@
(1*0@
(1*0@
(1*0@
(1*0@
(1*0@
(1*0@
"%$@73&'1
"%$@73&'/
04$@*/
04$@065
%7%%@7@*0
7#"5
35$@5".1 "
35$@5".1 #
.&53@(/%@&4%
.&53@71
.&53@7/
.&53@*/
.&53@*1
.&53@"/
.&53@"1
1(/%
17$$
1"@*//
1"@*/1
1"@*/1
1"@*//
"(/%
$4'
"7%%@7
3&4&37&%
"(/%
59%37@0651
59%37@065/
"7%%@7@59%37
"7%%@7@%"$
"(/%
%"$@0651
%"$@065/
%7%%@7@*0
(1*0@
(1*0@
(1*0@
(1*0@
(1*0@
(1*0@
(1*0@
(1*0@
%7%%@7@3&(
%7%%@7
3&4&5O
(1*0@
(1*0@
(1*0@
(1*0@
(1*0@
(1*0@
(1*0@
(1*0@
%7%%@7@*0
.&53@"7%%@7
.&53@"(/%@3&(
.&53@"7%%@7
.&53@"(/%
.&53@73&'
(1*0@
(1*0@
(1*0@
%7%%@7@*0
(1*0@
64"35@39%
64"35@59%
41*@44O
41*@4$-,
41*@.*40
41*@.04*
%7%%@7@'-"4)
%(/%
%7%%@7@'-"4)
3&4&37&%
#005
#005
+5"(@5345O
+5"(@5%*
+5"(@5.4
+5"(@5$,
+5"(@5%0
%7%%@7@.$-,
%7%%@7@*0
.$-,@*/
.$-,@065
%7%%@7@3&(
%7%%@7
%7%%@7@2'4
%7%%@7@2'4
%(/%
"7%%@7@1("
39@*//
39@*/1
"(/%
;$@*/
"(/%
"7%%@7@"'&
17$$
1(/%
1"@065
1"@065
1"@065
1"@065
".
DocID028281 Rev 1
33/67
67
STCOMET
Table 7. Pin description
Type(1) Dir.(2) RS(3)
Pin
Pin name
GPIO00_3
I/O
GPIO00_2
I/O
GPIO00_1
I/O
DVDD_3 V3_IO
GPIO00_0
I/O
USART0_RXD
USART0_RXD
USART0_TXD
USART0_TXD
SPI0_SSn
OD
SPI0_SSn
SPI0_SCLK
SPI0_SCLK
10
SPI0_MISO
SPI0_MISO
11
SPI0_MOSI
SPI0_MOSI
12
DVDD_1V2_FLASH
13
DGND
14
DVDD_3 V3_FLASH
15
RESERVED
16
BOOT0
17
BOOT1
18
JTAG_TRSTn
19
JTAG_TDI
20
JTAG_TMS
21
JTAG_TCK
22
JTAG_TDO
23
DVDD_1V2_ MCLK
24
DVDD_3 V3_IO
25
MCLK_IN
26
MCLK_OUT
27
DVDD_3 V3_REG
28
DVDD_1V2
I/O
I/O
29
DVDD_1V2_QFS
30
DVDD_3 V3_QFS
31
DGND
QFS ground
32
AVDD_5V_PGA
PGA 5 V supply
33
RX_INN
34/67
Description
DocID028281 Rev 1
STCOMET
Pin
Pin name
Description
34
RX_INP
35
AGND
PGA ground
36
ZC_IN
37
ZC_AGND_REF
38
AVDD_5V_AFE
39
PVCC
PA supply
40
PGND
PA ground
41
PA2_OUT
PA2 output
42
PA2_OUT
PA2 output
43
PA1_OUT
PA1 output
44
PA1_OUT
PA1 output
45
PGND
PA ground
46
PVCC
47
PA1_INN
48
PA1_INP
49
PA2_INP
50
PA2_INN
51
AGND
5 V regulator ground
52
CSF
I/O
I/O
53
AVDD_5V
I/O
I/O
54
RESERVED
55
AGND
56
TXDRV_OUTP
57
TXDRV_OUTN
58
AVDD_5V_TXDRV
59
AVDD_3 V3_DAC
60
AGND
61
DAC_OUTP
62
DAC_OUTN
63
DVDD_3 V3_IO
64
GPIO10_7
I/O
65
GPIO10_6
I/O
DocID028281 Rev 1
35/67
67
STCOMET
Table 7. Pin description (continued)
Type(1) Dir.(2) RS(3)
Pin
Pin name
66
GPIO10_5
I/O
67
GPIO10_4
I/O
68
GPIO10_3
I/O
69
GPIO10_2
I/O
70
GPIO10_1
I/O
71
GPIO10_0
I/O
72
DVDD_3 V3_REG
73
DVDD_1V2
I/O
I/O
74
RESETn
I/OD
I/OD
75
GPIO09_7
I/O
76
GPIO09_6
I/O
77
GPIO09_5
I/O
78
GPIO09_4
I/O
79
GPIO09_3
I/O
80
GPIO09_2
I/O
81
GPIO09_1
I/O
82
GPIO09_0
I/O
83
DVDD_3 V3_IO
84
METR_AVDD_3 V3
85
METR_AGND_REG
86
METR_AVDD_3 V0
87
METR_AGND
88
METR_VREF
89
METR_AP
90
METR_AN
91
METR_IP
92
METR_IN
93
METR_VN
94
METR_VP
95
METR_GND_ESD
36/67
Description
DocID028281 Rev 1
STCOMET
Pin
Pin name
Description
96
RTC_TAMPB
I/O
97
RTC_TAMPA
Tamper input A
98
VBAT
99
DVDD_3 V3_IO
100
OSC32_OUT
101
OSC32_IN
102
ADC_VREFN
103
ADC_VREFP
104
GPIO08_5
I/O
105
GPIO08_4
I/O
106
GPIO08_3
I/O
107
GPIO08_2
I/O
108
GPIO08_1
I/O
109
GPIO08_0
I/O
110
GPIO07_7
I/O
111
GPIO07_6
I/O
112
GPIO07_5
I/O
113
GPIO07_4
I/O
114
GPIO07_3
I/O
115
GPIO07_2
I/O
116
GPIO07_1
I/O
117
GPIO07_0
I/O
118
GPIO06_7
I/O
119
GPIO06_6
I/O
120
GPIO06_5
I/O
121
GPIO06_4
I/O
122
GPIO06_3
I/O
123
GPIO06_2
I/O
DocID028281 Rev 1
37/67
67
STCOMET
Table 7. Pin description (continued)
Type(1) Dir.(2) RS(3)
Pin
Pin name
124
GPIO06_1
I/O
125
GPIO06_0
I/O
126
GPIO05_7
I/O
127
GPIO05_6
I/O
128
GPIO05_5
I/O
129
GPIO05_4
I/O
130
DVDD_3 V3_IO
131
GPIO05_3
I/O
132
GPIO05_2
I/O
133
GPIO05_1
I/O
134
GPIO05_0
I/O
135
DVDD_3 V3_IO
136
GPIO04_7
I/O
137
GPIO04_6
I/O
138
GPIO04_5
I/O
139
GPIO04_4
I/O
140
GPIO04_3
I/O
141
GPIO04_2
I/O
142
GPIO04_1
I/O
143
GPIO04_0
I/O
144
GPIO03_7
I/O
145
GPIO03_6
I/O
146
GPIO03_5
I/O
147
GPIO03_4
I/O
148
GPIO03_3
I/O
149
GPIO03_2
I/O
150
GPIO03_1
I/O
151
GPIO03_0
I/O
38/67
Description
DocID028281 Rev 1
STCOMET
Pin
Pin name
Description
152
DVDD_1V2
I/O
I/O
153
DVDD_3 V3_REG
154
DVDD_3 V3_IO
155
RESERVED
156
GPIO02_7
I/O
157
GPIO02_6
I/O
158
GPIO02_5
I/O
159
GPIO02_4
I/O
160
GPIO02_3
I/O
161
GPIO02_2
I/O
162
GPIO02_1
I/O
163
GPIO02_0
I/O
164
GPIO01_7
I/O
165
GPIO01_6
I/O
166
GPIO01_5
I/O
167
GPIO01_4
I/O
168
GPIO01_3
I/O
169
GPIO01_2
I/O
170
GPIO01_1
I/O
171
GPIO01_0
I/O
172
GPIO00_7
I/O
173
GPIO00_6
I/O
174
GPIO00_5
I/O
DocID028281 Rev 1
39/67
67
STCOMET
Table 7. Pin description (continued)
Type(1) Dir.(2) RS(3)
Pin
Pin name
Description
175
DVDD_3 V3_IO
176
GPIO00_4
I/O
177
EXPAD
40/67
DocID028281 Rev 1
STCOMET
2.2
Selection: 000
Selection: 001
Selection: 010
GPIO00_0
USART0_RTS
FSMC_PCAD_20
GPIO00_1
USART0_CTS
FSMC_PCAD_19
GPIO00_2
SPI1_SS
AT1_BKIN
FSMC_PCAD_18
GPIO00_3
SPI1_MOSI
AT1_CH_1
FSMC_PCAD_17
GPIO00_4
SPI1_MISO
AT1_CH_2
FSMC_PCAD_16
GPIO00_5
SPI1_SCLK
AT1_CH_3
FSMC_PCAD_15
GPIO00_6
I2C0_SDA
AT1_CH_4
FSMC_PCAD_14
GPIO00_7
I2C0_SCL
AT1_CHN_1
FSMC_PCAD_13
GPIO01_0
I2C0_SMBA
AT1_CHN_2
FSMC_PCAD_12
GPIO01_1
USART1_TXD
AT1_CHN_3
FSMC_PCAD_11
GPIO01_2
USART1_RXD
AT1_ETR
FSMC_PCAD_10
GPIO01_3
USART1_RTS
CAN0_TX
FSMC_PCAD_9
GPIO01_4
USART1_CTS
CAN0_RX
FSMC_PCAD_8
GPIO01_5
I2C1_SDA
CAN1_TX
FSMC_PCAD_7
GPIO01_6
I2C1_SCL
CAN1_RX
FSMC_PCAD_6
GPIO01_7
AT0_ETR
I2C2_SMBA
FSMC_PCAD_5
GPIO02_0
AT0_CH_4
I2C2_SDA
FSMC_PCAD_4
GPIO02_1
AT0_CHN_3
I2C2_SCL
FSMC_PCAD_3
GPIO02_2
AT0_CH_3
FSMC_PCAD_2
GPIO02_3
AT0_CHN_2
FSMC_PCAD_1
USART4_RTS
GPIO02_4
AT0_CH_2
FSMC_PCAD_0
USART4_CTS
GPIO02_5
AT0_CHN_1
FSMC_PCOEn
USART4_RXD
GPIO02_6
AT0_CH_1
FSMC_PCWEn
USART4_TXD
GPIO02_7
AT0_BKIN
FSMC_Lbar
USART4_SCLK
GPIO03_0
SPI2_MOSI
USART3_TXD
FSMC_PCDA_15
GPIO03_1
SPI2_MISO
USART3_RXD
FSMC_PCDA_14
GPIO03_2
SPI2_SCLK
USART3_RTS
FSMC_PCDA_13
GPIO03_3
SPI2_SS
USART3_CTS
FSMC_PCDA_12
GPIO03_4
SPI3_MOSI
FSMC_PCDA_11
DocID028281 Rev 1
Selection: 011
USART0_SCLK
USART1_SCLK
I2C1_SMBA
USART3_SCLK
41/67
67
STCOMET
Selection: 000
Selection: 001
Selection: 010
GPIO03_5
SPI3_MISO
FSMC_PCDA_10
GPIO03_6
SPI3_SCLK
FSMC_PCDA_9
GPIO03_7
SPI3_SS
FSMC_PCDA_8
GPIO04_0
FSMC_PCDA_7
GPIO04_1
FSMC_PCDA_6
GPIO04_2
FSMC_PCDA_5
GPIO04_3
FSMC_PCDA_4
GPIO04_4
FSMC_PCDA_3
GPIO04_5
FSMC_PCDA_2
GPIO04_6
USART2_RTS
SPI2_MOSI
FSMC_PCDA_1
GPIO04_7
USART2_CTS
SPI2_MISO
FSMC_PCDA_0
GPIO05_0
USART2_TXD
SPI2_SCLK
FSMC_BLn_1
GPIO05_1
USART2_RXD
SPI2_SS
FSMC_BLn_0
GPIO05_2
USART2_SCLK
FSMC_Ebar_0
GPIO05_3
GPIO05_4
Selection: 011
FSMC_Ebar_1
MCO1
GPIO05_5
USART0_RTS
GPIO05_6
USART0_CTS
GPIO05_7
USART3_SCLK
I2C2_SMBA
GPIO06_0
USART3_TXD
I2C2_SDA
GPIO06_1
USART3_RXD
I2C1_SMBA
GPIO06_2
USART3_RTS
I2C1_SDA
ETM_CLKOUT
GPIO06_3
USART3_CTS
I2C1_SCL
ETM_DATA_0
GPIO06_4
SPI4_MOSI
GPIO06_5
SPI4_MISO
METROLOGY_LED_0
ETM_DATA_2
GPIO06_6
SPI4_SCLK
METROLOGY_LED_1
ETM_DATA_3
GPIO06_7
SPI4_SS
METROLOGY_ZCOUT
ETM_SWO
GPIO07_0
AT1_BKIN
CAN0_TX
GPIO07_1
AT1_CH_1
CAN0_RX
GPIO07_2
AT1_CH_2
GPIO07_3
AT1_CH_3
GPIO07_4
AT1_CH_4
SPI1_SS
GPIO07_5
AT1_CHN_1
SPI1_MOSI
GPIO07_6
AT1_CHN_2
SPI1_MISO
GPIO07_7
AT1_CHN_3
SPI1_SCLK
42/67
I2C2_SCL
ETM_DATA_1
DocID028281 Rev 1
STCOMET
Pin name
Selection: 000
Selection: 001
Selection: 010
Selection: 011
GPIO08_0
ADC_CH_0
USART1_TXD
I2C1_SDA
AT1_ETR
GPIO08_1
ADC_CH_1
USART1_RXD
I2C1_SCL
GPIO08_2
ADC_CH_2
USART1_RTS
SPI3_MOSI
GPIO08_3
ADC_CH_3
USART1_CTS
SPI3_MISO
GPIO08_4
ADC_CH_4
SPI3_SCLK
GPIO08_5
ADC_CH_5
SPI3_SS
USART2_SCLK
GPIO09_0
CAN1_TX
USART2_TXD
GPIO09_1
CAN1_RX
USART2_RXD
GPIO09_2
ETM_CLKOUT
USART2_RTS
METROLOGY_LED_0
ETM_DATA_0
USART2_CTS
GPIO09_4
METROLOGY_LED_1
ETM_DATA_1
SPI4_SS
GPIO09_5
METROLOGY_ZCOUT
ETM_DATA_2
SPI4_MOSI
GPIO09_6
USART3_SCLK
ETM_DATA_3
SPI4_MISO
GPIO09_7
AT0_ETR
ETM_SWO
SPI4_SCLK
GPIO10_0
AT0_CHN_3
USART3_TXD
GPIO10_1
AT0_CHN_2
USART3_RXD
GPIO10_2
AT0_CHN_1
USART3_RTS
I2C0_SMBA
GPIO09_3
MCO2
GPIO10_3
USART4_RTS
AT0_CH_4
USART3_CTS
I2C2_SMBA
GPIO10_4
USART4_CTS
AT0_CH_3
SPI2_MOSI
I2C0_SDA
GPIO10_5
USART4_RXD
AT0_CH_2
SPI2_MISO
I2C0_SCL
GPIO10_6
USART4_TXD
AT0_CH_1
SPI2_SCLK
I2C2_SDA
GPIO10_7
USART4_SCLK
AT0_BKIN
SPI2_SS
I2C2_SCL
DocID028281 Rev 1
43/67
67
Memory map
STCOMET
Memory map
Figure 8. Memory map
0xFFFF.FFFF
Reserved
0x6800.0000
0x67FF.FFFF
FSMCBank1
FSMCBank0
Reserved
Com2
Reserved
Com1
Basic
Reserved
IPCregs
0x4000.5FFF
0x4000.4FFF
0x4000.3FFF
0x4000.2FFF
COM1APBGPIO2
0x4001.8FFF
0x4001.7FFF
0x4001.6FFF
0x4001.5FFF
COM1APBGPIO1
0x4001.4FFF
COM1APBGPIO0
0x4001.3FFF
COM1APBAT0
0x4001.2FFF
COM1APBSPI1
0x4001.1FFF
COM1APBSPI0
0x4001.0FFF
IPC(8K)
0x4000.1FFF
COM1APBI2C0
0x4000.0FFF
0x4000.0000
RAM64K
0x2000.0000
COM1APBCAN0
COM1APBUART1
COM1APBUART0
BasicAPBWWDOG
0x4004.FFFF
Reserved
0x4004.6000
BasicAPBRTC
0x4004.5FFF
CryptoAPBTRNG
0x4004.5000
0x4004.4FFF
0x4004.2FFF
0x4004.0FFF
0x4004.0000
44/67
0x4002.7FFF
COM2APBADC
0x4002.6FFF
COM2APBSPI4
0x4002.5FFF
COM2APBSPI3
0x4002.4FFF
COM2APBSPI2
0x4002.3FFF
COM2APBI2C1
COM2APBCAN1
DocID028281 Rev 1
0x4002.1FFF
COM2APBUART3
0x4002.1000
0x4002.0FFF
0x4002.0000
CryptoAPBPRNG
CryptoAPBAES
CryptoAPBCRC
CryptoAPBUSART4
0x4004.1000
eFLASH
(Read/Write)
COM2APBAT1
0x4002.2000
0x4004.1FFF
0x0000.0000
0x4002.8FFF
0x4002.2FFF
0x4004.2000
0x002F.FFFF
COM2APBGPIO5
0x4002.3000
BasicAPBGPT0
0x4004.3FFF
0x0030.0000
0x4002.9FFF
0x4002.4000
0x4004.3000
COM2APBGPIO6
0x4002.5000
0x4004.4000
0x1FFF.FFFF
0x4002.AFFF
0x4002.6000
0x4001.0000
0x4000.1000
RAM64K
COM2APBGPIO7
0x4002.7000
0x4001.1000
BasicAPBGPT1
0x4002.BFFF
0x4002.8000
0x4001.2000
BasicAPBGPT2
COM2APBGPIO8
0x4002.9000
0x4001.3000
BasicAPBGPT3
0x4002.CFFF
0x4002.A000
0x4001.4000
BasicAPBGPT4
COM2APBGPIO9
0x4002.B000
0x4001.5000
BasicAPBGPT5
0x4002.DFFF
COM2APB
GPIO10
0x4002.C000
0x4000.2000
0x2001.0000
0x2000.FFFF
0x4000.6FFF
0x4001.9FFF
Reserved
0x4002.D000
0x4001.6000
0x4000.3000
0x2002.0000
0x2001.FFFF
BasicAPBGPT7
BasicAPBGPT6
0x4000.7FFF
COM1APBGPIO3
0x4001.7000
0x4000.4000
0x2002.2000
0x2002.1FFF
BasicAPBSYSCTRL
0x4000.5000
0x2002.3000
0x2002.2FFF
0x4000.8800
0x4001.AFFF
0x4002.EFFF
0x4002.E000
0x4001.8000
0x4000.6000
0x4000.0000
0x3FFF.FFFF
BasicAPBeFLASH
0x4000.7000
0x4001.0000
0x4000.FFFF
0x4000.9000
COM1APBGPIO4
0x4001.9000
0x4000.8000
0x4001.C000
0x4001.BFFF
BasicAPBMISC
0x4000.87FF
0x4002.0000
0x4001.FFFF
0x4000.A000
Reserved
0x4002.F000
0x4002.EFFF
0x4000.C000
0x4001.BFFF
0x4002.FFFF
0x4002.F000
0x4001.A000
0x4000.8FFF
Metrology
0x4003.0000
0x4002.FFFF
BasicAPBFSMC
0x4000.9FFF
Reserved
0x4003.1000
0x4003.0FFF
0x4000.DFFF
Reserved
0x4001.B000
0x4000.BFFF
Crypto
0x4004.0000
0x4003.FFFF
BasicAHBDMAC
0x4000.D000
0x4000.CFFF
0x4004.6000
0x4004.5FFF
0x4000.EFFF
0x4001.FFFF
0x4001.C000
0x4000.E000
0x6000.0000
0x5FFF.FFFF
BasicAHBATT
0x4000.F000
0x6400.0000
0x63FF.FFFF
0x4000.FFFF
CryptoAPBI2C2
COM2APBUART2
STCOMET
Electrical characteristics
Electrical characteristics
4.1
Min.
Max.
Unit
PGND -0.3
20
AVDD_5V
AGND -0.3
AVDD_5V_AFE,
AVDD_5V_PGA,
AVDD_5V_TXDRV
AGND -0.3
AVDD_3 V3_DAC
AGND -0.3
5.2
M_GND_REG -0.3
5.2
GND-0.3
5.2
DGND -0.3
5.2
GND -0.3
2.4
GND -0.3
2.4
ADC_VREFP
GND -0.3
Min. (5.2,
DVDD_3V3_IO + 0.3)
ADC_VREFN
GND -0.3
Min. (5.2,
DVDD_3V3_IO + 0.3)
GND -0.3
5.2
GND -0.3
GND +0.3
AGND -0.3
AGND +0.3
GND -0.3
Min. (5.2,
DVDD_3V3_IO + 0.3)
PGND -0.3
PA_IN
AGND -0.3
RX_IN
-5.5
ZC_IN
-5.5
Min. (5.5,
AVDD_5V_ AFE +0.3)
AGND -0.3
Min. (5.2,
AVDD_5V_ AFE +0.3)
AGND -0.3
Min (. 5.5,
AVDD_5V_ AFE +0.3)
AGND-0.3
AVDD_5V +0.3
PVCC
METR_AVDD_3 V3
DVDD_3 V3_IO,
DVD_3 V3_REG
DVDD_3 V3_QFS
Parameter
DVDD_1V2,
1.2 V digital supply voltage range
DVDD_1V2_FLASH
DVDD_1V2_QFS
VBAT
DGND, AGND,
METR_AGND,
Variations between different ground pins
METR_AGND_REG,
METR_GND_ESD
PGND
V(DIG_IN)
PA_OUT
DAC_OUT
TXDRV_OUT
CSF
DocID028281 Rev 1
45/67
67
Electrical characteristics
STCOMET
Parameter
Min.
Max.
Unit
V(METR_ INPUT)
METR_GND_ESD
-0.3
METR_GND_ESD
+0.3
V(MCLK)
GND-0.3
Min. (5.2,
DVDD_3 V3_IO+0.3)
V(OSC32)
GND-0.3
Min. (5.2,
DVDD_3V3_IO + 0.3)
-2
+2
kV
Max.
Unit
1.5
A rms
V(ESD)
4.2
Parameter
Min.
Thermal characteristics
Table 11. Thermal characteristics
Symbol
T(J)
46/67
Parameter
Conditions
Min.
Junction temperature
Max.
Unit
125
T(AMB)
-40
85
T(STG)
Storage temperature
-50
150
DocID028281 Rev 1
STCOMET
4.3
Electrical characteristics
Operating conditions
T(AMB) = -40 to +85 C, T(J) < 125 C, PVCC = 18 V unless otherwise specified.
All typical values are referred to T(AMB) = 25 C.
Parameter(1)
V(PVCC)
I(PVCC)_RX
I(PVCC)_TX
Conditions
Min.
Typ.
15
Max. Unit
18
No load on AVDD_5V
500
No load on AVDD_5V
Dual power amplifier
configuration
40
mA
No load on AVDD_5V
Single power amplifier
configuration
20
mA
V(PVCC)_TH
V(PVCC)_TL
6.5
V(PVCC)_HYST
0.5
V(AVDD_5V)
5 V regulator output
voltage , no load
4.5
5.5
V(AVDD_5V_AFE)_TH
4.33
V(AVDD_5V_AFE)_TL
4.26
60
mV
V(AVDD_5V_AFE)_HYST
I(5V)_RX
I(5V)_TX
See(2)
PGA maximum gain
54
mA
See(2)
PGA maximum gain
Rx in progress
61
mA
See(2)
mA
1.6
mA
mA
I(AVDD_3V3_DAC)
RX
I(AVDD_3V3_DAC)
TX
DocID028281 Rev 1
47/67
67
Electrical characteristics
STCOMET
Symbol
Conditions
Min.
Typ.
3.0
3.3
Max. Unit
V(DVDD_3V3_IO)
V(DVDD_3V3_IO)_TH
2.82
V(DVDD_3V3_IO)_TL
2.7
V(DVDD_3V3_IO)_HYST
0.1
3.3
V(DVDD_3V3_REG)
3.6
V(DVDD_1V2)
1.233
1.285
I(DVDD_1V2)
15
mA
300
mA
V(DVDD_1V2)_TH
1.11
V(DVDD_1V2)_TL
1.025
V(DVDD_1V2)_HYST
86
mV
86
mV
METR_AVDD_3V3
V(METR_AVDD_3V3)_TH
METR_AVDD_3V0
2.95
METR_AVDD_3V3 = 3.3 V;
CL = 100 nF; no loads
3.3
3.65
2.5
3.08
Parameter(1)
Conditions
Min.
Typ.
Max. Unit
29
mA
68
mA
48/67
DocID028281 Rev 1
STCOMET
Electrical characteristics
Table 14. Metrology power consumption
Symbol
Parameter
I(DVDD_1V2)
Conditions
I(METR_AVDD_3V3)
Typ.
Max. Unit
See(1)
0.4
mA
(1)
2.7
mA
See
Min.
1. The tests are performed with the following enabled digital blocks: 2 x GPT, 2 x SPI, 2 x USART, IPC, DMA, 2 x I2C, AES,
TRNG, QFS. Cortex frequency equals to 96 MHz and Cortex fetching by RAM. The values are calculated by measuring
the difference in the supply current with and without metrology enabled and running.
Parameter
Conditions
Min.
Typ.
Max.
Unit
see(1)
9.6
mA
I(DVDD_1V2)
I(DVDD_3V3)
0.9
mA
see(1)
I(DVDD_1V2)
I(DVDD_3V3)
16.4
mA
(1)
0.9
mA
(1)
23.8
mA
I(DVDD_1V2)
I(DVDD_3V3)
0.9
mA
(1)
30.9
mA
(1)
0.9
I(DVDD_1V2)
I(DVDD_3V3)
mA
2
1. All the tests are performed with the following enabled digital blocks: 2 x GPT, 2 x SPI, 2 x USART, IPC, DMA, 2 x I C, AES,
TRNG, QFS.
Table 16. Digital supply characteristics - Cortex-M4 fetching data from eFlash
Symbol
Parameter
Conditions
Min.
Typ.
Max. Unit
I(DVDD_1V2)
11.2
mA
I(DVDD_3V3)
3.5
mA
I(DVDD_1V2)
17.6
mA
(1)
3.6
mA
(1)
I(DVDD_3V3)
I(DVDD_1V2)
24.2
mA
I(DVDD_3V3)
3.7
mA
I(DVDD_1V2)
30.6
mA
(1)
I(DVDD_3V3)
3.8
mA
2
1. All the tests are performed with the following enabled digital blocks: 2 x GPT, 2 x SPI, 2 x USART, IPC, DMA, 2 x I C, AES,
TRNG, QFS.
DocID028281 Rev 1
49/67
67
Electrical characteristics
STCOMET
Parameter
Conditions
Min.
(1)
Typ.
Max. Unit
6.5
mA
0.9
mA
(1)
6.5
mA
0.9
I(DVDD_1V2)
I(DVDD_3V3)
mA
2
1. The test is performed with the following enabled digital blocks: 2 x GPT, 2 x SPI, 2 x USART, IPC, DMA, 2 x I C, AES,
TRNG.
Parameter
Conditions
I(DVDD_1V2_QFS)
5.1
mA
I(DVDD_3V3_QFS)
1.1
mA
1. The test is performed with the following enabled digital blocks: 2 x GPT, 2 x SPI, 2 x USART, IPC, DMA, 2 x I2C, AES,
TRNG. The value is calculated by measuring the difference in the supply current with and without QFS enabled and running.
Parameter
Conditions
Min.
See(1)
See(1)
10
MHz
3.5
pF
60
15
pF
Parameter
Conditions
Typ.
See(1)
DocID028281 Rev 1
Max. Unit
32.768
kHz
0.9
pF
50/67
Min.
60
12.5
k
pF
STCOMET
Electrical characteristics
Table 21. Digital supply characteristics - I/O
Symbol
Parameter
Conditions
I(DVDD_3V3_IO)
23.0
mA
I(DVDD_3V3_IO)
24.9
mA
I(DVDD_3V3_IO)
49.4
mA
1. The tests are performed with the following enabled digital blocks: 2 x GPT, 2 x SPI, 2 x USART, IPC, DMA, 2 x I2C, AES,
TRNG, QFS. Cortex frequency equals to 96 MHz and Cortex fetching by RAM. The values are calculated by measuring
the difference in the supply current with and without 8 GPIOs enabled and toggling at the given frequency.
Symbol
Conditions
I (I/O)
See(1)
(1)
See
mA
Parameter
Conditions
I(DVDD_VBAT)
Min.
Typ.
Max.
Unit
A
1.3
4.4
4.4.1
Symbol
V(PAx_OUT)
BIAS
Parameter
Conditions
GBWP
Power amplifier
Gain-bandwidth product
I(PAx_OUT)
MAX
Power amplifier
Maximum output current
V(PAx_OUT)
HD2
V(PAx_OUT)
HD3
V(PAx_OUT)
THD
Min.
Typ.
Max.
PVCC/2
149
MHz
1000
VCC = 18 V,
V(PA_OUT) = 13 Vpp,
Rload = 50 ,
f = 100 kHz
V(PA_OUT) DC = PVCC/2
DocID028281 Rev 1
Unit
mA rms
-64
dBc
-67
dBc
-61
dB
51/67
67
Electrical characteristics
STCOMET
Parameter
Conditions
V(PAx_OUT)
HD2
V(PAx_OUT)
HD3
V(PAx_OUT)
THD
C(PAx_INP),
C(PAx_INN)
CSF_RATIO
Typ.
Max.
Unit
VCC = 18 V,
V(PA_OUT) = 13 Vpp,
Rload = 50 ,
f = 500 kHz
V(PA_OUT) DC = PVCC/2
-57
dBc
-58
dBc
-54
dB
10
pF
10
pF
50 Hz
-100
dB
1 kHz
-88
dB
PSRR
Min.
(see(1)
106
4.4.2
5
9&&
5
&
Q)
3$[ B,11
&
3$[ B287
&
6,*1$/,1
3$[ B,13
Q)
5B/2$'
5
$0
52/67
DocID028281 Rev 1
STCOMET
4.4.3
Electrical characteristics
AFE characteristics
Transmission path characteristics
Table 25. DAC characteristics
Symbol
Parameter
Conditions
Min.
Typ.
Max.
Unit
I(DAC_OUT)
CURRENT
mA
I(DAC_OUT)
CURRENT
mA
V(DAC_OUT)
Tx mode, differential
Rload = 120 1%
Vpp
-76
dBc
-83
dBc
-74
dBc
-74
dBc
-82
dBc
-73
dBc
2nd
V(DAC_OUT)
HD2
DAC output
harmonic distortion
V(DAC_OUT)
HD3
V(DAC_OUT)
THD
V(DAC_OUT)
HD2
V(DAC_OUT)
HD3
V(DAC_OUT)
THD
R(DAC_OUT) = 120
Fclk = 20 MHz
Fout = 100 kHz
R(DAC_OUT) = 120
Fclk = 20 MHz
Fout = 500 kHz
Parameter
Transmitter output bias
voltage
V(TX_OUT) HD2
V(TX_OUT) HD3
V(TX_OUT) THD
Conditions
Min.
Rx mode
Typ.
AVDD_5V_TXDRV/2
Max.
Unit
V
k
-76
dBc
-83
dBc
-74
dB
V(TX_OUT) HD2
-74
dBc
V(TX_OUT) HD3
-82
dBc
V(TX_OUT) THD
-73
dB
V(TX_OUT) = 4.7 V
pk-pk, no load,
Fout = 100 KHz
V(TX_OUT) = 4.7 V
pk-pk, no load,
Fout = 500 KHz
DocID028281 Rev 1
53/67
67
Electrical characteristics
STCOMET
V(RX_INP RX_INN)
Parameter
Conditions
Min.
Typ. Max.
Unit
16
dBV
12
dBV
dBV
dBV
22
dBV
17
dBV
21
dBV
Parameter
Conditions
Min.
Typ.
Max.
Unit
V(RX_INP),
V(RX_INN)
Single-ended mode
10
V p-p
V(RX_INPRX_INN)
Differential mode
20
V p-p
AVDDD_5
V_PGA/2
5.2
-12
dB
42
dB
dB
GPGA(PLC)
Conditions
Differential mode
Resolution
54/67
DocID028281 Rev 1
Min.
Typ.
Max.
Unit
V p-p
12
bit
STCOMET
Electrical characteristics
Parameter
Conditions
Min.
Typ.
Max.
Unit
10
V p-p
V(ZC_IN)
MAX
Zero crossing
Detection input
Voltage range
V(ZC_IN)
TL
Zero crossing
Detection input
Low threshold
-6
mV
V(ZC_IN)
TH
Zero crossing
Detection input
High threshold
+6
mV
ZC_IN
d.c.
Zero crossing
Input duty cycle
50
5.8
4.5
Metrology characteristics
Table 31. General section
Symbol
OSF
Fs
Parameter
Conditions
Min.
Typ.
Oversampling frequency
Sampling frequency after decimation
Max.
Unit
MHz
7.8125
kHz
AW
Parameter
Conditions
Min.
Typ. Max.
Unit
0.1
0.5
RW
Reactive energy
0.1
RMS
Voltage RMS
0.5
Current RMS
0.5
fBW
Effective bandwidth -3 dB
3.6
PSSR(DC)
Power supply DC
rejection
90
dB
PSSR(AC)
Power supply AC
rejection
120
dB
DocID028281 Rev 1
kHz
55/67
67
Electrical characteristics
STCOMET
Table 33. Analog inputs
Symbol
Parameter
GPGA(METR)
GPGA(METR)_Step
Conditions
Max.
Unit
dB
Metrology PGA
maximum gain
24
dB
dB
Maximum input
signal levels
Voff
ZIP
METR_VP,
METR_VN
Impedance
ZIN
Typ.
Metrology PGA
minimum gain
METR_VP-METR_VN channel
VMAX
Min.
METR_IP,
METR_IN,
METR_AP,
METR_AN
impedance
GERR
Current channels
gain error
IILV
Voltage channel
input current
IILI
Current channel
input current
-0.3
+0.3
METR_IP-METR_IN /
METR_AP-METR_AN channels
Gain 2 x
-0.3
Gain 4 x
-0.15
Gain 8 x
-0.075
Gain 16 x
-0.0375
+0.3
+0.15
+0.075
+0.0375
250
90
170
300
510
-10
+10
-1
-1
Parameter
Conditions
Reference voltage
Typ.
Max.
1.17
After calibration default
condition(1)
Temperature coefficient
56/67
Min.
DocID028281 Rev 1
30
Unit
V
50
ppm/C
STCOMET
4.5.1
Electrical characteristics
5
5
&
Q)
&
Q)
5
&
Q)
5
/,1(B/2$'
0(75B,3
0(75B,1
0(75B93
0(75B91 0(75B$3
0(75B$1
&
Q)
5
5B6+817
P
/,1(
/,1(
5
5
&
Q)
&855(1775$16)250(5
5
$0
Parameter
Value (typ.)
Unit
43000
pulse/kWh
CP
Pulse constant
INOM
A rms
Imin
0.1
A rms
Imax
100
A rms
KV = R4/(R1 + R2 + R3 + R4)
1650:1 4%
V/V
0.3 5%
mA/V
2.4 5%
mA/V
50
ppm/C
KS
TC
Measurement error
The power measurement error is defined by the following equation:
e% = (measured power - true power) / true power
All measurements come from the comparison with a higher class (0.02% error) power meter
reference.
DocID028281 Rev 1
57/67
67
Electrical characteristics
4.5.2
STCOMET
58/67
DocID028281 Rev 1
STCOMET
Electrical characteristics
Figure 13. Active energy error vs. frequency at AI =2x, T = 25 C, power factor PF = 1
Figure 14. Active energy error vs. frequency at AI = 2x, T = 25 C, power factor PF = 0.8
DocID028281 Rev 1
59/67
67
Electrical characteristics
STCOMET
Figure 15. Active energy error vs. frequency at AI = 2x, T = 25 C, power factor PF = 0.5
60/67
DocID028281 Rev 1
STCOMET
Electrical characteristics
Figure 17. Reactive energy error vs. current at AI = 16x ,T = 25 C,
load current phase phi = (90, -90, 60, -60)
DocID028281 Rev 1
61/67
67
Electrical characteristics
4.6
STCOMET
Symbol
Conditions
18
50
500
1.3
1.65
33
2.6
6.6
66
tER16K
0.2
0.5
5.0
tER32K
0.3
0.6
5.0
tER64K
0.4
0.9
5.0
tER128K
0.6
1.3
5.0
tMKER
4.8
7.6
55
tBKER
12.6
91
tPABT
10
10
tEABT
30
30
tESUS
30
30
tESRT
ms
Typ.
Max.
20
Symbol
NEND
Endurance
Min.(1)
Conditions
TA = -40 to +85 C
(2)
tRET
Data retention
1 kcycle at TA = +85 C
(2)
1 kcycles
at TA = +55 C
62/67
DocID028281 Rev 1
(see(2))
Unit
1K
Cycles
15
Years
30
Years
STCOMET
Electrical characteristics
Table 38. Flash memory current consumption
Symbol
Parameter
Conditions
I(Flash_VDD3V3)
1.6
mA
I(Flash_VDD1V2)
12.3
mA
1. During characterization, not tested in production. The values exclude the consumption from other pins.
DocID028281 Rev 1
63/67
67
Package information
STCOMET
Package information
In order to meet environmental requirements, ST offers these devices in different grades of
ECOPACK packages, depending on their level of environmental compliance. ECOPACK
specifications, grade definitions and product status are available at: www.st.com.
ECOPACK is an ST trademark.
5.1
74)3
64/67
DocID028281 Rev 1
STCOMET
Package information
Table 39. TQFP176 (20 x 20 x 1 mm) package mechanical data
Dimensions (millimeters)
Symbol
Min.
Typ.
1.20
A1
0.05
A2
0.95
1.00
1.05
0.13
0.18
0.23
0.09
21.80
22.00
22.20
D1
19.80
20.00
20.20
0.127
0.20
D2
8.70
D3
17.20
21.80
22.00
22.20
E1
19.80
20.00
20.20
E2
8.70
E3
17.20
0.40
0.45
0.60
L1
0.75
1.00
3.5
ccc
5.2
Max.
7
0.08
Thermal data
Table 40. Thermal data
Symbol
RthJA
Parameter
Conditions
DocID028281 Rev 1
Typ.
value
Unit
34
C/W
65/67
67
Ordering information
STCOMET
Ordering information
Table 41. Ordering information
Order code
Package
Packing
eFlash size
STCOMET10
Tray
1 MB
STCOMET05
Tray
640 kB
Revision history
Table 42. Document revision history
66/67
Date
Revision
01-Sep-2015
Changes
Initial release.
DocID028281 Rev 1
STCOMET
DocID028281 Rev 1
67/67
67