Datenblatt für PCap02A von ScioSense

acam-messelectronic gmbH
is now
Member of the
ams Group
The technical content of this acam-messelectronic document is still valid.
Contact information:
Headquarters:
ams AG
Tobelbaderstrasse 30
8141 Unterpremstaetten, Austria
Tel: +43 (0) 3136 500 0
e-Mail: ams_sales@ams.com
Please visit our website at www.ams.com
SEEM mess-electronic Volume 1: General lleta Ind Front-end Description May 29, 2014, Version 1.8
®
Data Sheet
PCapØ2A
May 29, 2014, Version 1.6
Document-No: DB_PCapØ2A_Vol1_en.pdf
Single-chip Solution for Capacitance Measurement
Volume 1: General Data and Front-end Description
Member of the ams Group
y acam dz
®PCapØ2A
acam messelectronic gmbh - Friedrich-List-Str.4 - 76297 Stutensee - Germany - www.acam.de
Published by acam-mes selectronic gmbh
©acam-messelectronic gmbh 2014
Limitation of Liability/ Warranty/ Copyright
The information and data contained in this document are believed to be accurate and
reliable. acam assumes no liability for errors and gives no warranty representation or
guarantee regarding the suitability of its products for any particular purpose due to these
specifications. Any information and data which may be provided in the document can and
do vary in different applications, and actual performance may vary over time. All operating
parameters must be validated for each customer application by customers technical
experts.
The information contained therein may be protected by copyright, patent, trademark
and/or other intellectual property rights of acam. acam does not assume responsibility for
patent infringements or other rights of third parties which may result from its use.
acam reserves the right to review this document and to make changes to the documents
content at any time without obligation to notify any person or entity of such revision or
changes. Preliminary product information describes a product which is not in full
production so that full information about the product is not available yet.
Do not use our products in life-supporting systems, aviation and aerospace applications!
Unless explicitly agreed to otherwise in writing between the parties, acam’ products are
not designed, intended or authorized for use as components in systems intended for
surgical implants into the body, or other applications intended to support or sustain life, or
for any other application in which the failure of the product could create a situation where
personal injury or death could occur.
No part of this publication may be reproduced, photocopied, stored on a retrieval system
or transmitted without the express written consent of acam.
All rights not expressly granted remain reserved by acam., , and
are registered trademarks of acam. All other brand and product names in this
document are trademarks or service marks of their respective owners.
Support / Contact
For a complete listing of Direct Sales, Distributor and Sales Representative contacts, visit
the acam web site at:
http://www.acam.de/sales/distributors/
For technical support you can contact the acam support team in the headquarters in
Germany or the Distributor in your country. The contact details of acam in Germany are:
support@acam.de or by phone +49-7244-74190.
Member of the ams Group
EEEI'H ness-e’lectron'lc
PCapØ2A
acam messelectronic gmbh - Friedrich-List-Str.4 - 76297 Stutensee - Germany - www.acam.de 1
Content
1 Overview .................................................................................................. 1-1
1.1 Features ............................................................................................. 1-1
1.2 Applications ........................................................................................ 1-2
1.3 Blockdiagram ...................................................................................... 1-2
2 Characteristics & Specifications ................................................................... 2-1
2.1 Electrical Characteristics ....................................................................... 2-1
2.2 CDC Precision ..................................................................................... 2-2
2.3 RDC Precision ..................................................................................... 2-3
2.4 Oscillators .......................................................................................... 2-4
2.5 Power Consumption .............................................................................. 2-1
2.6 Package Information ............................................................................. 2-2
2.7 QFN Packages ..................................................................................... 2-4
3 Converter Frontend .................................................................................... 3-1
3.1 CDC, Capacitance-to-Digital Converter ...................................................... 3-1
3.2 CDC Compensation Options .................................................................... 3-7
3.3 CDC Important Parameters .................................................................... 3-9
3.4 RDC Resistance-to-Digital Converter ...................................................... 3-12
3.5 RDC Important Parameters .................................................................. 3-15
4 Interfaces (Serial & PDM/PWM) .................................................................. 4-1
4.1 Serial Interfaces................................................................................... 4-1
4.2 I²C Compatible Interface ........................................................................ 4-2
4.3 SPI interface ....................................................................................... 4-3
4.4 Special Timings .................................................................................... 4-5
4.5 OTP Timings ........................................................................................ 4-7
4.6 GPIO and PDM/PWM ......................................................................... 4-10
4.7 Interfaces Parameters ........................................................................ 4-15
5 Configuration & Read Registers .................................................................... 5-1
5.1 Configuration registers .......................................................................... 5-1
5.2 Configuration Registers in Detail ............................................................. 5-4
5.3 Oscillator Configuration ....................................................................... 5-20
5.4 Low Battery Detection (LBD) ................................................................ 5-21
5.5 Read Registers .................................................................................. 5-22
6 DSP & Memory.......................................................................................... 6-1
6.1 Memory Map ....................................................................................... 6-2
6.2 Memory Management ........................................................................... 6-3
6.3 Getting started .................................................................................... 6-5
Member of the ams Group
www acam m: Member of me ams Group
®PCapØ2A
2 acam messelectronic gmbh - Friedrich-List-Str.4 - 76297 Stutensee - Germany - www.acam.de
7 Miscellaneous ........................................................................................... 7-1
7.1 Bug Report ......................................................................................... 7-1
7.2 I²C Bug with POR directly after rd/wr OTP/SRAM ...................................... 7-1
7.3 Limitation of Parameter2 ....................................................................... 7-1
7.4 History ............................................................................................... 7-2
Member of the ams Group
EEEI'H ness-e’lectron'lc Digital measuring principle in CMDS Dedicated parts for precision
PCapØ2A
acam messelectronic gmbh - Friedrich-List-Str.4 - 76297 Stutensee - Germany - www.acam.de 1-1
1 Overview
PCapØ2Y is a capacitance-to-digital converter (CDC) with integrated digital signal
processor (DSP) for on-chip data post-processing. Its front end is based on acams
patented ® principle. This conversion principle offers outstanding flexibility with
respect to power consumption, resolution and speed. This datasheet describes PCapØ2A,
in its basic converter functionality. The DSP description is reduced to the standard
firmware that calculates pure capacitance ratios. A detail ed DSP and memory description
is given in datasheet volume 2. PCapØ2 can be used for single and differential sensors in
grounded and floating application. Compensation of internal and external stray capacitance
is implemented as well as for parallel resistance. Additionally, the temperature can be
measured by means of internal thermistors or external sensors.
1.1 Features
Digital measuring principle in CMOS
technology
Up to 8 capacitances in grounded mode
Up to 4 capacitances in floating mode
(potential- free and with zero bias
voltage)
Integrated reference capacitance 1 pF to
31 pF
Integrated discharge resistors up to
1 MOhm
Compensation of internal (grounded) and
external parasitic capacities (floating)
Pre-charge option for slow charging
Self-test capability for differential sensors
High resolution: up to 15 aF at 2.5 Hz
and 10 pF base capacitance or, 17 bit
resolution at 5 Hz with 100 pF base
capacitance and 10 pF excitation
High measurement rate: up to 500 kHz
Extremely low current consumption
possible: Down to 2.5 μA at 2.5 Hz with
13.1 bit resolution
High stability with temperature, low
offset drift (down to 20 aF per Kelvin),
low gain drift when all compensation
options are activated.
Dedicated ports for precision
temperature measurement (with Pt1000
sensors, the resolution is 0.005 K)
Serial interface (SPI or IIC compatible)
Two 10/12/14/16 bit PDM/PWM
outputs for analog interfaces
Self-boot capability
Single power supply (2.1 to 3.6 V),
integrated 1.8 V regulator for improved
PSRR.
Integrated voltage measurement
No need for a clock
RISC processor core using Harvard architec-
ture:
128 x 48/24 bit RAM Data (80x48 free)
4k x 8 bit SRAM program memory for
high-speed operation (40 to 85 MHz)
4k (+4k for ECC)x 8 bit OTP (one-time
programmable) program memory for
normal speed operation (up to 40 MHz)
128 byte EEPROM for calibration data
and user data (serial number etc.)
Member of the ams Group
Humxdity sensors THt sensors "I—H- R e V —v i % 4 —v a F — a F 3 4 4 0 4 0 * —> —v 4 F 0 —> 9 t: —> g _. 4 ¢— ¢ T 4H 4H: www scam d2 Member of the ams Group
®PCapØ2A
1-2 acam messelectronic gmbh - Friedrich-List-Str.4 - 76297 Stutensee - Germany - www.acam.de
1.2 Applications
Humidity sensors
Position sensors
Pressure sensors
Force sensors
Acceleration sensors
Inclination sensors
Tilt sensors
Angle sensors
Wireless applications
Level sensors
Microphones
MEMS sensors
1.3 Blockdiagram
Figure 1-1 Blockdiagram
RDC
Unit
(Temperature)
4x Raw
data
CDC
Unit
(Capacitance)
17x Raw data
RAM
128 words
DSP
48 bit
Configuration
Reg.
Parameter
Reg.
OTP
4k x 8 bit
SRAM
4k x 8 bit
EEPROM
128 byte
1.8V voltage
regulator
Oscillator Control Unit
Ext. Quartz Internal
IIC/
SPI
GPIO
PDM/
PWM
PC0
PC1
PC2
PC3
PC4
PC5
PC6
PC7
PCAUX
PT0
PT1
PT2REF
IIC_EN
INTN
SCK_SCL
SSN_PG0
MISO_PG1
MOSI_SDA
PG2
PG3
PG4
PG5
VDD18VDD33OXIN OXOUT
Internal:
PC8
PC9
10µF 4.7µF
PTOUT
10nF
C0G
3.3V
Member of the ams Group
mess electronic Supply voltage V 2.1 3.5 V Digital V Flelative to ground , 0.5 3.13 V +0.5 V Digital ports HIGH LOW 0.3 * V Analog port V , 0.5 V +0.5 V DTP V Between “VPP_0TP" port 5.5 7.0 V SPI bus frequency f Clock frequency for the 4L D 20 MHz lZC bus frequency Speed [data rate] of the D 100 kHz 0TP Bit hold time Bit hold time for 0TF‘ 30 500 s GPlO input rise Flise time of the input 500 ns ‘90 Q GPlO output rise Flise time of the output 5 t.b.d. ns a 500 discharge MR’I D 40 us www scam de Member of the ams Group
PCapØ2A
acam messelectronic gmbh - Friedrich-List-Str.4 - 76297 Stutensee - Germany - www.acam.de 2-1
2 Characteristics & Specifications
2.1 Electrical Characteristics
2.1.1 Absolute Maximum Ratings
Supply voltage VDD-to-GND - 0.3 to 4.0 V
Storage temperature Tstg - 55 to 150 °C
ESD rating (HBM), each pin > 2 kV
Junction temperature (Tj) max. 125 °C
OTP Data Retention Period 10 years at 95 °C temperature
EEPROM Data Retention Period 10 years at 95 °C temperature
2.1.2 Recommended Operating Conditions
Table 2-1 Operating conditions
Symbol
Remarks
Min.
Typ.
Max.
Unit
VDD
2.1
3.6
V
Vio_digital
Relative to ground
- 0.6
3.3
VDD +0.6
3.6
V
HIGH LOW
LOW HIGH
0.3 * VDD
0.7 * VDD
Vio_analog
- 0.6
VDD +0.6
3.6
V
VOTP
Between “VPP_OTP” port
and ground. Do not expo-
se other ports to pro-
gramming voltage.
6.5
7.0
V
fSPI-bus
Clock frequency for the 4-
wire SPI bus operation
0
20
MHz
Speed (data rate) of the
2-wire I²C bus operation
0
100
kHz
Bit hold time for OTP
write
30
500
μs
Rise time of the input
signal put to general-
purpose I/O
500
ns
Rise time of the output
signal from a general-
purpose I/O
6
t.b.d.
ns
MR1
0
40
µs
Member of the ams Group
HDC discharge D 100 us Junction Junction temperature 7 40 + 125 ”C Ambient At VDD = 2.4V 7/1» 0.3V 7 40 + 125 °C Member of the am: Group www scam de
®PCapØ2A
2-2 acam messelectronic gmbh - Friedrich-List-Str.4 - 76297 Stutensee - Germany - www.acam.de
0
100
µs
Tj
Junction temperature
must not exceed +125 °C
- 40
+ 125
°C
Ta
At VDD = 2.4V -/+ 0.3V
- 40
+ 125
°C
2.2 CDC Precision
2.2.1 RMS Noise and Resolution vs. Output Data Rate
Table 2-2 Typical capacitive noise & resolution vs. output data rate, 10 pF base + 1 pF span, fast
settle, MR1, V = 3.0 V
Output
Data
Rate
[Hz]
FLOATING
Fully compensated
GROUNDED
Internally compensated
RMS
Noise
[aF]
Eff. Resolu-
tion 10 pF
base [Bits]
Eff.
Resolution
1 pF span
[Bits]
RMS
Noise
[aF]
Eff. Resolu-
tion 10 pF
base [Bits]
Eff.
Resolution
1 pF span
[Bits]
2.5
15
19.3
16.0
5
23
18.7
15.4
15
19.3
16.0
10
35
18.1
14.8
23
18.7
15.4
25
48
17.7
14.4
50
17.6
14.3
100
134
16.2
12.9
81
16.9
13.6
250
172
15.8
12.5
116
16.4
13.1
1,000
330
14.9
11.6
147
16.0
12.7
2,000
438
14.5
11.2
230
15.4
12.1
4,000
603
14.0
10.7
327
14.9
11.6
10,000
838
13.5
10.2
566
14.1
10.8
25,000
817
13.6
10.3
The table gives the root mean-square (RMS) noise in aF as a function of output data rate
in Hz, measured at 3.0 V supply voltage using the maximum possible sample size for in -
chip averaging at the minimum possible cycle time. Bit values are calculated as a binary
logarithm of noise over the span (BITs = ln(span/noise)/ln(2)). The measurements have
been done with the PCapØ2 evaluation board, with fixed C0G ceramic capacitors.
Both, sensor and reference are connected floating or grounded, as indicated. When
floating, compensation mechanisms for both internal and external stray capacitances are
activated, when grounded, internal ones only.
Member of the ams Group
Internal poly-silicon reference -1.‘| ppm/K Internal aluminum thermistor 2830 ppm/K External PT1DUCI sensor 3830 ppm/K SEEM ness-electron'lc Nn averaging, 2 fake 0.325 50 ppm 25 mK ’IE-fold averaging, E 0.323 10 ppm EmK
PCapØ2A
acam messelectronic gmbh - Friedrich-List-Str.4 - 76297 Stutensee - Germany - www.acam.de 2-3
2.2.2 RMS Noise vs. Supply Voltage
Figure x RMS Noise vs. Supply Voltage to follow
Note: Buffer capacitors of sufficient capacitance are mandatory for good measurement
quality. We recommend to use minimum 10 µF C0G for VDD33 and 4.7 µF for
VDD18_OUT.
2.2.3 Voltage-Dependent Offset and Gain Error (PSRR)
Figure x Gain Error in % vs. Supply Voltage (Power Supply Rejection Ratio) to follow
2.2.4 Temperature-Dependent Offset and Gain Error
Values typical at 3V:
Gain drift: 10 ppm / K
Offset drift: 20 aF / K
Gain and offset drift have been determined with a 10 pF base capacitance (C0G), both
reference and sensor, connected in floating mode. Temperature range was from -20°C to
+60°C.
2.3 RDC Precision
Table 2-3 Thermoresistive coefficients Tk at 20 °C
Material
Tk
Internal poly-silicon reference
-1.1 ppm/K
Internal aluminum thermistor
2830 ppm/K
External PT1000 sensor
3830 ppm/K
Table 2-4 Noise with internal Al/PolySi at 20 °C
Measurement
Conditions
R2/Rref typ.
RMS noise
R2/Rref
Typical RMS noise (*)
Temperature
No averaging, 2 fake
measurements
0.825
50 ppm
25 mK
16-fold averaging, 8
fake measurements
0.823
10 ppm
5 mK
(*) after linearization in post-processing software
Linearity error internal temperature sensor: typ. 100mK
Member of the ams Group
®PCapØ2A
2-4 acam messelectronic gmbh - Friedrich-List-Str.4 - 76297 Stutensee - Germany - www.acam.de
2.4 Oscillators
2.4.1 Internal RC-Oscillator
The integrated RC-Oscillator can be set in the range between 10 kHz and 200 kHz, in
which 50 kHz is the standard setting (see Register 3 description) and section 5.3.
The nominal frequency e.g. 50 kHz has a standard deviation of +/-20 % over parts.
More than that, the internal oscillator depends on voltage and temperature.
2.4.2 External Oscillators
Alternatively, the PCapØ2 can be
operated with a precise and stable clock
by applying an external 32.768 kHz
quartz oscillator. Further, the PDM
outputs provide a precise frequency-
modulated signal for a measured value
(e.g., humidity or pressure). The
frequency range is set by the offset and
slope in the parameter registers.
Figure 2-1
OXIN
OXOUT
22pF 22pF
10M
32,768 kHz
Configuration:
OX_CLK32KHZ_EN = 1 Register 3, Bit[1]
OX_DIS = 1 Register 4, Bit[7] (disable the OX clock)
OX_AMP_TRIM = 0 Register 4, Bit[6] (only relevant for 4 MHz)
OHF_CLK_SEL = 4 Register 6, Bit[2:0] (external OX)
OX_AUTOSTOP_DIS = 1 Register 4, Bit[4]
OX_RUN = 1 Register 4, Bit[2:0] (permanent)
It is also possible to provide an external
low-frequency square wave clock signal at
the OXOUT pin (3.6 V max.). Pin OXIN
has to be connected to GND.
Figure 2-2
OXIN
OXOUT
External
32kHz
n.c.
Member of the ams Group
mess electronn: www scam de Member of the am: Group
PCapØ2A
acam messelectronic gmbh - Friedrich-List-Str.4 - 76297 Stutensee - Germany - www.acam.de 2-1
2.5 Power Consumption
Table 2-5 Total current I [μA] as a function of conversion rate (CONV_TIME) and resolution (C_AVRG)
in triggered mode
OLF
Freq.
[kHz]
CONV_
TIME
Measure
rate [Hz]
I [μA]
C_AVRG (RMS resolution [Bits])
1
4
16
64
256
1024
13.1
14.2
15.1
16.0
16.6
17.5
50
10000
2.5
2.5
2.7
2.9
3.9
8.5
33
50
2500
10
3.1
3.3
3.7
8.3
20
32
50
1250
20
3.9
5
7
15
26
50
625
40
5.6
7
11
29
50
250
100
11
13
24
50
125
200
19
27
50
50
500
43
57
50
25
1000
84
50
12
2080
172
200
24
4160
348
200
12
9320
689
Temperature measurement in addition to capacitive measurement will add between 2 and
10 μA approximately, depending on speed. Total consumption values below 30 μA may be
obtained only when driving the on-chip 1.8 volts core supply generator in an energy-saving
mode; ultimate microampere savings also demand to slow down the DSP.
Member of the ams Group
5: 313: :9 :a 4: 4r) :5 .14 u .1: 41m PCa p02-square n‘ 1; 1: :a 15 1h 1? 1» W In 212;.“ ‘ 1 P53 44.5 1550.0 2 END 44.5 1550.0 3 V0018_0ut 44.5 1440.0 4 P05 44.5 1320.0 5 P07 44.5 1200.0 5 PT1 44.5 1050.0 7 P553 44.5 950.0 8 V0033 44.5 840.0 9 PTO 44.5 720.0 10 PT2REF 44.5 500.0 11 PTAL no pad no pad 12 PTSI no pad no pad 13 PTOUT 44.5 240.0 14 5N0 270.0 44.5 15 V0018 1350.0 44.5 15 XIN 510.0 44.5 17 n.c. no pad no pad www scamde Member of the ams Group
®PCapØ2A
2-2 acam messelectronic gmbh - Friedrich-List-Str.4 - 76297 Stutensee - Germany - www.acam.de
2.6 Package Information
2.6.1 Dice - Pad Layout
Die dimensions: 2.01 mm x 2.01 mm with pad pitch 120 μm, pad opening is 85 μm x 85 μm,
Thickness 290 µm.
Figure 2-3 Pad positions on die
GND
N.c.
PC5
PC4
N.c.
PC3
PC2
PC1
PC0
PCAUX
VDD18
N.c.
IIC_EN
MISO_PG1
GND
SSN_PG0
SCK_SCL
N.c.
INTN
N.c.
MOSI_SDA
GND
VDD18
VDD33
GND
VPP_OTP
PG3
GND
VDD18_out
PC6
PC7
PT1
PG5a
VDD33
PT0
PT2REF
PTAL
PTSI
PTOUT
GND
VDD18
XIN
NC
XOUT
PG4
PG5b
N.c.
N.c.
N.c.
N.c.
VDD33
PG2
Table 2-6 Pad description
Pad
Name
X-Pos(μm)
Y-Pos(μm)
Type
1
PG3
44.5
1680.0
2
GND
44.5
1560.0
3
VDD18_out
44.5
1440.0
4
PC6
44.5
1320.0
5
PC7
44.5
1200.0
6
PT1
44.5
1080.0
7
PG5a
44.5
960.0
8
VDD33
44.5
840.0
9
PT0
44.5
720.0
10
PT2REF
44.5
600.0
11
PTAL
no pad
no pad
12
PTSI
no pad
no pad
13
PTOUT
44.5
240.0
14
GND
270.0
44.5
15
VDD18
390.0
44.5
16
XIN
510.0
44.5
17
n.c.
no pad
no pad
Member of the ams Group
mess electrvn‘c 18 XDUT 750.0 44.5 18 P64 870.0 44.5 20 P65 880.0 44.5 21 TESTO 1170.0 44.5 22 TEST1 1280.0 44.5 28 TEST2 1410.0 44.5 24 TEST3 1580.0 44.5 25 V0083 1650.0 44.5 26 P62 1770.0 44.5 27 VPP_0TP 1965.5 240.0 28 6N0 1965.5 860.0 28 V0083 1965.5 480.0 30 V0018 1965.5 600.0 31 6N0 1965.5 720.0 32 MOS|_SDA 1965.5 840.0 38 TEST4 1965.5 860.0 34 INTN 1965.5 1080.0 35 TESTS 1965.5 1200.0 36 SCK_60L 1965.5 1320.0 37 SSN_P60 1965.5 1440.0 38 6N0 1965.5 1560.0 38 M|60_P61 1965.5 1680.0 40 HC_EN 1770.0 1965.5 41 TEST6 1650.0 1965.5 42 V0018 1580.0 1965.5 48 POAUX 1350.0 1965.5 44 P00 1280.0 1965.5 45 P01 1110.0 1965.5 46 P02 880.0 1965.5 47 P08 870.0 1965.5 48 TTES7 750.0 1865.5 48 P04 680.0 1965.5 50 P05 510.0 1965.5 51 TEST8 880.0 1965.5 52 6N0 270.0 1965.5 Member of the ams Group www scam de
PCapØ2A
acam messelectronic gmbh - Friedrich-List-Str.4 - 76297 Stutensee - Germany - www.acam.de 2-3
Pad
Name
X-Pos(μm)
Y-Pos(μm)
Type
18
XOUT
750.0
44.5
19
PG4
870.0
44.5
20
PG5
990.0
44.5
21
TEST0
1170.0
44.5
22
TEST1
1290.0
44.5
23
TEST2
1410.0
44.5
24
TEST3
1530.0
44.5
25
VDD33
1650.0
44.5
26
PG2
1770.0
44.5
27
VPP_OTP
1965.5
240.0
28
GND
1965.5
360.0
29
VDD33
1965.5
480.0
30
VDD18
1965.5
600.0
31
GND
1965.5
720.0
32
MOSI_SDA
1965.5
840.0
33
TEST4
1965.5
960.0
34
INTN
1965.5
1080.0
35
TEST5
1965.5
1200.0
36
SCK_SCL
1965.5
1320.0
37
SSN_PG0
1965.5
1440.0
38
GND
1965.5
1560.0
39
MISO_PG1
1965.5
1680.0
40
IIC_EN
1770.0
1965.5
41
TEST6
1650.0
1965.5
42
VDD18
1530.0
1965.5
43
PCAUX
1350.0
1965.5
44
PC0
1230.0
1965.5
45
PC1
1110.0
1965.5
46
PC2
990.0
1965.5
47
PC3
870.0
1965.5
48
TTES7
750.0
1965.5
49
PC4
630.0
1965.5
50
PC5
510.0
1965.5
51
TEST8
390.0
1965.5
52
GND
270.0
1965.5
Member of the ams Group
JUUUUUUL \ \ JUUUUUUL finnnnnnnn D D D D D 3 3 i, T 77 fl Caution: Center pad is internally connected W
®PCapØ2A
2-4 acam messelectronic gmbh - Friedrich-List-Str.4 - 76297 Stutensee - Germany - www.acam.de
2.7 QFN Packages
Figure 2-4 QFN32 package dimensions
5.00 ± 0.10
5.00 ± 0.10
3.65 ± 0.15
3.65 ± 0.15
0.43 ± 0.07
0.25 ± 0.05
0.5 ± 0.025
5 x 5x0.9 Body, 0.50mm lead pitch
Dimensions in [mm]
0.90 ± 0.10
0.025 ± 0.025
Package dimesnion does not include mold
flash, protrusions, burrs or metal smearing.
Dimensioning and tolerances acc. to ASME Y14.5M-1994
Landing pattern (dimensions in [mm]):
4.10
4.10
(3.30)
0.75
0.25
0.5
(3.30)
Caution: Center pad is internally connected
to GND. No wires other than GND are
allowed underneath.
It is recommended to not use the center
pad. Too much solder paste could reduce
solder quality.
Suitable socket:
e.g. Plastronics 32QN50S15050D
Thermal resistance: Roughly 28 K/W (value just for reference).
Environmental: The package is RoHS compliant and does not contain any critical materials
according to REACH regulation (EG) No. 1907/2006.
Moisture Sensitive Level (MSL): Based on JEDEC 020 Moisture Sensitivity Level definition
the PCapØ2 is classified as MSL 3.
Member of the ams Group
SEEM ness-electron'lc
PCapØ2A
acam messelectronic gmbh - Friedrich-List-Str.4 - 76297 Stutensee - Germany - www.acam.de 2-5
Soldering Temperature Profile
The temperature profile for infrared reflow furnace (in which the temperature is the resins
surface temperature) should be maintained within the range described below.
Figure 2-8: Soldering profile
Package body surface
temperature
Time
Max. peak temperature: 260 °C
250 °C for up to 10
seconds
Heating:
220°C
up to 35 seconds
Pre-heating:
140°C to 200°C
60 to 120 seconds
2.7.1 Pin-Out QFN32
Figure 2-5 QFN32 Pin-out
IIC_EN
MISO_PG1
SSN_PG0
SCK_SCL
INTN
MOSI_SDA
VDD33
VPP_OTP
VDD18
PCAUX
PC0
PC1
PC2
PC3
PC4
PC5
25
26
27
28
29
30
31
32
24
23
22
21
20
19
18
17
GND
PG2
PG5
PG4
OXOUT
OXIN
VDD18
PTOUT
16
15
14
13
12
11
10
9
PG3
VDD18_out
PC6
PC7
PT1
VDD33
PT0
PT2REF
1
2
3
4
5
6
7
8
PCap02
-AE
YYWWM
The center pad on the bottom of the QFN package is internally connected to GND.
Connecting to ground on the PCB is not mandatory, and for reliable soldering it should not
be connected.
Member of the ams Group
PGS General purpose l/D port 1 VDD1B_out 2 PCS Capacxtance port 3 P87 Capacxtance port 4 PT1 Flesxstance port [temperature sensor] 5 VDDBB B PTO Flesxstanee port [temperature sensor] 7 PT2FlEF Flesxstance port [temp. sensor. refer.] B PTCIUT Port to connect 1O nF dlscharge 9 VDD1B 1D CIXIN Clsmllator port 11 CIXDUT Clsmllator port 12 PG4 General purpose l/D port 13 PGE General purpose l/D port 14 PG2 General purpose l/D port 15 GND 16 VPP_CITP 17 VDDBB 18 MDSLSDA Master out/Slave ll'l when SPl l5 used. 19 lNTN lnterrupt. Low BCthE 2D SCK_SCL Serlal clock for SPl/llC 21 SSN_PGO Serlal Select Line [Serlal reset]. 2E MISD_PG1 Master ln/Slave out when SPl l5 used. 23 llC_EN D = SPI enable. 1 = llC enable 24 VDD1B 25 PCAUX Capacxtance port 26 P80 Capacxtance measurement port 27 P81 Capacxtance measurement port 28 P82 Capacxtance measurement port 29 PCS Capacxtance measurement port 30 P84 Capacxtance measurement port 31 PCS Capacxtance measurement port 32 www stands Member of the ams Group
®PCapØ2A
2-6 acam messelectronic gmbh - Friedrich-List-Str.4 - 76297 Stutensee - Germany - www.acam.de
2.7.3 Pin/Pad Assignment
Table 2-7 Pin Description
Pin
Description
Comment
Pin#
PG3
General purpose I/O port
1
VDD18_out
2
PC6
Capacitance port
3
PC7
Capacitance port
4
PT1
Resistance port (temperature sensor)
5
VDD33
6
PT0
Resistance port (temperature sensor)
7
PT2REF
Resistance port (temp. sensor, refer.)
8
PTOUT
Port to connect 10 nF discharge
capacitor for resistance measurement
9
VDD18
10
OXIN
Oscillator port
11
OXOUT
Oscillator port
12
PG4
General purpose I/O port
13
PG5
General purpose I/O port
14
PG2
General purpose I/O port
15
GND
16
VPP_OTP
17
VDD33
18
MOSI_SDA
Master out/Slave in when SPI is used.
Otherwise, Serial data out for IIC
19
INTN
Interrupt, Low active
20
SCK_SCL
Serial clock for SPI/IIC
21
SSN_PG0
Serial Select Line (Serial reset).
Otherwise, general purpose I/O port
22
MISO_PG1
Master in/Slave out when SPI is used.
Otherwise, general purpose I/O port
23
IIC_EN
0 = SPI enable, 1 = IIC enable
24
VDD18
25
PCAUX
Capacitance port
26
PC0
Capacitance measurement port
27
PC1
Capacitance measurement port
28
PC2
Capacitance measurement port
29
PC3
Capacitance measurement port
30
PC4
Capacitance measurement port
31
PC5
Capacitance measurement port
32
Member of the ams Group
SEEM ness-electron'lc
PCapØ2A
acam messelectronic gmbh - Friedrich-List-Str.4 - 76297 Stutensee - Germany - www.acam.de 2-7
2.7.4 Typical Schematics
Figure 2-6 Typical schematics, I²C interface, internal references.
IIC_EN
MISO_PG1
SSN_PG0
SCK_SCL
INTN
MOSI_SDA
VDD33
VPP_OTP
VDD18
PCAUX
PC0
PC1
PC2
PC3
PC4
PC5
25
26
27
28
29
30
31
32
24
23
22
21
20
19
18
17
GND
PG2
PG5
PG4
OXOUT
OXIN
VDD18
PTOUT
16
15
14
13
12
11
10
9
PG3
VDD18_out
PC6
PC7
PT1
VDD33
PT0
PT2REF
1
2
3
4
5
6
7
8
PCap02
-AE
YYWWM
VDD18
10µF
4.7µF
VDD33
VDD18
10nF
C0G
PT1000
VDD33
n.c.
Sensor
6.5 V
220n
100k
100k
220n
A0, A1: Analog outputs,
based on PDM
SCK SDA
VDD18
3.3 VA1 A0 GND
Member of the ams Group
www acam m: Member of me ams Group
®PCapØ2A
2-8 acam messelectronic gmbh - Friedrich-List-Str.4 - 76297 Stutensee - Germany - www.acam.de
Member of the ams Group
SEEM ness.electron1c
PCapØ2A
acam messelectronic gmbh - Friedrich-List-Str.4 - 76297 Stutensee - Germany - www.acam.de 3-1
3 Converter Frontend
The device uses discharge time measurement as a principle for measuring either
capacitance (CDC unit) or resistance (RDC unit). It addresses all ports (PC...,PT...) in time
multiplex, CDC and RDC measurements possibly running in parallel. The time
measurement is done by means of a high-resolution TDC (time-to-digital converter).
3.1 CDC, Capacitance-to-Digital Converter
3.1.1 Measuring Principle
In PCapØ2 capacitance measurement is done by measuring discharge times of RC-
networks. The measurements are radiometric. This means the capacitors are compared
to a fixed reference or, like in differential sensors, to capacitors with change in opposite
direction. Thanks to the short time intervals and special compensation methods, the ratio
of discharge times is directly proportional to the ratio of capacitors. The discharge time is
defined by the capacitor and the selected discharge resistor.




    
3.1.2 Connecting Sensors
PCapØ2 can handle single and differential sensors in grounded or floating connection.
Additionally to the known PCapØ1 options, PCapØ2 has integrated reference capacitors.
Those can be used with single sensors. They are programmable in a range from 1 to 31pF
in steps of 1 pF.
Figure 3-1 Connecting sensors
PC0
PC1
PC3
PC2
PCap02
PC0
PC1
PC3
PC2
PCap02
PC0
PC5
PC7
PC6
PCap02
PC0
PC1
PC3
PC2
PCap02
Single Grounded Single Floating Differential Grounded Differential Floating
PC4
PC2
PC1
PC3
1 Ref, 7 Sensors 1 Ref, 3 Sensors 4 Sensors 2 Sensors
PC8 PC8
PC9
1 int. Ref, 7 Sensors 1 int. Ref, 3 Sensors
Member of the ams Group
®PCapØ2A
3-2 acam messelectronic gmbh - Friedrich-List-Str.4 - 76297 Stutensee - Germany - www.acam.de
3.1.3 Discharge Resistors
The PCapØ2A has two sets of discharge resistors already integrated. One resistor set
(10k, 30k, 90k, 180k, 1000k) is for measurements on port PC0 to PC3 and the internal
reference ports PC8 and PC9. The other resistor set (10k, 30k, 90k, 180k) is for ports
PC4 to PC7. This way, it is possible to measure different sensors with strongly deviated
capacitance like pressure and humidity with one and the same chip. The resistors are
selected by parameters RCHG_xxx.
Figure 3-2 Integrated discharge resistors
Csense
Csense
30k
10k
PC0
PC1
PC2
PC3
PC4
PC7
PC8PC9
Cref_int
Cref_ext
Csense
90k
180k
1M
30k
10k
90k
180k
180k
90k
PC5
PC6
CDC
Rdischarge
PC0...PC3,
PC8, PC9
Rdischarge
PC4...PC7
Rparallel
Compensation
PCAUX
E.g. 1k
Rdischarge
external
CAUX_EXT
Some applications like humidity sensors may demand a very slow discharge. For this
reason the 1 MOhm discharge resistor is integrated. It is selected by RDCHG_1MEG_EN.
For big capacitances there is the possibility to use an external discharge resistor.
3.1.4 Cycle
In PCapØ2 the measuring principle was greatly improved by introducing a pre-charge
phase. In the very first step, the capacitor is charged up via a series resistor to a level
close to Vdd. The resistor reduces the charge current and reduces the mechanical stress
on the sensing capacitor. This can be necessary in some MEMS applications. In a second
step, the capacitor is charged up finally to Vdd without a series resistor. Then, in the third
step, the capacitor is discharged via the discharge resistor down to 0V. The CDC
measures the time interval until a trigger level is reached. All this is called a single cycle.
Member of the ams Group
SEEM ness-electron'lc
PCapØ2A
acam messelectronic gmbh - Friedrich-List-Str.4 - 76297 Stutensee - Germany - www.acam.de 3-3
Figure 3-3 Single Cycle Timing
In applications that dont need the slow charge up but high conversion rate , it is possible
to disable the pre-charge option and to start charge up directly without any series resistor.
Figure 3-4 Single Cycle, fast charge
In both cases the capacitors are discharged for the full discharge time period and then
connected to GND.
Finally, there is an option to operate the chip in PCapØ1 compatible mode. This means, as
soon as the trigger level of the discharge time measurement is reached, the current port
is immediately connected to GND and the next port will be charged up to Vdd.
Figure 3-5 Single Cycle, PCapØ1compatible
Voltage
Time
Vth
Vdd
Discharge timeFull-charge time
0V
TDC
measure
time
1 Cycle
Member of the ams Group
®PCapØ2A
3-4 acam messelectronic gmbh - Friedrich-List-Str.4 - 76297 Stutensee - Germany - www.acam.de
3.1.5 Sequence
A sequence is made of a set of cycles, namely those for the various active ports as well
as combinations of them as given by the compensation measurements. The number and
kind of single cycles depends on the way of connecting the sensors, the number of
capacitors and the selected compensation options.
For grounded sensors, the sequence starts always with PC0 (reference) and then one or
more of the other 7 ports. Normally, internal compensation is activated. So the sequence
ends with the measurement Cint of the internal stray capacitance/delays. For
compensating internal parasitic capacitance and the comparator delay the CDC measures
the discharge time with all ports being off (Cint).
For compensating parallel resistances to the capacitors, the CDC measures the discharge
time for each capacitor a second time.
The following figure shows the sequence for a grounded sensor with internal compensation
and in case of parallel resistance compensation.
Figure 3-6 Sequence for 1 reference & 1 sensor in grounded connection, compensated for internal
capacitance, and one the right side compensation for parallel resistances
For floating sensors, the sequence starts always with PC0/PC1 (reference), followed by
one to three pairs of ports for the sensors. Normally, full compensation (internal and
external) is activated.
For compensation of external parasitic capacitances the CDC makes a measurement for
each capacitor with both ports being opened. So, for each capacitor 3 measurements are
made, e.g. PC0, PC1 and PC0+PC1. In case of parallel-resistance compensation there are
5 measurements for each capacitor. The sequence ends with the internal compensation
measurement Cint. The following figures show the sequence for 1 floating sensor with full
compensation.
Member of the ams Group
SEEM ness.electron1c
PCapØ2A
acam messelectronic gmbh - Friedrich-List-Str.4 - 76297 Stutensee - Germany - www.acam.de 3-5
Figure 3-7 Sequence for 1 reference & 1 sensor in floating connection, fully compensated for
parasitic capacitances
Figure 3-8 Sequence for 1 reference & 1 sensor in grounded connection, fully compensated for
parasitic capacitances and for parallel resistances
3.1.6 Conversion
Finally, the combination of various sequences and delays in between the sequences de fine
a single conversion. At the end of a conversion the measurement results are ready for
further processing and readout. The end of the conversion is indicated by flag to the DSP
and also the RDC unit.
Figure 3-9 Cycle Sequence Conversion
Precharge Full charge Discharge
PC0 PC1 PC0+PC1 PC3PC2 Port PCint...
Cycle
Sequence
Conversion Fake 1 Average 2 Average 3Fake 2 Average NDelay Delay Delay Delay DelayAverage 1
A conversion is triggered from outside the CDC unit:
By the conversion timer
Pin triggered
By the DSP
By serial interface (opcode).
Member of the ams Group
WW :I W :I W :I V/ZV/Z %% V/ZZ/A www scam d2 Member of the ams Group
®PCapØ2A
3-6 acam messelectronic gmbh - Friedrich-List-Str.4 - 76297 Stutensee - Germany - www.acam.de
Once triggered, a conversion is automatically completed, including all fake measurements
and all real measurements defined by sample size for averaging. The end of the conversion
is indicated to the master (DSP, timer, µP).
The way conversions follow each other is described by four pr incipal operating modes:
Single conversion, Stretched mode, Conversion timer triggered mode and Continuous
mode.
Figure 3-10 Conversion trigger and succession
Delay
Fake
seq. 1
Average
seq. 2
Average
seq. 3
Fake
seq. 2
Average
seq. 1
Delay
Fake
seq. 1
Average
seq. 2
Average
seq. 3
Fake
seq. 2
Average
seq. 1 DelayDelay
Fake
seq. 1
Average
seq. 2
Fake
seq. 2
Average
seq. 1
Delay
Fake
seq. 1
Fake
seq. 2
Conversion 1
Conversion 1
Conversion 2
Conversion 2
Opcode, DSP
Conversion timer
Fake
seq. 1
Average
seq. 2
Average
seq. 3
Fake
seq. 2
Average
seq. 1
Fake
seq. 1
Average
seq. 2
Average
seq. 3
Fake
seq. 2
Average
seq. 1
Conversion 1 Conversion 2
Conversion timer
Fake
seq. 1
Fake
seq. 2
Conversion 3
Fake
seq. 1
Average
seq. 2
Average
seq. 3
Fake
seq. 2
Average
seq. 1
Fake
seq. 1
Average
seq. 2
Average
seq. 3
Fake
seq. 2
Average
seq. 1
Conversion 1 Conversion 2
Fake
seq. 1
Fake
seq. 2
Average
seq. 1
Conversion 3
Opcode, DSP, POR
Opcode, DSP, POR
Opcode, DSP Opcode, DSP
A) Single conversion: C_TRIG_SEL = 2 and CONV_TIME = 0
B) Streched mode: C_TRIG_SEL = 0 and CONV_TIME > 0
C) Conversion timer triggered mode: C_TRIG_SEL = 2 and CONV_TIME > 0
D) Continuous mode: C_TRIG_SEL = 1
Delay
Note: Single conversion triggered by pin: C_TRIG_SEL = 3 and CONV_TIME = 0
Delay Average
seq. 1
Average
seq. 3
By setting Flag 1 in the PARA8 register, DSP_TRIG_CDC, the CDC can be triggered by the
end of the DSP. This has to be implemented in the firmware and is already part in the
standard firmware.
Member of the ams Group
For the internal compensation With floating capacitors we have the SEEM ness.electron1c Figure 3-11 Internal compensation O _L f} T. ‘ll Figure 3-12 How to connect shielded cables for Pcl - 6ND PCB
PCapØ2A
acam messelectronic gmbh - Friedrich-List-Str.4 - 76297 Stutensee - Germany - www.acam.de 3-7
3.2 CDC Compensation Options
3.2.1 Internal Compensation
For the internal compensation
measurement, both switches A1 and A0
are open. Only the internal parasitic
capacitance and the comparator
propagation delay will thus be measured.
It is recommended to have internal
compensation active in any application.
Figure 3-11 Internal compensation
measurement
A1
PC0
PC1
B1
B0
4
A0
Cpex
Cpex
Cint
3.2.2 External Compensation
With floating capacitors we have the
additional option to compensate external
parasitic capacitances against ground. On
the PCB, the wire capacitance typically
refers to ground. For long wires, it is
recommended to use shields which should
be grounded at their PCB side.
Figure 3-12 How to connect shielded cables for
compensation of the external parasitic capaci-
tances.
Three measurements are necessary for each capacitor in case of floating sensors; this is
shown in Figure 3-13.
Figure 3-13 Floating capacitors, external compensation measurements, the three measurements
that are made for each floating capacitor.
Member of the ams Group
www acam m: Member of me ams Group
®PCapØ2A
3-8 acam messelectronic gmbh - Friedrich-List-Str.4 - 76297 Stutensee - Germany - www.acam.de
3.2.3 Parallel Resistance
In some applications the sensor might see a parallel resistance. This resistance is typically
caused by dirt or condensation and is changing slowly. In PCapØ2A a compensation
method is implemented to get rid of this.
3.2.4 Force Compensation & Self-test
For differential sensors, mainly MEMS, a force compensation method is available. In this
mode the inactive electrode is connected to a dummy charge circuit and therefore always
has a potential similar to that of the active electrode. The center electrode therefore is
almost force free. Because the capacitances are different, the voltage is not the same
upon reaching the trigger threshold, so there is a residual force.
This mode can be used for self-test, too. If force compensation is toggled, means
measurements with and without compensation are made, then the force on the active
electrode varies. The user should see an obvious difference between the measurement
results with and without compensation. If not, then the sensor is most likely broken.
3.2.5 DC Balance
When driving floating sensors then the sensors supply is typically DC free.
With parallel resistance compensation this symmetry would be broken. Therefore, PCapØ2
has the possibility to add dummy measurements so that even with parallel resistance
compensation the sensors are operated DC free (set by C_DC_BALANCE).
In applications with grounded sensors the sensors can`t be DC fee by principle.
3.2.6 Gain Correction
Comparable to classical A/D converters, the PCapØ2 shows a gain error. But in case of
PCapØ2 the gain error is mainly given by internal parasitic capacitances and the
propagation delay of the internal comparator. With internal compensation being active this
delay is subtracted from the original measurement. The temperature drift can be
approximated linearly and corrected mathematically just by a gain factor. In the standard
firmware parameter 8 is reserved for the gain correction factor. The correction factor
depends on the discharge time and therefore the RC combination. The firmware has to
take this factor into account, like the cdc.h library does. The factor is stor ed in parameter
register 7 as Gain_Corr. It has to be evaluated individually for every single application. E.g.,
with 22 pF and 30 kOhm the correction factor is 1.25.
Empirical method to find the right gain correction factor:
Member of the ams Group
mess electronic ‘bDU t t = period lewefrequency oscil. ‘biU t t = period highrfrequency oscil. ‘bi’l t = t t = period highrfrequency oscil. 25, EB PRECHAHGE_TIME Time to charge via resistor for current limitation 27, EB FULLCHAFiGE_T|ME Time for final charge without current limitation. 23, 24 DISCHARGE_TIME Time to discharge the capacitor. wwwacsmxje Member of the am: Group
PCapØ2A
acam messelectronic gmbh - Friedrich-List-Str.4 - 76297 Stutensee - Germany - www.acam.de 3-9
Replace the sensor with a temperature stable capacitor of the same size (ceramic COG)
as your reference capacitor. (Therefore: quotient = 1, gain = 0). Set the gain correction
factor to 1.0. Put the system (PCapØ2 on PCB) into a temperature chamber and measure
the offset drift over temperature. Add an additional temperature stable capacitor to
simulate your gain. Measure the gain drift. Increase the gain correction factor and
measure the gain drift again. With a gain correction factor >1.0 the gain drift will
decrease. If the gain correction factor is set too big then you will see a negative gain drift
due to over compensation. The right gain correction factor is found, if the drift is reduced
to what you measured at the initial offset drift measurement. Write back the new
Gain_Corr value into parameter 7 register.
3.3 CDC Important Parameters
3.3.1 Cycle clock
The basic period tcycle that defines the cycle time can be derived from the low frequency
oscillator or the high frequency oscillator. It is selected as in PCapØ1 by configuration
parameters CY_CLK_SEL (register 11).
Table 3-1 Configure cycle clock, for details see register 11
CY_CLK_SEL
Cycle time base
‘b00
tcycle = tOLF tOLF = period low-frequency oscil.
‘b10
tcycle = 4*tOHF tOHF = period high-frequency oscil.
‘b11
tcycle = tOHF tOHF = period high-frequency oscil.
3.3.2 Cycle time
The pre-charge, full-charge and discharge times of a single cycle are defined in multiples of
tcycle. Those are selected by:
Table 3-2 Configure cycle time, for detailsd see register 23-26
Reg.
Configuration
Parameter
Description
25, 26
PRECHARGE_TIME
Time to charge via resistor for current limitation.
0 = no pre-charge phase
1 to 1023: tprecharg = PRECHARGE_TIME*tcycle
27, 28
FULLCHARGE_TIME
Time for final charge without current limitation.
0 = no full-charge phase
1 to 1023: = (FULLCHARGE_TIME + 2)
23, 24
DISCHARGE_TIME
Time to discharge the capacitor.
0 = not allowed
1 to 1023: = (DISCHARGE_TIME + 1)
Member of the ams Group
12 C_PORT_EN Eitwise enable of the capacitance ports FCC to P87 10 C_FlEF_lNT Switches between external and internal reference 10 C_D|FFEFlENTIAL Switches between single and differential sensors 10 C_FLC|AT|NG Switches between grounded and floating sensors 10 C_CDMP_|NT Turns on compensation of internal capacitances/delays 10 C_CDMP_EXT Turns on compensation of external parasitic 10 C_CDMP_R Turns on compensation of parallel resistances 1’I C_DC_BALANCE Turns on an additional measurement for DC balance. 10 C_CDMP_FORCE Turns on force compensation for differential sensors wwwacamoe Member of the ams Group
®PCapØ2A
3-10 acam messelectronic gmbh - Friedrich-List-Str.4 - 76297 Stutensee - Germany - www.acam.de
In case that PRECHARGE_TIME = FULLCHARGE_TIME = 0 the timing is similar to PCapØ1.
Note: while in PCapØ1 the times are set in 2s complement, in PCapØ2 the times are set
linearly and therefore can be set in finer steps.
3.3.3 Sequence
The length of a sequence depends on the kind and number of sensors, the selected
compensation methods and the averaging sample size. The following parameters affect the
sequence:
Table 3-3 Configure sequence, for details see registers 10 - 12
Reg.
Configuration
Parameter
Description
12
C_PORT_EN
Bitwise enable of the capacitance ports PC0 to PC7
0 = Port disabled
1 = Port active
10
C_REF_INT
Switches between external and internal reference
capacitors. Can not be used with differential sensors.
0 = external, PC0 or PC0 & PC1
1 = internal, PC8 or PC8 & PC9
10
C_DIFFERENTIAL
Switches between single and differential sensors
0 = single
1= differential
10
C_FLOATING
Switches between grounded and floating sensors
0 = grounded
1 = floating
10
C_COMP_INT
Turns on compensation of internal capacitances/delays
0 = off
1 = on, recommended
10
C_COMP_EXT
Turns on compensation of external parasitic
capacitances. Available only with floating sensors.
0 = off
1 = on, recommended
10
C_COMP_R
Turns on compensation of parallel resistances
0 = off
1 = on
11
C_DC_BALANCE
Turns on an additional measurement for DC balance.
Introduces one additional measurement per capacitor.
Effective in modes other than single grounded.
0 = off
1 = on
10
C_COMP_FORCE
Turns on force compensation for differential sensors
0 = off, inactive electrode HiZ
1 = on, inactive electrode connected to dummy charge
3.3.4 Conversion
The duration of a full conversion has a lower limit given by the number of fake
measurements, the averaging and eventually an inter-sequence delay:
Member of the ams Group
mess electronic 25 C_FAKE Number of fake measurements [cycles with results being 13, ’I4 C_AVFlG Sample size for averaging within one conversion. 15, ’IB C_AVFlG_ALT Second sample size for averaging within one conversion. 24 C_TFl|G_SEL First trigger selection for CDC trigger 24 C_TFl|G_SEL_ALT Second trigger selection for CDC trigger www scam de Member of the am: Group
PCapØ2A
acam messelectronic gmbh - Friedrich-List-Str.4 - 76297 Stutensee - Germany - www.acam.de 3-11
Table 3-4 Configure conversion, for details see registers 13ff, 26
Reg.
Configuration
Parameter
Description
26
C_FAKE
Number of fake measurements (cycles with results being
ignored)
0 = No dummy cycles
1 = 1 dummy cycle
15 = 15 dummy cycles
13, 14
C_AVRG
Sample size for averaging within one conversion.
0 = 1 = no averaging
8191 = maximum sample size
1st configuration bank, set by DSP_SEL_CFG_BANK = 0
15, 16
C_AVRG_ALT
Second sample size for averaging within one conversion.
0 = 1 = no averaging
8191 = maximum sample size
2nd configuration bank, set by DSP_SEL_CFG_BANK = 1. The
DSP may switch between C_AVRG and C_AVRG_ALT values to
have two operating modes selected by software.
The Start of the next conversion depends on the selection of the measurement trigger. In
continuous mode the next conversion follows immediately the previous one. In stretched
mode the time interval between two conversions is defined by the conversion timer. Finally,
in single conversion mode or pin trigger mode the single conversions are started
individually, by serial opcode, by DSP command or by a trigger at a pin. New in PCapØ2 is
the possibility that the DSP can select between to configuration settings for averaging,
trigger select and conversion timer. This way it can switch between e.g. a scan mode and
a measurement mode.
Table 3-5 Configure conversion, for details see registers 17 - 24
Reg.
Configuration
Parameter
Description
24
C_TRIG_SEL
First trigger selection for CDC trigger
0 = Off when CONV_TIMEx = 0
0 = Stretched when CONV_TIMEx > 0
1 = Continuous mode when CONV_TIMEx > 0
1 = Single conversion when CONV_TIMEx = 0
2 = Conversion timer triggered
3 = Pin triggered
1st configuration bank, set by DSP_SEL_CFG_BANK = 0
24
C_TRIG_SEL_ALT
Second trigger selection for CDC trigger
0 = Off when CONV_TIMEx = 0
0 = Streched when CONV_TIMEx > 0
1 = Continuous mode when CONV_TIMEx > 0
Member of the ams Group
ngle conversion when CDNV_TIMEx — 02 — 24 C_STAFlTE]NP|N Selects the GF'ID that triggers the CDC measurement 17.13, CDNV_T|ME Sets the conversion time in multiples of twice the 20.21, CDNV_T|ME_ALT Second setting for conversion time.
®PCapØ2A
3-12 acam messelectronic gmbh - Friedrich-List-Str.4 - 76297 Stutensee - Germany - www.acam.de
1 = Single conversion when CONV_TIMEx = 02 =
Conversion timer triggered
3 = Pin triggered
2nd configuration bank, set by DSP_SEL_CFG_BANK = 1.
The DSP may switch between C_TRIG_SEL and
C_TRIG_SEL_ALT values to have two operating modes
selected by software.
24
C_STARTONPIN
Selects the GPIO that triggers the CDC measurement
17,18,
19
CONV_TIME
Sets the conversion time in multiples of twice the
period of the low-frequency clock.
tconv = 2*CONV_TIME0*tofl
1st configuration bank, set by DSP_SEL_CFG_BANK = 0
20,21,
23
CONV_TIME_ALT
Second setting for conversion time.
tconv = 2*CONV_TIME0*tofl
2nd configuration bank, set by DSP_SEL_CFG_BANK = 1.
The DSP may switch between CONV_TIME and
CONV_TIME_ALT values to have two operating modes
selected by software.
3.4 RDC Resistance-to-Digital Converter
3.4.1 Measuring Principle
In PCapØ2 resistance measurement is done by measuring discharge times. The
measurements are ratiometric. This means the temperature-sensitive resistances are
compared to fixed references. The ratio of discharge times is directly proportional to the
ratio of capacitors. The discharge time is defined by the resistors and the load
capacitance.



    
3.4.2 Connecting Sensors
The chip device has two on-chip resistor elements for the measurement of temperature,
an aluminum strip with TK 2800 ppm/K as a sensor and a poly-silicon resistor with TK
close to zero as a reference. In the range 0°C to 100°C the aluminum sensor can be
well approximated by a linear function of temperature.
As an alternative, it is possible to connect up to three external sensors. One of those can
be used as external reference alternately. External and internal thermometers/reference
may be mixed, e.g. an external PT1000 may be compared to the internal Poly -Si resistor.
In any case, it is mandatory to connect an external 10 nF capacitor, because the
temperature measurement, too, is discharge time based. 10 µs discharge time are
Member of the ams Group
SEEM mess-ale: 1c tron
PCapØ2A
acam messelectronic gmbh - Friedrich-List-Str.4 - 76297 Stutensee - Germany - www.acam.de 3-13
sufficient. For the capacitor, C0G ceramics yields best performance, while X7R material
yields fair results.
Figure 3-14 Connecting temperature sensors
PCap02Z
PT0
PT1
PT2REF
PTOUT
ALU Poly-Si
PT1000
/1k0ref
PT1000
PT1000
10n
Note: The RDC measurement is based on a AC principle. So long cables with their
parasitic capacitance and resistance will disturb and it is recommended to have short
cables ( 0.5m), ideally twisted and shielded.
3.4.3 Cycle & Conversion
In PCapØ2 the resistance measurement is now running in three phases, like in
capacitance measurement: Precharge Full charge Discharge. The timing is based on
the internal low-frequency oscillator (OLF). The duration of the three phases can be 1 or 2
periods of this reference. The conversion starts with 2 or 8 fake measurements to
improve the stability of data. For each single conversion the averaging can be selected
with sample size 1, 4, 8 or 16.
Figure 3-15 RDC conversion (R_AVRG = 1, Reference and sensor, 2 fake measurements)
Time
VC
Precharge Discharge
Full-charge
0V
tref
1 Cycle
Fake 1 Fake 2 PT2REF PT1
1 Conversion (R_AVRG = 1)
t = e.g. 400 µs tN
3.4.4 Trigger
There are various possibilities to trigger a resistance measurement :
Serial Interface command, PIN or DSP
Member of the ams Group
www acam m: Member of me ams Group
®PCapØ2A
3-14 acam messelectronic gmbh - Friedrich-List-Str.4 - 76297 Stutensee - Germany - www.acam.de
CDC end of conversion
Low-frequency oscillator (OLF)
For CDC and OLF options the RDC measure rate can be reduced by setting a divider
(R_TRI_PREDIV).
In case of the CDC option there are three ways of how the DSP is triggered:
Parallel: The CDC end of conversion triggers RDC and CDC in parallel
Sequentially, synchronous: The DSP is triggered by the RDC end of conversion.
Assuming that RDC rate is less than the CDC rate, the inactive RDC conversions
are replaced by a delay.
Sequentially, asynchronous: The DSP is triggered by the RDC end of conversion. If
RDC rate is less than CDC rate the DSP is triggered directly from the CDC for
inactive RDC conversions.
Member of the ams Group
SEEM ness.electron1c 10 kHz 1 100 pg 200 us 50 kHz 4 30 us 150 us 100 kHz 8 30 us 150 ps EDD kHz ’IE 30 us 150 ps
PCapØ2A
acam messelectronic gmbh - Friedrich-List-Str.4 - 76297 Stutensee - Germany - www.acam.de 3-15
Figure 3-16 RDC Timing parallel mode
(R_TRIG_PREDIV = 3,R_TRIG_SEL = 3b101, DSP_START_EN: CDC_TRIG_EN = 1, RDC_TRIG_EN = 0)
Figure 3-17 RDC Timing sequential, synchronous mode
(C_TRIG_SEL = 2, CONV_TIMER = 0, DSP_TRIG_CDC = 1, R_TRIG_PREDIV = 3, R_TRIG_SEL =
3b110, DSP_START_EN: CDC_TRIG_EN = 0, RDC_TRIG_EN = 1)
Figure 3-18 RDC Timing sequential, asynchronous mode
(C_TRIG_SEL = 2, CONV_TIMER = 0, DSP_TRIG_CDC = 1, R_TRIG_PREDIV = 3, R_TRIG_SEL =
3b101, DSP_START_EN: CDC_TRIG_EN = 0, RDC_TRIG_EN = 1)
3.5 RDC Important Parameters
3.5.1 Cycle Clock
The base frequency for the temperature measurement is the low frequency oscillator. By
setting divider R_OLF_DIV the user can ensure that the period is 100µs or 80µs. A further
bit, R_CY, specifies whether 1 or 2 periods define the length of precharge phase and
discharge phase.
Table 3-6 Configure cycle clock, see also register 35
OLF Frequency
R_OLF_DIV
tprecharge = tfullcharge = tdischarge
R_CY = 0
R_CY = 1
10 kHz
1
100 µs
200 µs
50 kHz
4
80 µs
160 µs
100 kHz
8
80 µs
160 µs
200 kHz
16
80 µs
160 µs
Both parameters are set in register 35.
Firmware specific
Member of the ams Group
34 Fl_PC|FlT_EN Enable ports PTO. F‘T’l. PT2FlEF 34 Fl_PCIFlT_EN_lFlEF Enable the Internal reference resistor 34 Fl_PC|FlT_EN_lMES Enable the Internal temperature sensor 34 Fl_REF_SEL D = PT2REF is used for reference time [external] 34 Fl_8EXT_SEL D = less than 3 external sensors 1» external reference 32 FLAVRG Set averaging for T measurement 3C3 Fl_FAKE Set number of fake measurements 28 Fl_TFl|G_SEL Selection of trigger source for RDC unit [15L 28 Fl_TFl|G_SEL_ALT Alternative selection of trigger source for RDC unit [2"fl 30,81. Fl_TFl|G_PREDIV Predivider to set the RDC rate as fraction of the BBC 28 FLSTARTDNPIN Start RDC conversion on pin trigger. Not recommended www acsmoe Member of the am: Group
®PCapØ2A
3-16 acam messelectronic gmbh - Friedrich-List-Str.4 - 76297 Stutensee - Germany - www.acam.de
3.5.2 Sequence
The major settings for the sequence are the number of ports, the fakes, the reference
averaging.
Table 3-7 Configure sequence, for details see registers 33, 34
Reg.
Configuration
Parameter
Description
34
R_PORT_EN
Enable ports PT0, PT1, PT2REF
34
R_PORT_EN_IREF
Enable the internal reference resistor
34
R_PORT_EN_IMES
Enable the internal temperature sensor
34
R_REF_SEL
0 = PT2REF is used for reference time (external)
1 = IREF is used for reference (internal)
34
R_3EXT_SEL
0 = less than 3 external sensors + external reference
1 = 3 external sensors
32
R_AVRG
Set averaging for T measurement
33
R_FAKE
Set number of fake measurements
3.5.3 Conversion
Table 3-8 Configure conversion, for details see registers 29, 30
Reg.
Configuration
Parameter
Description
29
R_TRIG_SEL
Selection of trigger source for RDC unit (1st
configuration bank, set by DSP_SEL_CFG_BANK = 0)
29
R_TRIG_SEL_ALT
Alternative selection of trigger source for RDC unit (2nd
configuration bank set by DSP_SEL_CFG_BANK = 1)
30,31,
32
R_TRIG_PREDIV
Predivider to set the RDC rate as fraction of the CDC
rate but also to the OLF_CLK when OLF_CLK is selected
as RDC Trigger
0 = 1 = RDC conversion with each CDC conversion
2 = RDC conversion every second CDC conversion
2^21
29
R_STARTONPIN
Start RDC conversion on pin trigger. Not recommended
Member of the ams Group
mezs Elentr’vn‘t. iIC_EN = GROUND Arwu‘e SPI interface iIC_EN = VDD Erwu‘e IZC interface Write to DTP 1 D 1 add<12 ..d=""> data<7.. cl=""> Read from DTP O D 1 add<12...d> data<7.. ci=""> Write to SRAM 1 D O 1 add<11.. o=""> data<7.. cl=""> Read from SRAM O D 0 1 add<11.. o=""> data<7.. ci=""> Block write EEPRDM 1 1 1 CI CI 0 D 1 data<7. .o=""> Erase EEPRDM 1 1 1 CI CI 0 1 0 CI add [dummy byte] Write configuration 1 1 0 CI CI 0 D 0 CI add data<7.. ci=""> Read resuit O 1 0 CI CI 0 D 0 CI add data<7.. ci=""> Write EEPRDM 1 1 1 CI CI 0 D 0 CI add data<7.. cl=""> Read EEPRDM O 1 1 CI CI 0 D 0 CI add data<7.. cl=""> Black erase EEPRDM 1 1 1 CI CI 0 1 1 PDR [Powerran Reset] 1 D 0 CI 1 O D 0 initialize 1 D 0 CI 1 O 1 O CDC Start conversion 1 D 0 CI 1 1 D 0 RDC Start canversmn 1 D 0 CI 1 1 1 0 Terminate write DTP 1 D 0 CI CI 1 D 0 www scam de Member of the ams Group
PCapØ2A
acam messelectronic gmbh - Friedrich-List-Str.4 - 76297 Stutensee - Germany - www.acam.de 4-1
4 Interfaces (Serial & PDM/PWM)
4.1 Serial Interfaces
Two types of serial interfaces are available for communication with a microcontroller and for
programming the device: SPI and IIC. Only one interface is available at a time, selected by pin
IIC_EN. On both interfaces the PCapØ2 can operate as slave only.
IIC_EN = GROUND
4-wire SPI interface
General-purpose I/O pins PG0 and PG1 are not available
IIC_EN = VDD
2-wire C interface
All general-purpose I/O pins are available
IIC_EN may not be floating. If no controller interface is needed connect IIC_EN to VDD.
Note:
Besides the case of reading the result registers, it is recommended to deactivate the converter
for any communication to configuration registers, EEPROM, OTP or SRAM. This is done by setting
the RunBit configuration register 77 to ‘0’. After the communication process the RunBit needs to
be set back to ‘1’.
4.1.1 Opcodes
Table 4-1 PCapØ2 Opcodes
Description
Byte2
Byte1
Byte0
Write to OTP
1
0
1
add<12...0>
data<7...0>
Read from OTP
0
0
1
add<12...0>
data<7...0>
Write to SRAM
1
0
0
1
add<11...0>
data<7...0>
Read from SRAM
0
0
0
1
add<11...0>
data<7...0>
Block write EEPROM
1
1
1
0
0
0
0
1
data<7...0>
Erase EEPROM
1
1
1
0
0
0
1
0
0
add<6...0>
[dummy byte]
Write configuration
1
1
0
0
0
0
0
0
0
add<6...0>
data<7...0>
Read result
0
1
0
0
0
0
0
0
0
add<6...0>
data<7...0>
Write EEPROM
1
1
1
0
0
0
0
0
0
add<6...0>
data<7...0>
Read EEPROM
0
1
1
0
0
0
0
0
0
add<6...0>
data<7...0>
Block erase EEPROM
1
1
1
0
0
0
1
1
POR (Power-on Reset)
1
0
0
0
1
0
0
0
Initialize
1
0
0
0
1
0
1
0
CDC Start conversion
1
0
0
0
1
1
0
0
RDC Start conversion
1
0
0
0
1
1
1
0
Terminate write OTP
1
0
0
0
0
1
0
0
All commands for write or read to memory or configuration / read registers may use
explicit addressing or address auto-increment.
Member of the ams Group
MSE LEE 0 ‘l U ’I 0 A1 A0 R/W fixed variable key sofl/DXIXOXIXO XAIXwXRMwa X X X H menu-f sum-u— _:_E I
®PCapØ2A
4-2 acam messelectronic gmbh - Friedrich-List-Str.4 - 76297 Stutensee - Germany - www.acam.de
The serial interface is tested most easily by writing an arbitrary data to the SRAM and
read this back.
4.2 I²C Compatible Interface
The present paragraph outlines the PCapØ2 device specific use of the I²C interface. The external
I²C master begins the communication by creating a start condition, a falling edge on the SDA line
while SCL is HIGH. It stops the communication by a stop condition, a rising edge on the SDA line
while SCK is high. Data bits are transferred with the rising edge of SCK.
On I²C buses, every slave holds an individual 7-bit device address. This address has always to be
sent as the first byte after the start condition, the eighth bit indicating the direction of the
following data transfer (R=read=1 and W=write=0).
Address byte:
MSB
LSB
0
1
0
1
0
A1
A0
R/W
fixed
variable
key
Default address: 40 (A1 = A0 = 0)
The address byte is followed by the opcode and eventually the payload. Each byte is followed by an
acknowledge bit (= 0, when a slave acknowledges).
Figure 4-1 I²C principle sequence
4.2.1 I²C Write
During write transactions, the master alone sends data, the addressed slave just sends the ac-
knowledge bits. The master first sends the slave address plus the write bit. Then it sends the
PCapØ2 specific opcode including the register address in the slave. Finally it sends the payload
(“Data“).
Member of the ams Group
mezs electronw. CPDL Chuck pu‘arxty 0 CPHA Chuck phase ’\ Mode SPI Mode ’\ DDHD Bit sequence order 0, MSE first www scam de Member of the ams Group
PCapØ2A
acam messelectronic gmbh - Friedrich-List-Str.4 - 76297 Stutensee - Germany - www.acam.de 4-3
Figure 4-2 I²C Write procedure; an example (write 'hFF as a datum to the SRAM at address 'h147.)
S I2C-Address + W A Opcode + Write address A Write address A Data A P
S 0101000 0 0 'h 91 0 'h 47 0 'h FF 0 P
“Write RAM“
write address 147
4.2.2 I²C Read
During read transactions, the direction of communication has to be commuted. Therefore, the
master creates again a start condition and sends the slave address plus the read bit to switch
into read mode. Figure 4-6 shows an example with op code “read from SRAM“.
Figure 4-3 I²C Read example. Read from SRAM address h147, we find hFF having been
programmed before
S I2C-Address + W A A Read address A I2C-Address + R A P
S 0101000 0 0 'h 11 0 'h 47 0 0101000 1 0 P
S
S
Data N
'h FF 1
Opcode + Read address
After arrival of the first (or any) data byte, the master may either signal
Not-Acknowledge = N = 1 to indicate “end read“, “stop sending“ to the slave, or
Acknowledge = A = 0 to indicate “continue in automatic address-increment mode” and thus
receive many bytes in a row. As one can see, automatic address increment is particularly
useful and efficient with the I²C interface.
4.3 SPI interface
Clock Polarity, Clock Phase and Bit Order: The following choices are necessary for successful
operation.
Table 4-2 SPI Clock Polarity, Clock Phase and Bit Order
SPI - Parameter
Description
Setting
CPOL
Clock polarity
0
CPHA
Clock phase
1
Mode
SPI Mode
1
DORD
Bit sequence order
0, MSB first
Member of the ams Group
Seriai ciuck frequency fSPirbus ’iO ’I7 20 MHz Seriai clack puise width HI state tpwh 5O 30 25 ns Seriai ciuck puise width LD state tpwi 5O 30 25 ns SSN enablertarvalid latch tsussn ’iO E 7 ns SSN pulse width between write tpwssn 5O 30 25 ns Data setup time prior to ciuck edge tsud 7 5 ns Data held time after ciuck edge thd 5 4 8 ns Data vaiid after clock edge tvd 40 26 15 ns Member of the ams Group www scam de
®PCapØ2A
4-4 acam messelectronic gmbh - Friedrich-List-Str.4 - 76297 Stutensee - Germany - www.acam.de
Figure 4-4 SPI Write
SSN
SCK
MOSI MSB LSB
High Z
MISO High Z
Figure 4-5 SPI Read
SSN
SCK
MOSI MSB
High Z
MISO
LSB
MSB LSB High
Z
Table 4-3 SPI timing parameters
Name
Symbol
VDD=2.2 V
VDD=3.0 V
VDD=3.6 V
Units
Serial clock frequency
fSPI-bus
10
17
20
MHz
Serial clock pulse width HI state
tpwh
50
30
25
ns
Serial clock pulse width LO state
tpwl
50
30
25
ns
SSN enable-to-valid latch
tsussn
10
8
7
ns
SSN pulse width between write
cycles
tpwssn
50
30
25
ns
Data setup time prior to clock edge
tsud
7
6
5
ns
Data hold time after clock edge
thd
5
4
3
ns
Data valid after clock edge
tvd
40
26
16
ns
Member of the ams Group
SEEM ness.electron1c "H
PCapØ2A
acam messelectronic gmbh - Friedrich-List-Str.4 - 76297 Stutensee - Germany - www.acam.de 4-5
4.4 Special Timings
4.4.1 EEPROM Timings
Here we describe the necessary timing for communication with the EEPROM via serial
interface. Only 1s can be written to the EEPROM. Therefore, it is necessary to erase the
EEPROM cells before writing new data. EEPROM communication may use address auto-
increment. In case of Erase EEPROM the incremental write is achieved by sending
additional dummy bytes (e.g. ´hE2_03_00 will erase EEPROM cells 3 and 4).
Figure 4-6 EEPROM communication
opcode read eeprom read address[6:0] data[7:0]
address auto increment
opcode erase eeprom erase address[6:0] dummy[7:0]
address auto increment
stop
stop
opcode write eeprom write address[6:0] data[7:0]
address auto increment
stop
opcode block erase eeprom
opcode block write eeprom data[7:0] stop
stop
Before writing to the EEPROM following conditions need to be fulfilled:
OCF frequency =5 kHz (e.g. OLF_CTUNE= 2 (50 kHz), OLF_FTUNE ~5, OCF_TIME=5)
BG_TRIM1 = 7
EE_DISABLE = 0
Either: EE_SINGLE_WR_EN = 1 or: EE_WR_EN = 1 & EE_ON = 1
The EEPROM wakeup can be done explicitly or automatically (EE_ON or EE_ON_DSP). It is
mandatory to take care of the setup timings, for each individual byte:
EE_WAKEUP_MODE
trdsu
0
1.5*tOCF
300 µs
1
10 µs
trd
X
600 ns
twrsu
0
1*tOCF
200 µs
1
10µs
twr
0
34*tOCF
6.8 ms
Member of the ams Group
Member of the ams Group www scamde
®PCapØ2A
4-6 acam messelectronic gmbh - Friedrich-List-Str.4 - 76297 Stutensee - Germany - www.acam.de
Figure 4-7 EEPROM power controlled by user: Write/ Erase/ Block write/ Block erase
EE_ON /
EE_ON_DSP
EE_BUSY
access BE / BW /
ER / WR
BE / BW /
ER / WR
10µs twr
set
EE_ON
clear
EE_ON
twr
Figure 4-8 EEPROM power controlled by user: Read
EE_ON /
EE_ON_DSP
EE_BUSY
access send read
address
read
data
10µs trd
set
EE_ON
clear
EE_ON
(auto
increment)
read
data
trd trd
Figure 4-9 EEPROM power controlled automatically: Write/ Erase/ Block write/ Block erase
EE_ON |
EE_ON_DSP
EE_BUSY
access BE / BW /
ER / WR
BE / BW /
ER / WR
twrsu + twr twrsu + twr
Figure 4-10 EEPROM power controlled automatically: Read
EE_ON |
EE_ON_DSP
EE_BUSY
access send read
address
read
data
trdsu + trd
send read
address
read
data
trdsu + trd
Member of the ams Group
EEEI'H ness-e’lectron'lc
PCapØ2A
acam messelectronic gmbh - Friedrich-List-Str.4 - 76297 Stutensee - Germany - www.acam.de 4-7
4.5 OTP Timings
In the un-programmed state the OTP cells content is hFF. Once programmed to 0, the
bits cant be set back to 1. Writing to the OTP demands an external programming voltage
of 6.5 volts at pin VPP_OTP. After setting the programming voltage it is mandatory to wait
for 1 ms. After each data byte sent it is mandatory to wait for min. 30 µs (max. 1000µs)
before sending the next data or to terminate the OTP write.
Note:
Before reading the OTP make sure that in configuration register 1 the correct ECC_MODE
is configured.
Member of the ams Group
®PCapØ2A
4-8 acam messelectronic gmbh - Friedrich-List-Str.4 - 76297 Stutensee - Germany - www.acam.de
Figure 4-11 OTP timing for programming by SPI
VPP
SSN
wr_otp,
add[12:8] add[7:0] data0
MOSI
SSN
wr_otp,
add[12:8] add[7:0] data0
MOSI
Single Byte SPI
Incremental SPI
1ms
Write Data 0
wr_otp,
add[12:8] add[7:0] data1..n
data1..n
30µs
Write Data 1..N
VPP
SSN
MOSI
SSN
MOSI
Single Byte SPI
Incremental SPI
terminate_wr
_otp
terminate_wr
_otp
30µs
Terminate OTP writing
VPP
SSN
MOSI
SSN
MOSI
Single Byte SPI
Incremental SPI
Optional
Member of the ams Group
SEEM ness.electron1c
PCapØ2A
acam messelectronic gmbh - Friedrich-List-Str.4 - 76297 Stutensee - Germany - www.acam.de 4-9
Figure 4-12 OTP timing for programming by I²C
VPP
1ms
30µs
30µs
Write Data 0
Write Data 1..N
Terminate OTP writing
S Addr W
R
A
C
K
wr_otp,
add[12:8[
A
C
Kadd[7..0 A
C
Kdata0
P
S Addr W
R
A
C
K
wr_otp,
add[12:8[
A
C
Kadd[7..0 A
C
K
A
C
K
data0
S Addr W
R
A
C
K
wr_otp,
add[12:8[
A
C
Kadd[7..0 A
C
K
A
C
K
data 1..n
P
A
C
K
data 1..n
Bus Idle (SCL & SDA = High)
Bus Busy (Hold SCL on GND)
S Addr W
R
A
C
K
terminate_
wr_otp
A
C
K
Bus Idle (SCL &
SDA = High)
P S Addr W
R
A
C
K
terminate_
wr_otp
A
C
K
Bus Idle (SCL &
SDA = High)
P
P
Single Byte I2C
Incremental I2C
VPP
Single Byte I2C
Incremental I2C
VPP
Single Byte I2C
Incremental I2C
A
C
K
Optional
Member of the ams Group
PGO SSN [m SPlrMode]. semal se‘eot in DSP_><_d or="" dsp_=""><_2. in[’|]="" out="" ffci="" or‘="" ff2,="" in[’|]="" pu‘seo,="" pdm="" or‘="" pwm="" output="" out="" pg’v="" misd="" [m="" splrmode]="" out="" dsp_x_’|="" or="" dsp_=""><_3. in[’|]="" out="" ff’i="" or‘="" ffb,="" in[’|]="" pu‘se",="" pdm="" or‘="" pwm="" output="" out="" p62="" dsp_=""><_d or="" dsp_=""><_2. in[’|]="" out="" ffci="" or‘="" ff2,="" in[’|]="" pu‘seo,="" pdm="" or‘="" pwm="" output="" out="" intn="" out="" pgb="" dsp_x_’|="" or="" dsp_=""><_3. in[’|]="" out="" ff1="" or‘="" ffb,="" in[1]="" pu‘se",="" pdm="" or‘="" pwm="" output="" out="" p64="" dsp_dut_4="" [output="" only]="" out="" pgs="" dsp_dut_5="" [output="" only]="" out="" member="" of="" the="" ams="" group="" www="" scam="" de="">
®PCapØ2A
4-10 acam messelectronic gmbh - Friedrich-List-Str.4 - 76297 Stutensee - Germany - www.acam.de
4.6 GPIO and PDM/PWM
This section is about the general purpose ports and their use as Pulse-Density / Pulse Width
Modulated outputs (PDM/PWM). Like PCapØ1, PCapØ2 is very flexible with assignment of the
various GPIO pins to the DSP inputs/outputs. The following table shows the 5 general purpose
ports and their possible assignment.
Table 4-4 General-Purpose Port Assignment
External Port Name
Description
Direction in or out
PG0
SSN (in SPI-Mode), serial select
in
DSP_x_0 or DSP_x_2,
I/O for the DSP
in(1) / out
FF0 or FF2,
I/O for the DSP with Flip-Flop
in(1)
Pulse0, PDM or PWM output
out
PG1
MISO (in SPI-Mode)
out
DSP_x_1 or DSP_x_3,
I/O for the DSP
in(1) / out
FF1 or FF3,
I/O for the DSP with Flip-Flop
in(1)
Pulse1, PDM or PWM output
out
PG2
DSP_x_0 or DSP_x_2,
I/O for the DSP
in(1) / out
FF0 or FF2,
I/O for the DSP with Flip-Flop
in(1)
Pulse0, PDM or PWM output
out
INTN
out
PG3
DSP_x_1 or DSP_x_3,
I/O for the DSP
in(1) / out
FF1 or FF3,
I/O for the DSP with Flip-Flop
in(1)
Pulse1, PDM or PWM output
out
PG4
DSP_OUT_4 (output only)
out
PG5
DSP_OUT_5 (output only)
out
(1) These ports provide an optional debouncing filter and an optional pull-up resistor.
Member of the ams Group
men electronn. D5P_Ma Nfl\l\ PuIIL/pf‘y T > \ \ \ \ N , > | | | | | | | | NZ | | | I _ > | | k ’ > D5P_Ma ‘ NJ Puzzup; ) L . \ \ \ \ j "w ' ’j > I , | | | | | | I IV! | | | I 7 > | | 1‘ " > //V 4\ www scam :12 Member of the ams Group
PCapØ2A
acam messelectronic gmbh - Friedrich-List-Str.4 - 76297 Stutensee - Germany - www.acam.de 4-11
Figure 4-13 GPIO assignment
Pullup
1
clk QN
~40ms
1
clk QN
D
FF0
IN|OUT IN|OUT|INTN
DSP_OUT_0
DSP_IN_0
1
clk QN
D
FF2
DSP_OUT_2
DSP_IN_2
PG_DIR_IN
PG_PU INT2PG2
DSP_MOFLO_EN0
PG0xPG2 (=0)
PULSE0
PG0
(SSN) PG2 DSP_FF_I
N0
0
1
DSP_FF_I
N2
0
1
Pullup
1
clk QN
~40ms
1
clk QN
D
FF1
IN|OUT IN|OUT|INTN
DSP_OUT_1
DSP_IN_1
1
clk QN
D
FF3
DSP_OUT_3
DSP_IN_3
PG_DIR_IN
PG_PU
DSP_MOFLO_EN1
PG1xPG3 (=0)
PULSE1
PG1
(MISO) PG3 DSP_FF_I
N1
0
1
DSP_FF_I
N3
0
1
PG4
OUT
DSP_OUT_4
PG5
OUT
DSP_OUT_5
Member of the ams Group
4
®PCapØ2A
4-12 acam messelectronic gmbh - Friedrich-List-Str.4 - 76297 Stutensee - Germany - www.acam.de
4.6.1 Debouncing filter
There is a possibility to activate a 40 ms debounce filter (“monoflop“) for the ports in case these
are used as push button inputs. This might be useful especially in case the DSP is started by the
pins (signals FF0, FF2). Figure 2-3 shows the effect of the monoflop filter.
Figure 4-14 Port trigger timing
PGx in
Keypress vibrations
40ms
Monoflop out with
DSP_MOFLO_EN=1
FF0/FF2
out
Trigger for DSP
End of program:
reset by setting
DSP_OUT_0
PGx in
Keypress vibrations
Monoflop out with
DSP_MOFLO_EN=0
FF0/FF2
out
Trigger for DSP
End of program:
reset by setting
DSP_OUT_0
retrigger
4.6.2 PDM/PWM
There is a possibility to generate two pulse width modulated or pulse density modulated output
signals. In general, PDM is preferred because of better noise behavior. The output is based on the
content of RAM registers PI0_REF, PI1_REF (DSP write addresses 98, 99. Width 16 bit each).
The content of those RAM cells depends on the firmware. The description in this datasheet is
based on the standard firmware, which writes the capacitance ration to PI0_REF, the Resistance
ratio to PI1_REF.
The pulse interfaces can be switched on individually. The resolution can be programmed from 10
to 16 bit. There is a broad range of clock signals that can be selected as base for the pulse
interfaces, derived from the 50 kHz low-frequency oscillator, the 4 MHz high-frequency oscillator
or an internal ring oscillator with up to 20MHz or the cycle time. The output pins may be PG0 or
PG2 and PG1 or PG3.
Member of the ams Group
EEEI'H ness-e’lectron'lc ”Hm
PCapØ2A
acam messelectronic gmbh - Friedrich-List-Str.4 - 76297 Stutensee - Germany - www.acam.de 4-13
Figure 4-15
IIC_EN
MISO_PG1
SSN_PG0
SCK_SCL
INTN
MOSI_SDA
VDD33
VPP_OTP
24
23
22
21
20
19
18
17
PCap02 100n
100n
220k
220k PDM
T
PDM
C
Filter configuration instructions:
The resistor should be >= 50 kOhm
The internal DC resistance of the output buffer is typ. 100 Ohm
1.Settling time (for PDM and PWM)
If the output value changes, the settling time to reach 90% is 2.3 x Tau
Tau=R x C
Example: 200k x 100nF x 2.3 = 50 ms
The smaller is Tau the faster is the settling but the higher is the ripple.
2.Voltage Ripple
Calculation method: T.b.d.
The output signal can be converted into an analog voltage through a low-pass filter. For the PDM
output a first-order filter made of 220 k / 100 nF is sufficient. The PWM output needs a filter
with a lower cutoff frequency.
Member of the ams Group
mm «lmmoduhflnné— 4m
®PCapØ2A
4-14 acam messelectronic gmbh - Friedrich-List-Str.4 - 76297 Stutensee - Germany - www.acam.de
In the standard firmware, the result of measurement from capacitance or temperature is a 24-bit
value. The DSP linearizes this 24 bit result to a 12 bit value (assuming ‘12 bit resolution’ setting).
The parameters Slope (m) and Offset (b) of the linear function are configurable in parameter
registers 59 70. Both, offset and slope can be set to either positive or negative values. The
setting of the slope and offset limits the range of the output signal and hence determines the
voltage range of the filtered analog signal. A 12-bit resolution thus limits the result value between
0 and 4096. For lower-bit resolutions, the range reduces accordingly. The following figure depicts
how the result is processed to generate the pulsed output.
Figure 4-16 PWM-PDM pulse generation
Measurement result
x
E.g. x = C1/C0
Source &
Linearization
y = mx + b
PI0_REF/PI1_REF
addresses 98 & 99
PWM/PDM
Generator
PG0 or PG2
PG1 or PG3
RAMRAM DSP
Slope m
Offset b
Configuration
Resolution N
Frequency e.t.c.
Configuration
The following figure shows a sample linear function and its parameters graphically. In this graph,
the result C1/C0 has been taken on the x-axis, assuming that this result is to be pulse modulated.
Here the value of m is positive and b is negative. A 12 bit resolution has been configured.
Figure 4-17 PWM-PDM linearization
Firmware specific Firmware specific
Member of the ams Group
SEEM messaelectron'lc 4U DSF'_MCIFLD_EN Activates anti—bouncing filters on PGD/F'G’l 4U PGUXF'GE Swaps PGD and PGE functionality 4U PG’IXF'GG Swaps PG’I and PGB functionality 42 DSF'_FF_|N Activates latching FLIFLDPs at ports FBI] to P83 43 INTEFGE Permits rerouting the interrupt signal to the FEE port. If INTEPGE 4E PG_D|Fl_lN Toggles outputs to inputs 4E PG_PU Turn on pull-up resistors for ports F'GD to P63
PCapØ2A
acam messelectronic gmbh - Friedrich-List-Str.4 - 76297 Stutensee - Germany - www.acam.de 4-15
By setting the value of m and b, the linearization function limits the range of the output x as shown.
Values outside these limits are ignored. Thereby knowing the range in which the results might
change, the parameters of the linearization function can be fed accordingly. The lower limit of the
valid range corresponds to 0% modulation (all bits are 0), The upper limit of the valid range
corresponds to 100% modulation (all bits are 1), and this is the maximum possible value of output.
12 bit resolution implies that this maximum value is 4096. For lower-bit resolutions, this
maximum value will come down accordingly. In terms of voltage, the two limits correspond to 0V
and VDD.
Applications:
A typical case would be outputting capacitance results through PG0 and temperature
results through PG1. Calculation and transfer to the output registers will be performed by
firmware.
Main application will be when an analog interface is demanded by the final customer.
Other applications concern maybe an impossibility to use the serial interface (speed limita-
tions or other concerns).
Finally, a temperature-coded pulse stream could be low-pass filtered and then directly used
for temperature control.
Please note that the entire linearization task as described here is performed by firmware,
especially the standard firmware.
4.7 Interfaces Parameters
4.7.1 GPIO Settings
Table 4-5
Reg
.
Configuration
Parameter
Description
40
DSP_MOFLO_EN
Activates anti-bouncing filters on PG0/PG1
40
PG0xPG2
Swaps PG0 and PG2 functionality
40
PG1xPG3
Swaps PG1 and PG3 functionality
42
DSP_FF_IN
Activates latching FLIFLOPs at ports PG0 to PG3
43
INT2PG2
Permits rerouting the interrupt signal to the PG2 port. If INT2PG2
=1 then all other settings for PG2 are ignored. Useful with QFN24
packages, where no INTN pin is available.
46
PG_DIR_IN
Toggles outputs to inputs
0 = output; 1 = input
46
PG_PU
Turn on pull-up resistors for ports PG0 to PG3
Firmware specific
Member of the ams Group
44 P|D_CLK_SEL Select clock sources for pulse code generators. Clock source Factor Fre uenc Off Cycle time c cle time] c cle time] c cle time] HF. Highrfrequency [um Ln LF. Highrfrequency wmwmmbwmgo [um Ln Internal Fling Oscillator 1 2 4 2 ’I U. U. 2 ’I U. U. 1 U. 0. mm U! 45 P|_EN Switch on pulse outputs 45 P|D_FlES. Resolution of pulse interfaces www “smug Member of the ams Group
®PCapØ2A
4-16 acam messelectronic gmbh - Friedrich-List-Str.4 - 76297 Stutensee - Germany - www.acam.de
4.7.2 PDM/PWM Settings
Table 4-6
Reg
.
Configuration
Parameter
Description
44
PI0_CLK_SEL
PI1_CLK_SEL
Select clock sources for pulse code generators.
0 = pulse interface off
Clock source
Factor
Frequency
0
Off
1
Cycle time
1
1 / (cycle time)
2
2
2 / (cycle time)
3
4
4 / (cycle time)
4
HF, High-frequency
clock (e.g. 4 MHz)
2
8 MHz
5
1
4 MHz
6
0.5
2 MHz
7
0.25
1 MHz
8
LF, High-frequency
clock (e.g. 50 kHz)
2
100 kHz
9
1
50 kHz
10
0.5
25 kHz
11
0.25
12.5 kHz
12
Internal Ring Oscillator
(not recommended)
1
20 MHz
13
0.5
10 MHz
14
0.25
5 MHz
45
PI_EN
Switch on pulse outputs
‘bxx01 = PWM at PI0
‘bxx10 = PDM at PI0
‘b01xx = PWM at PI1
‘b10xx = PDM at PI1
45
PI0_RES,
PI1_RES
Resolution of pulse interfaces
0 = 10 bit
1 = 12 bit
2 = 14 bit
3 = 16 bit
Member of the ams Group
mess electronn: www scam d2 Member of the ams Group
PCapØ2A
acam messelectronic gmbh - Friedrich-List-Str.4 - 76297 Stutensee - Germany - www.acam.de 5-1
5 Configuration & Read Registers
5.1 Configuration registers
The PCapØ2 offers 78 write registers, 51 registers for configuring the hardware (CDC,
RDC, clocks, PDM/PWM, DSP) and 27 registers for making parameters available to the
DSP (to be interpreted by firmware). All of these 78 registers are one byte large.
A 78th register contains nothing but one single bit, the RunBit, which enables/disables the
front-end and the DSP. Register 77 has to be written every time the configuration has
been modified.
Note: Before writing into the configuration registers the RunBit in register 77 has to be
set to 0. Then, as a last step, configuration register 77 is written again with RunBit = 1.
Table 5-1 Configuration register map
Reg
7
6
5
4
3
2
1
0
0
AUTOBOOT_DIS
MEM_LOCK_DIS
3
0
3
0
1
ECC_MODE
7
0
2
SPI_COLL
AVOID_EN
I2C_ADD
MEM_CMP_LENGTH
OTP_RO_SPEED
1
0
1
0
1
0
3
OLF_CTUNE
OLF_FTUNE
OX_CLK32
KHZ_EN
OLF_CLK_
SEL
1
0
3
0
4
OX_DIS
OX_AMP_
TRIM
OX_DIV4
OX_AUTO
STOP_DIS
OX_STOP
OX_RUN
2
0
5
OCF_TIME
5
0
6
OHF_CLK_SEL[2:0]
2
0
7
DCHG_
DUM_DIS
SCHMITT_
CDUM_EN
C_SENSE_
INVERT
SCHMITT_SEL[1:0]
1
0
8
RDCHG_INT_H[1:0]
RDCHG_INT_L[1:0]
RDCHG_
INT_EN
RDCHG_
EXT_EN
RDCHG_
1MEG_EN
1
0
1
0
9
AUX_PD_
DIS
AUX_CINT
RDCHG_EA
RLY_OPEN
RDCHG_
PERM_EN
RDCHG_
EXT_PERM
RCHG_SEL[1:0]
1
0
10
C_REF_INT
COMP_R_
SEL
C_COMP_
EXT
C_COMP_
INT
C_COMP_R
C_COMP_
FORCE
C_DIFFER
ENTIAL
C_FLOAT
ING
11
C_PORT_
PAT
C_SELFTEST
CY_CLK_SEL
CY_PRE_
LONG
C_DC_
BALANCE
12
C_PORT_EN
7
0
Member of the ams Group
www scam de Member of the ams Group
®PCapØ2A
5-2 acam messelectronic gmbh - Friedrich-List-Str.4 - 76297 Stutensee - Germany - www.acam.de
13
7
C_AVRG
0
14
12
8
15
7
C_AVRG_ALT
0
16
12
8
17
7
CONV_TIME
0
18
15
8
19
22
16
20
7
CONV_TIME_ALT
0
21
15
8
22
22
16
23
DISCHARGE_TIME
7
0
24
C_STARTONPIN
C_TRIG_SEL_ALT
C_TRIG_SEL
DISCHARGE_TIME
1
0
1
0
1
0
9
8
25
PRECHARGE_TIME
7
0
26
C_FAKE
PRECHARGE_TIME
3
0
9
8
27
FULLCHARGE_TIME
7
0
28
EE_SINGLE_
WR_EN
EE_WR_EN
EE_DISABLE
EE_IFC_
PRIO
EE_WAKE
UP_MODE
EE_ON
FULLCHARGE_TIME
9
8
29
R_STARTONPIN
R_TRIG_SEL_ALT
R_TRIG_SEL
1
0
2
0
2
0
30
7
R_TRIG_PREDIV
0
31
15
8
32
R_AVRG
1
0
21
16
33
R_SENSE_
INVERT
R_FAKE
R_QHA_SEL
5
0
34
R_REF_SEL
R_3EXT_SEL
R_PT1_EN
R_PT0_EN
R_PT2REF_
EN
R_PORT_
EN_IMES
R_PORT_
EN_IREF
35
C_REF_SEL
R_CY
R_OLF_DIV
4
0
1
0
36
RTC_CLK_
SEL
RTC_EN
LBD_CLK_
SEL
TDC_NOISE
_CY_DIS
37
TDC_MUPU_NO
TDC_FIN_ADJ
5
0
1
0
38
TDC_QHA_SEL
5
0
39
TEBU_SEL
EE_VEE2_
ENA
EE_VEE1_
ENA
EE_EETEST_
ENA
TDC_CALWIDTH
1
0
1
0
40
DSP_MOFLO_EN
DSP_CLK_MODE
DSP_SPEED
PG1xPG3
PG0xPG2
1
0
1
0
1
0
41
WD_TIME
7
0
42
DSP_STARTONPIN
DSP_FF_IN
3
0
3
0
43
INT2PG2
DSP_
SPRAM_SEL
DSP_START
DSP_START_EN
4
0
44
PI1_CLK_SEL
PI0_CLK_SEL
3
0
3
0
Member of the ams Group
SEEM mess.e1ectron1c
PCapØ2A
acam messelectronic gmbh - Friedrich-List-Str.4 - 76297 Stutensee - Germany - www.acam.de 5-3
45
PI_EN
PI1_RES
PI0_RES
3
0
1
0
1
0
46
PG_DIR_IN
PG_PU
3
0
3
0
47
BG_PERM
BG_TRIM0
4
0
48
TDC_NOISE_
DIS
TDC_MUPU_SPEED
TDC_MR2
BG_TRIM1
1
0
3
0
49
TDC_ALUPER
MOPEN
TDC_ALU
SLOW
TDC_CHAN_EN
TDC_CAL
AVG
TDC_CAL_DELAY
1
0
1
0
50
7
Parameter0
0
51
15
8
52
23
16
53
7
Parameter1
0
54
15
8
55
23
16
56
7
Parameter2
0
57
15
8
58
22
16
59
7
Parameter3
0
60
15
8
61
23
16
62
7
Parameter4
0
63
15
8
64
23
16
65
7
Parameter5
0
66
15
8
67
23
16
68
7
Parameter6
0
69
15
8
70
23
16
71
7
Parameter7
0
72
15
8
73
23
16
74
7
Parameter8
0
75
15
8
76
23
16
77
RUNBIT
Firmware specific
Member of the ams Group
* Name Description Settings AUTUBDDT_DIS[3:D] Automatic selfrhoot from 'hD := standralone MEM_LDCK_D|S[I3:D] Programememory Readeout 'hD := activating the read, E Name ECC_MUDE[7:D] l Description CITPrinternal error detection l Settings 'nUD := disabled W Name Description Settings SPLCDLLAVDl D_EN Avoids collisions of DSP and ’I = recommended IQC_ADD Complement to the IEG see chapter 4 MEM_CDMF‘_LENGTH[’| :D] Controls the SFiAMrtoetlTF‘ Member of the am: Group D := disable www scamde
®PCapØ2A
5-4 acam messelectronic gmbh - Friedrich-List-Str.4 - 76297 Stutensee - Germany - www.acam.de
5.2 Configuration Registers in Detail
Reg
7
6
5
4
3
2
1
0
0
AUTOBOOT_DIS
MEM_LOCK_DIS
3
0
3
0
Name
Description
Settings
AUTOBOOT_DIS[3:0]
Automatic self-boot from
OTP
h0 := stand-alone
operation, the device boots
itself from the OTP memory
hF := slave operation, the
device requires to be
booted via the serial
interface
MEM_LOCK_DIS[3:0]
Program-memory Read-out
blocker (OTP and SRAM
against the serial interface)
h0 := activating the read-
out blocker, which prevents
the firmware from being
read and thus helps
protecting your intellectual
property
hF := memory remains
unblocked
Reg
7
6
5
4
3
2
1
0
1
ECC_MODE
7
0
Name
Description
Settings
ECC_MODE[7:0]
OTP-internal error detection
and repair mechanism
‘h00 := disabled
(direct/simple)
‘h0F := double mode
‘hF0 := quad mode (with
memory size halved down to
1963 bytes, see section
6.2)
Reg
7
6
5
4
3
2
1
0
2
SPI_COLL
AVOID_EN
I2C_ADD
MEM_COMP_LENGTH
OTP_RO_SPEED
1
0
1
0
1
0
Name
Description
Settings
SPI_COLLAVOID_EN
Avoids collisions of DSP and
SPI register access
1 = recommended
I2C_ADD
Complement to the I²C-
address
see chapter 4
MEM_COMP_LENGTH[1:0]
Controls the SRAM-to-OTP
comparison mechanism
0 := disable
1 := exit after comparison
Member of the ams Group
mess electronic of 5 bytes CITF‘_RU_SF‘EED l Speed of CITP oscillator l ’l = fastest. recommended W Name Description Settings OLF_CTU NE[’| :0] Coarsertune the low 0 := EUDkHz OLF_FTUNE[3 : D] Finertune the lowrfrequenoy U:= minimum recommended OX_CLKE 2 KHZ_EN Switches external U:= external oscillator set to OLF_CLK_SEL Select the lcwrfrequency U:= onrchip clock source for W Name Description Settings C|><_d|s disable="" the="" dx="" clock="" u:="clock" generator="" ,="" ’l:="C|"><_amf‘_tfl|m trim="" the="" cix="" clock="" feedback="" gain="" 0—="" low="" gain.="" 1'="high" gain="" c|=""><_d|v4 cix="" clock="" frequency="" :="raw" u:="no" division;="" 1:="division" c|=""><_autcistcip_dis aoarn="" internal="" bits="" default="" '="U" c|=""><_stdp aoarn="" internal="" bits="" default="" :="U" c|=""><_flun[2:d] control="" the="" permanency="" or="" the="" u:="generator" member="" of="" the="" ams="" group="" www="" scam="" de="">
PCapØ2A
acam messelectronic gmbh - Friedrich-List-Str.4 - 76297 Stutensee - Germany - www.acam.de 5-5
of 5 bytes
2 := exit after every 33
bytes
3 := exit after every 257
bytes
OTP_RO_SPEED
Speed of OTP oscillator
1 = fastest, recommended
Reg
7
6
5
4
3
2
1
0
3
OLF_CTUNE
OLF_FTUNE
OX_CLK32
KHZ_EN
OLF_CLK_
SEL
1
0
3
0
Name
Description
Settings
OLF_CTUNE[1:0]
Coarse-tune the low-
frequency clock
0 := 200kHz
1 := 100kHz
2 := 50kHz recommended
3 := 10kHz
OLF_FTUNE[3:0]
Fine-tune the low-frequency
clock
0:= minimum recommended
15:= maximum
OX_CLK32KHZ_EN
Switches external
Oscillatorpad from 4MHz to
32 kHz clock generator
0:= external oscillator set to
4MHz resonator
1:= external oscillator set to
32 kHz quartz
OLF_CLK_SEL
Select the low-frequency
clock source
0:= on-chip clock source for
OLF
1:= 32 kHz quartz serves
as OLF
see remarks in section 5.4
Reg
7
6
5
4
3
2
1
0
4
OX_DIS
OX_AMP_
TRIM
OX_DIV4
OX_AUTO
STOP_DIS
OX_STOP
OX_RUN
2
0
Name
Description
Settings
OX_DIS
Disable the OX clock
0:= clock generator on, 1:=
off
OX_AMP_TRIM
Trim the OX clock feedback gain
0:= low gain, 1:= high gain
OX_DIV4
OX clock frequency := raw
freq./4
0:= no division; 1:= division
by 4
OX_AUTOSTOP_DIS
acam internal bits
default := 0
OX_STOP
acam internal bits
default := 0
OX_RUN[2:0]
Control the permanency or the
latency for pulsed mode of the
OX generator. Latency means
an oscillator warm-up time
before a measurement starts
0:= generator off
6:= OX latency = 1 / fOLF
3:= OX latency = 2 / fOLF
2:= OX latency = 31 / fOLF
1:= OX runs in permanence
see remarks in section 5.4
Member of the ams Group
fl Name DCF_T|ME[5:D] l Description Controls the DCF frequency. l Settings D:= maximum possible DCF 2 'foLF W Name UHF_CLK_SEL[2:U] l Description Choice of HF clock source: l Settings 1 := internal clock source #1 I—W Name Description Settings DCHG_DUM_DlS Dummy charge/discharge 0:: for differential SCHMITT_CDUM_EN Eve n better sym metry C_SENSE_| NVEFlT Invert levels between trigger SCHMITT_SEL[’| :D] Selection of internal Schmitt Member of the am: Group D:= default ’l:= recommended when U = recommended www scamde
®PCapØ2A
5-6 acam messelectronic gmbh - Friedrich-List-Str.4 - 76297 Stutensee - Germany - www.acam.de
Reg
7
6
5
4
3
2
1
0
5
OCF_TIME
5
0
Name
Description
Settings
OCF_TIME[5:0]
Controls the OCF frequency,
serving the EEPROM, must
be adjusted so that fOCF :=
3..5 kHz. OCF is derived
from OLF via a counter.
0:= maximum possible OCF
frequency
(fOCF = fOLF / 1)
63:= minimum possible OCF
frequency
(fOCF = fOLF / 126)
 


Reg
7
6
5
4
3
2
1
0
6
OHF_CLK_SEL[2:0]
2
0
Name
Description
Settings
OHF_CLK_SEL[2:0]
Choice of HF clock source;
if no HF quartz or ceramic
oscillator is connected, nor
any other off-chip HF clock
signal available, choose
"internal"
1 := internal clock source #1
2 := internal clock source #2
4 := external clock source
Reg
7
6
5
4
3
2
1
0
7
DCHG_
DUM_DIS
SCHMITT_
CDUM_EN
C_SENSE_
INVERT
SCHMITT_SEL[1:0]
1
0
Name
Description
Settings
DCHG_DUM_DIS
Dummy charge/discharge
symmetry for differential
capacitors
0:= for differential
capacitors,
1:= for ordinary capacitors
SCHMITT_CDUM _EN
Even better symmetry
0:= default
1:= recommended with
differential sensors and
dummy mode active
C_SENSE_INVERT
Invert levels between trigger
and converter
1:= recommended when
using one of the on-chip
Schmitt triggers
SCHMITT_SEL[1:0]
Selection of internal Schmitt
trigger
0 = recommended
Member of the ams Group
mess electronic I—FW Name Description Settings FiDCHG_lNT_H[’| :0] Choice of one out of 4 one U:= 180 k FlDCHG_lNT_L[’| :0] Same. but for ports PCU , FlDCHG_lNT_EN Enable internal discharge U:= off FiDCHG_EXT_EN Enable external discharge U:= off FlDCHG_’| MEG_EN Replace the kiloeohm U:= ”ID 130 k W Name Description Settings AUX_PD_D|S Activate the auxiliary port 0 = off AUX_ClNT RDCHG_EARLY_CIF‘EN Early open the chiprinternal U = off RDCHG_PERM_EN Keep the chiprinternal U = off RDCHG_EXT_PEFlM Enable the external 0 = off RCHG_SEL[1:D] Choice of one out of 4 one U:= 180 k W Member of the am: Group www scam de
PCapØ2A
acam messelectronic gmbh - Friedrich-List-Str.4 - 76297 Stutensee - Germany - www.acam.de 5-7
Reg
7
6
5
4
3
2
1
0
8
RDCHG_INT_H[1:0]
RDCHG_INT_L[1:0]
RDCHG_
INT_EN
RDCHG_
EXT_EN
RDCHG_
1MEG_EN
1
0
1
0
Name
Description
Settings
RDCHG_INT_H[1:0]
Choice of one out of 4 on-
chip discharge resistors for
the CDC ports PC4 PC7
0:= 180 k
1:= 90 k
2:= 30 k
3:= 10 k
RDCHG_INT_L[1:0]
Same, but for ports PC0
PC3 plus special ports PC8
PC9
RDCHG_INT_EN
Enable internal discharge
resistors
0:= off
1:= internal on
RDCHG_EXT_EN
Enable external discharge
resistors
0:= off
1:= external on
RDCHG_1MEG_EN
Replace the kilo-ohm
discharge resistors by a 1-
M-resistor in the PC0-PC3
and PC8-PC9 paths, only.
The PC4-PC7 path is
unaffected.
0:= 10 180 k
1:= 1 M
Reg
7
6
5
4
3
2
1
0
9
AUX_PD_
DIS
AUX_CINT
RDCHG_EA
RLY_OPEN
RDCHG_
PERM_EN
RDCHG_
EXT_PERM
RCHG_SEL[1:0]
1
0
Name
Description
Settings
AUX_PD_DIS
Activate the auxiliary port
PC_AUX by disabling the
pull-down resistors built-in
for its protection
O = off
1 = active
AUX_CINT
RDCHG_EARLY_OPEN
Early open the chip-internal
discharge resistor
0 = off
1 = on
RDCHG_PERM_EN
Keep the chip-internal
discharge resistor
permanently connected.
0 = off
1 = on
RDCHG_EXT_PERM
Enable the external
discharge resistor.
0 = off
1 = on
RCHG_SEL[1:0]
Choice of one out of 4 on-
chip charging resistors for
the CDC, permitting to limit
the charging current,
avoiding transients
0:= 180 k
1:= 90 k
2:= 30 k
3:= 10 k
Reg
7
6
5
4
3
2
1
0
10
C_REF_INT
COMP_R_
SEL
C_COMP_
EXT
C_COMP_
INT
C_COMP_R
C_COMP_
FORCE
C_DIFFER
ENTIAL
C_FLOAT
ING
Member of the ams Group
Name Description Settings C_REF_INT Use onrchip reference D:= external reference at COMP_R_SEL Choice of an onrchip D := 90 k C_CCIMF‘_E>(T Activate the compensation D:= Idle C_CCIMF‘_|NT Activate the compensation D:= idle C_CCIMF‘_R Activate the compensation D := idle C_CCIMF‘_FURCE Compensation for D := off C_DlFFEFlENTlAL Select between single or D:= ordinary C_FLUATlNG Select between grounded or D:= grounded I l Name Description Settings C_PDFlT_PAT The order of the measured 0 := normal C_SELFTEST For differential sensors 0 := off CY_CLK_SEL Clock source for CDC: ‘bDU := DLF_CLK wwwacamde Member of the ams Group
®PCapØ2A
5-8 acam messelectronic gmbh - Friedrich-List-Str.4 - 76297 Stutensee - Germany - www.acam.de
Name
Description
Settings
C_REF_INT
Use on-chip reference
capacitor at CDC special
ports PC8 and PC9
0:= external reference at
PC0/GND or PC0/PC1)
1:= internal reference
COMP_R_SEL
Choice of an on-chip
auxiliary resistor used for
compensating slowly-varying
parasitic parallel resistivity
0 := 90 k
1 := 180 k
C_COMP_EXT
Activate the compensation
mechanism for off-chip
parasitic capacitances
0:= idle
1:= active; must be avoided
when C_FLOATING==0
C_COMP_INT
Activate the compensation
mechanism for on-chip
parasitic capacitances and
gain compensation
0:= idle
1:= active
C_COMP_R
Activate the compensation
mechanism for slowly-
varying parasitic parallel
resistivity
0 := idle
1 := active
C_COMP_FORCE
Compensation for
mechanical forces on
differential sensors.
The outer electrodes have
nearly the same potential.
Can be used only with
differential modes.
0 := off
1 := active
C_DIFFERENTIAL
Select between single or
differential sensors
0:= ordinary
1:= differential
C_FLOATING
Select between grounded or
floating sensors
0:= grounded
1:= floating
Reg
7
6
5
4
3
2
1
0
11
C_PORT_
PAT
C_SELFTEST
CY_CLK_SEL
CY_PRE_
LONG
C_DC_
BALANCE
Name
Description
Settings
C_PORT_PAT
The order of the measured
ports will be reversed after
each sequence
Do not use in combination
with ("PCapØ2-Mode" &&
Conversion Timer &&
AVRG!=0), See bug report
7.1.1
0 := normal
1 := alternating order of
ports
C_SELFTEST
For differential sensors
only. See 3.2.4
0 := off
1 := inverts value of
C_COMP_FORCE.
CY_CLK_SEL
Clock source for CDC:
b00 := OLF_CLK
b01 := inhibit
b10 := OHF_CLK/4
b11 := OHF_CLK
Member of the ams Group
mess electronic CY_PRE_LDNG Adds safety delay between D := off. recommended C_DC_BALANCE helps keeping the sensor 0:: idle E Name l Description l Settings C_F‘DFlT_EN[7:U] Enables hitwise the CDC ‘hDU:= a|| closed. the CDC Name Description Settings C_AVFlG[’| 2:0] Sample size for averaging U=’l := no averaging C_AVFlG_ALT[12:D] Second sample size for www acorn de Member of the am: Group
PCapØ2A
acam messelectronic gmbh - Friedrich-List-Str.4 - 76297 Stutensee - Germany - www.acam.de 5-9
CY_PRE_LONG
Adds safety delay between
internal clock paths
0 := off, recommended
1 := on
C_DC_BALANCE
helps keeping the sensor
DC free (charge-free on the
average); only applicable
with single floating or with
differential capacitors.
0:= idle
1:= active
Reg
7
6
5
4
3
2
1
0
12
C_PORT_EN
7
0
Name
Description
Settings
C_PORT_EN[7:0]
Enables bitwise the CDC
ports from PC0 to PC7, bit
#0 for port PC0, #1 for
PC1 etc.
‘h00:= all closed, the CDC
will not work
‘h01:= only port PC0 is
activated etc.
‘hFF:= all ports activated
Reg
7
6
5
4
3
2
1
0
13
7
C_AVRG
0
14
12
8
15
7
C_AVRG_ALT
0
16
12
8
Name
Description
Settings
C_AVRG[12:0]
Sample size for averaging
(calculating the mean value)
over CDC measurements
0=1:= no averaging
2:= averaging over 2 values
3:= averaging over 3 values
etc.
8191:=maximum sample
size
C_AVRG_ALT[12:0]
Second sample size for
averaging
2nd configuration bank, set
by DSP_SEL_CFG_BANK =
1. The DSP may switch
between C_AVRG and
C_AVRG_ALT values to have
two operating modes
selected by software.
Reg
7
6
5
4
3
2
1
0
17
7
CONV_TIME
0
18
15
8
19
22
16
Member of the ams Group
Name Description Settings CONV_T|ME[22:D] Conversion trigger period CONV_T|ME_ALT[22:D] 2"fl configuration bank. set Concerning CDC, 3 E Name i Description DISCHARGE_T|ME[7:D] fl Parameter Description Settings C_STARTONP|N[1:D] Selection of the GPIO port D:= PGD. ’|:= PG’i, 2:= P62, C_TRIG_SEL_ALT[’i :0] Same. but written to an C_TRIG_SEL[’| :D] Selection of the trigger Member of the am: Group D: = stretched D to 3: op code www scamde
®PCapØ2A
5-10 acam messelectronic gmbh - Friedrich-List-Str.4 - 76297 Stutensee - Germany - www.acam.de
Reg
7
6
5
4
3
2
1
0
20
7
CONV_TIME_ALT
0
21
15
8
22
22
16
Name
Description
Settings
CONV_TIME[22:0]
Conversion trigger period
or:
sequence period (in
stretched mode)
Concerning CDC, a
particular period for
triggering the
measurements
Tconv./seq= 2 *
CONV_TIME[..] / fOLF
CONV_TIME_ALT[22:0]
2nd configuration bank, set
by DSP_SEL_CFG_BANK =
1. The DSP may switch
between C_AVRG and
C_AVRG_ALT values to have
two operating modes
selected by software.
Reg
7
6
5
4
3
2
1
0
23
DISCHARGE_TIME
7
0
Name
Description
DISCHARGE_TIME[7:0]
Leading bits at next
address.
Sets CDC discharge time tdischarge. Time interval reserved for
discharge time measurement. tdischarge = (DISCHARGE_TIME + 1)
* Tcycleclock
0 := tdischarge = 1*Tcycleclock
Reg
7
6
5
4
3
2
1
0
24
C_STARTONPIN
C_TRIG_SEL_ALT
C_TRIG_SEL
DISCHARGE_TIME
1
0
1
0
1
0
9
8
Parameter
Description
Settings
C_STARTONPIN[1:0]
Selection of the GPIO port
that permits triggering a
CDC start
0:= PG0, 1:= PG1, 2:= PG2,
3:= PG3
C_TRIG_SEL_ALT[1:0]
Same, but written to an
alternative register bank
under DSP control (the
DSP is free to toggle be-
tween those two banks)
0:= stretched
mode
1:= immediate
loop-back (conti-
nuous run)
2:= conversion
trigger timer
3:= rising edge
at one of the
GPIO ports
0 to 3: op code
h8C is always a
possible trigger
for the CDC
C_TRIG_SEL[1:0]
Selection of the trigger
source accepted for
starting the CDC
Member of the ams Group
DISCHARGE_TIME[B:B] Leading bits to preceding mess electronic Name Description PRECHARGE_Tl ME[B: C_FAKE[E:D] Number of "fake“ or "warmeup" measurements for the CDC. Name Description Settings FULLCHARGEJIME [9:0] Sets the fullcharge time EE_SINGLE_WR_EN EEPROM Single write 0 := no single write action EE_WR_EN EEPROM Write protection 0 := no write/erase to EE_D|SABLE EEPROM disable U := EEF‘RCIM enabled EE_lFC_PFllC| acam internal bits default := U EE_WAKEUF‘_MODE select read and write 0 := 1.5 *t EE_UN EE_ON wakes up the Member of the ams Group U := wakes up the EEPRDM www scam de
PCapØ2A
acam messelectronic gmbh - Friedrich-List-Str.4 - 76297 Stutensee - Germany - www.acam.de 5-11
DISCHARGE_TIME[9:8]
Leading bits to preceding
address
Reg
7
6
5
4
3
2
1
0
25
PRECHARGE_TIME
7
0
26
C_FAKE
PRECHARGE_TIME
3
0
9
8
Name
Description
PRECHARGE_TIME[9:
0] Leading bits at
next address.
Sets CDC precharge time tprecharge.
tprecharge =( PRECHARGE_TIME + 1) * Tcycleclock
0 := no precharge
C_FAKE[3:0]
Number of fake or warm-up measurements for the CDC,
performed just before the real ones; the fake values do not
count
Reg
7
6
5
4
3
2
1
0
27
FULLCHARGE_TIME
7
0
28
EE_SINGLE_
WR_EN
EE_WR_EN
EE_DISABLE
EE_IFC_
PRIO
EE_WAKE
UP_MODE
EE_ON
FULLCHARGE_TIME
9
8
Name
Description
Settings
FULLCHARGE_TIME [9:0]
Sets the fullcharge time
tfullcharge, the time interval to
charge up fully to maximum
voltage. tfullcharge =
(FULLCHARGE_TIME + 1) *
Tcycleclock
0 := no fullcharge
EE_SINGLE_WR_EN
EEPROM Single write
protection:
Does not affect EEPROM
read access!
0 := no single write action
is allowed
1 := if EE_WR_EN == 1 a
single write is allowed
EE_WR_EN
EEPROM Write protection
bit.
Does not affect EEPROM
read access!
0 := no write/erase to
EEPROM is possible
1 := write/erase access to
EEPROM is allowed
EE_DISABLE
EEPROM disable
0 := EEPROM enabled
1 := EEPROM completely
disabled, no read access
possible
EE_IFC_PRIO
acam internal bits
default := 0
EE_WAKEUP_MODE
select read and write
setup time for EEPROM
0 := 1.5 *tOCF
1 := 10µs
EE_ON
EE_ON wakes up the
0 := wakes up the EEPROM
Member of the ams Group
EEF‘FlOM permanently. If only during access W Parameter Description Settings R_STAFlTCINPlN[’| :0] Use not recommended 0 R_TRlG_SEL_ALT[2:D] Same. but for the U := off R_TRlG_SEL[2:U] Trigger source selection for Parameter Description Settings R_TRlG_PFlEDIV[2’l :0] Predivider, permits to make U=’l := every signal triggers R_AVFlG[’| :D] Sample size for the mean Member of the am: Group U:= not averaged www scamde
®PCapØ2A
5-12 acam messelectronic gmbh - Friedrich-List-Str.4 - 76297 Stutensee - Germany - www.acam.de
EEPROM permanently. If
EE_ON=0, every access to
the EEPROM wakes up the
EEPROM and sends it to
sleep immediately
afterwards. That consumes
time. With EE_ON=1 faster
access is possible for
frequent EEPROM
operations.
With EE_ON=1 the current
consumption rises by appr.
20µA
only during access
1 := EEPROM is awake
permanently
Reg
7
6
5
4
3
2
1
0
29
R_STARTONPIN
R_TRIG_SEL_ALT
R_TRIG_SEL
1
0
2
0
2
0
Parameter
Description
Settings
R_STARTONPIN[1:0]
Use not recommended
0
R_TRIG_SEL_ALT[2:0]
Same, but for the
alternative register bank
0 := off
1 := OLF_CLK
3 := Pin triggered
5 := CDC asynchronous
(recommended)
6 := CDC synchronous
end-of-CDC-conversion-run
R_TRIG_SEL[2:0]
Trigger source selection for
the RDC
Reg
7
6
5
4
3
2
1
0
30
7
R_TRIG_PREDIV
0
31
15
8
32
R_AVRG
1
0
21
16
Parameter
Description
Settings
R_TRIG_PREDIV[21:0]
Predivider, permits to make
less temperature
measurements than
capacitance
measurements. This is a
factor between
measurement rates of CDC
over RDC. It is used also as
OLF clock divider if OLF is
used as trigger source.
0=1:= every signal triggers
2:= every 2nd signal
triggers
3:= every 3rd signal triggers
etc.
221 := maximum factor
(~2M)
R_AVRG[1:0]
Sample size for the mean
value calculation (averaging)
in the RDC part
0:= not averaged
1:= 4-fold averaged
2:= 8-fold averaged
3:= 16-fold averaged
Member of the ams Group
mess electronic W Parameter Description Settings R_SENSE_| NVERT D ' ecommended setting R_FAKE Number of "fake" or "warmr D:= 2 fake cycles per R_GHA_SEL acam internal bits mandatory :=D W Parameter Description Settings R_FlEF_SEL Choice of reference for the D:= external at port F‘TD R_3EXT_SEL Permits to measure 3 D:= fewer than 3 external R_PT’| _EN Port activation for the RDC D:= disabled R_PTD_EN Port activation for the RDC D:= disabled R_PT2FlEF_EN Port activation for the RDC activates port F‘TQFlEF R_PDFiT_EN_|MES Port activation for internal D:= disabled R_PDFlT_EN_|FlEF Port activation for internal D:= disabled W Parameter l Description l Settings C_REF_SEL[4:D] ‘ Setting the onechip Member of the am: Group ‘0: minimum www scam de
PCapØ2A
acam messelectronic gmbh - Friedrich-List-Str.4 - 76297 Stutensee - Germany - www.acam.de 5-13
Reg
7
6
5
4
3
2
1
0
33
R_SENSE_
INVERT
R_FAKE
R_QHA_SEL
5
0
Parameter
Description
Settings
R_SENSE_INVERT
0 := recommended setting
R_FAKE
Number of fake or warm-
up measurements for the
RDC, performed just before
the real ones; the fake
values do not count
0:= 2 fake cycles per
average value
1:= 8 fake cycle per
average value
R_QHA_SEL
acam internal bits
mandatory :=0
Reg
7
6
5
4
3
2
1
0
34
R_REF_SEL
R_3EXT_SEL
R_PT1_EN
R_PT0_EN
R_PT2REF_
EN
R_PORT_
EN_IMES
R_PORT_
EN_IREF
Parameter
Description
Settings
R_REF_SEL
Choice of reference for the
RDC part
0:= external at port PT0
1:= internal polysilicon strip
R_3EXT_SEL
Permits to measure 3
external sensors, if and
only if the internal refe-
rence is used
0:= fewer than 3 external
sensors, external reference
possible
1:= three external sensors;
the internal reference is to
be used
R_PT1_EN
Port activation for the RDC
part
0:= disabled
1:= activates port PT1
R_PT0_EN
Port activation for the RDC
part
0:= disabled
1:= activates port PT0
R_PT2REF_EN
Port activation for the RDC
part
activates port PT2REF
R_PORT_EN_IMES
Port activation for internal
aluminum temperature
sensor
0:= disabled
1:= enabled
R_PORT_EN_IREF
Port activation for internal
reference resistor
0:= disabled
1:= enabled
Reg
7
6
5
4
3
2
1
0
35
C_REF_SEL
R_CY
R_OLF_DIV
4
0
1
0
Parameter
Description
Settings
C_REF_SEL[4:0]
Setting the on-chip
reference capacitor for the
0:= minimum
1:= approx.1 pF
Member of the ams Group
CDC 31:: maximum [approx. 31 R_CY Cyclertime for the RDC part U:= 140 us R_ULF_DiV[’i :0] Clock diVIder for the RDC D:= /’i [for DLF = 10kHz] I—W Parameter Description Settings RTC_CLK_SEL Clock source selection for U := OLF clock RTC_EN Activate the realitime clock LED_CLK_SEL Clock source selection for U := OLF clock TDC_NO|SE_CY_DIS acam internal bits mandatory := fl Parameter Description Settings TDC_MUF‘U_NC| acam internal bits mandatory := D TDC_F|N_ADJ acam internal hits mandatory .— D fl Parameter ‘ Description Settin s i g TDC_GHA_SEL \ acam internal bits Member of the am: Group \ mandatory := 13 www scamde
®PCapØ2A
5-14 acam messelectronic gmbh - Friedrich-List-Str.4 - 76297 Stutensee - Germany - www.acam.de
CDC
Note: step width varies
from 0.3pF to 1.5pF
31:= maximum (approx. 31
pF)
R_CY
Cycle-time for the RDC part
0:= 140 µs
1:= 280 µs
R_OLF_DIV[1:0]
Clock divider for the RDC
part. Depends on the
OLF_CTUNE (and
OLF_FTUNE). Target
frequency is about 10kHz
for the RDC part.
0:= /1 (for OLF = 10kHz)
1:= /4 (for OLF = 50kHz)
2:= /8 (for OLF = 100kHz)
3:= /16 (for OLF =
200kHz)
Reg
7
6
5
4
3
2
1
0
36
RTC_CLK_
SEL
RTC_EN
LBD_CLK_
SEL
TDC_NOISE
_CY_DIS
Parameter
Description
Settings
RTC_CLK_SEL
Clock source selection for
the real-time clock (RTC),
External 32-kHz quartz re-
quired. The internal OLF is
not precise enough.
0 := OLF clock
1 := ext. HF
RTC_EN
Activate the real-time clock
(RTC)
LBD_CLK_SEL
Clock source selection for
the low-battery detection
0 := OLF clock
1 .= OLF clock / 16
TDC_NOISE_CY_DIS
acam internal bits
mandatory := 0
Reg
7
6
5
4
3
2
1
0
37
TDC_MUPU_NO
TDC_FIN_ADJ
5
0
1
0
Parameter
Description
Settings
TDC_MUPU_NO
acam internal bits
mandatory := 0
TDC_FIN_ADJ
acam internal bits
mandatory := 0
Reg
7
6
5
4
3
2
1
0
38
TDC_QHA_SEL
5
0
Parameter
Description
Settings
TDC_QHA_SEL
acam internal bits
mandatory := 13
Member of the ams Group
mess electronic W Parameter Description Settings TEBU_SEL acam internal bits mandatory := D EE_VEE2_ENA acam internal bits mandatory EE_VEE’| _ENA acam internal bits mandatory EE_EETESTFl_ENA acam internal bits mandatory TDC_CALW|DTH acam internal bits mandatory .— D ifi Name Description Settings DSP_MDFLD_EN[’| :0] Enable the monoeflop D=off DSP_CLK_MC|DE Select the clock source for D = ring oscillator DSP_SF‘EED DSF‘ speed 0 = fastest PG’le‘GB SWItcn PG’l/F‘GE Wiring 0 = pulse output at P63 PGDXF‘GE SWItcn PGU/F‘GQ Wiring 0 = pulse output at P62 E Name l Description l Settings WD_TlME[7 :D] Watcnedog timer. normally Member of the am: Group = WD_TIME * SD www scam de
PCapØ2A
acam messelectronic gmbh - Friedrich-List-Str.4 - 76297 Stutensee - Germany - www.acam.de 5-15
Reg
7
6
5
4
3
2
1
0
39
TEBU_SEL
EE_VEE2_
ENA
EE_VEE1_
ENA
EE_EETEST_
ENA
TDC_CALWIDTH
1
0
1
0
Parameter
Description
Settings
TEBU_SEL
acam internal bits
mandatory := 0
EE_VEE2_ENA
acam internal bits
mandatory := 0
EE_VEE1_ENA
acam internal bits
mandatory := 0
EE_EETESTR_ENA
acam internal bits
mandatory := 0
TDC_CALWIDTH
acam internal bits
mandatory := 0
Reg
7
6
5
4
3
2
1
0
40
DSP_MOFLO_EN
DSP_CLK_MODE
DSP_SPEED
PG1xPG3
PG0xPG2
1
0
1
0
1
0
Name
Description
Settings
DSP_MOFLO_EN[1:0]
Enable the mono-flop
(antibouncing filter) in the
GPIO pulse line.
0 = off
3 = on
DSP_CLK_MODE
Select the clock source for
the DSP
0 = ring oscillator
1 = LF clock
3 = HF clock
DSP_SPEED
DSP speed
0 = fastest
3 = slowest
PG1xPG3
Switch PG1/PG3 wiring
to/from DSP
0 = pulse output at PG3
1 = pulse output at PG1
PG0xPG2
Switch PG0/PG2 wiring
to/from DSP
0 = pulse output at PG2
1 = pulse output at PG0
Reg
7
6
5
4
3
2
1
0
41
WD_TIME
7
0
Name
Description
Settings
WD_TIME[7:0]
Watch-dog timer, normally
in multiples of 50
milliseconds, if OCF is tuned
to 5 kHz as it should.
Watchdog is started
together with DSP and
designed to be reset by a
DSP command before the
twatchdog = WD_TIME * 50
ms
Member of the ams Group
watchdog time is reached. * Name Description Settings DSP_STAFlTONPlN F‘in mask for starting the Eitwise PGD to P88 DSP_FF_|N F‘in mask for fliprflop Eitwise DSP_| N_U to W Name INTEPGE Description Define P62 as an additional Settings 0 := INTN port on|y DSP_SF‘RAM_SEL Selects between SFlAM and 0:: DTP memory DSP_STAFlT Trigger DSF‘ directly by ’l := Trigger DSP DSP_STAFlT_EN[4:U] Mask for activating various Member of the ams Group #0 EndrofrCDCrconversionrrun #’| timer #2 EndrofrFlDCrconversionrrun #E lNT_TRlG_EN (rising edge #4 Error in frontrend wwwacamde
®PCapØ2A
5-16 acam messelectronic gmbh - Friedrich-List-Str.4 - 76297 Stutensee - Germany - www.acam.de
watchdog time is reached.
Otherwise a power-up reset
is initiated.
Reg
7
6
5
4
3
2
1
0
42
DSP_STARTONPIN
DSP_FF_IN
3
0
3
0
Name
Description
Settings
DSP_STARTONPIN
Pin mask for starting the
DSP - This mask permits
assigning one or more GPIO
pins to start the DSP
Bitwise PG0 to PG3
DSP_FF_IN
Pin mask for flip-flop
activation
Bitwise DSP_IN_0 to
DSP_IN_3
Reg
7
6
5
4
3
2
1
0
43
INT2PG2
DSP_
SPRAM_SEL
DSP_START
DSP_START_EN
4
0
Name
Description
Settings
INT2PG2
Define PG2 as an additional
interrupt port (useful for
small packages with no
dedicated INTN pin)
0 := INTN port only
1 := INTN and PG2 in
parallel
DSP_SPRAM_SEL
Selects between SRAM and
OTP memory as a program
memory, where the DSP is
to be controlled from
0 := OTP memory
1 := SRAM
DSP_START
Trigger DSP directly by
Interface. Remark,
DSP_START must be set to
0 by user.
1 := Trigger DSP
DSP_START_EN[4:0]
Mask for activating various
trigger sources for starting
the DSP
Bit
Trigger condition
#0
End-of-CDC-conversion-run
#1
timer
#2
End-of-RDC-conversion-run
#3
INT_TRIG_EN (rising edge
of INT)
#4
Error in front-end
Member of the ams Group
mess electronic * Name l Description l Settings F‘ll_CLK_SEL[E:D] Base frequency for the 4 := UHF * 2 ’ID := DLF / 2 W Name Description Settings P|_EN[3:D] Enables pulseecode b'xxDl := PWM at path 0 P|’|_RES[’| :D] Flesolution of the pulseecode D := 10 bit * Name Description Settings PG_D|R_|N[E:D] Toggles generalrpur‘pose D := output #0 and #4: P80 PG_F‘ULLUF‘[E:D] Activates protective pull, 0 := idle W www scam de Member of the am: Group
PCapØ2A
acam messelectronic gmbh - Friedrich-List-Str.4 - 76297 Stutensee - Germany - www.acam.de 5-17
Reg
7
6
5
4
3
2
1
0
44
PI1_CLK_SEL
PI0_CLK_SEL
3
0
3
0
Name
Description
Settings
PI1_CLK_SEL[3:0]
PI0_CLK_SEL[3:0]
Base frequency for the
pulse-code interfaces,
based on OLF or OHF,
separately for the pulse
paths 0 and 1
4 := OHF * 2
5 := OHF
6 := OHF / 2
7 := OHF / 4
8 := OLF * 2
9 := OLF
10 := OLF / 2
11 := OLF / 4
12 := RO
13 := RO / 2
14 := RO / 4
Reg
7
6
5
4
3
2
1
0
45
PI_EN
PI1_RES
PI0_RES
3
0
1
0
1
0
Name
Description
Settings
PI_EN[3:0]
Enables pulse-code
generation, either pulse-
density or pulse-width,
separately for the pulse
paths 0 and 1
b'xx01 := PWM at path 0
b'xx10 := PDM at path 0
b'01xx := PWM at path 1
b'10xx := PDM at path 1
PI1_RES[1:0]
PI0_RES[1:0]
Resolution of the pulse-code
interfaces
0 := 10 bit
1 := 12 bit
2 := 14 bit
3 := 16 bit
Reg
7
6
5
4
3
2
1
0
46
PG_DIR_IN
PG_PU
3
0
3
0
Name
Description
Settings
PG_DIR_IN[3:0]
Toggles general-purpose
port direction between
input and output
0 := output
1 := input
#0 and #4: PG0
#1 and #5: PG1
#2 and #6: PG2
#3 and #7: PG3
PG_PULLUP[3:0]
Activates protective pull-
up resistors at general-
purpose ports
0 := idle
1 := active
Reg
7
6
5
4
3
2
1
0
47
BG_PERM
BG_TRIM0
4
0
Member of the ams Group
Name Description Settings EG_PERM activate Bandgap 1 := Bandgap permanent EG_TR|MD[4:D] Trim the internal bandgap / ‘hDD := 1.58V W Name Description Settings TDC_NC||SE_DIS acam internal bits mandatory TDC_MUF‘U_SPEED TDC specific speed select mandatory TDC_MR2 TDC specific measure range D := MFi’I EG_TR|M1[E:D] Trim the internal bandgap / recommended := ‘hD7 Name Description Settings TDC_ALUPERMOPEN acam internal bits mandatory ' D TDC_ALUSLDW acam internal bits mandatory D TDC_CHAN_EN acam internal bits mandatory 3 TDC_CALAVG acam internal bits mandatory D TDC_CAL_DELAY acam internal bits mandatory := D www scamde Member of the ams Group
®PCapØ2A
5-18 acam messelectronic gmbh - Friedrich-List-Str.4 - 76297 Stutensee - Germany - www.acam.de
Name
Description
Settings
BG_PERM
activate Bandgap
permanently . With
BG_PERM = 1 the current
consumption rises by appr.
20µA
1 := Bandgap permanent
enabled
0 := Bandgap pulsed
BG_TRIM0[4:0]
Trim the internal bandgap /
core-powersupply for normal
operating
h00 := 1.68V
h07 := 1.8V
h1F := 2.2V
Reg
7
6
5
4
3
2
1
0
48
TDC_NOISE_
DIS
TDC_MUPU_SPEED
TDC_MR2
BG_TRIM1
1
0
3
0
Name
Description
Settings
TDC_NOISE_DIS
acam internal bits
mandatory := 0
TDC_MUPU_SPEED
TDC specific speed select
mandatory := 1
TDC_MR2
TDC specific measure range
select
0 := MR1
1 := MR2
BG_TRIM1[3:0]
Trim the internal bandgap /
core-powersupply for Low-
Bat-Detection (LBD) and
EEPROM writing
recommended := h07
Reg
7
6
5
4
3
2
1
0
49
TDC_ALUPER
MOPEN
TDC_ALU
SLOW
TDC_CHAN_EN
TDC_CAL
AVG
TDC_CAL_DELAY
1
0
1
0
Name
Description
Settings
TDC_ALUPERMOPEN
acam internal bits
mandatory := 0
TDC_ALUSLOW
acam internal bits
mandatory := 0
TDC_CHAN_EN
acam internal bits
mandatory := 3
TDC_CALAVG
acam internal bits
mandatory := 0
TDC_CAL_DELAY
acam internal bits
mandatory := 0
Member of the ams Group
SEEM mess.e1ectron1c Parameter \Description \Settings RLINEIIT on/off switch for frunt-end D := off = the chip system
PCapØ2A
acam messelectronic gmbh - Friedrich-List-Str.4 - 76297 Stutensee - Germany - www.acam.de 5-19
Reg
7
6
5
4
3
2
1
0
50
7
Parameter0
0
51
15
8
52
23
16
53
7
Parameter1
0
54
15
8
55
23
16
56
7
Parameter2
0
57
15
8
58
(mandatory=0)
22
16
59
7
Parameter3
0
60
15
8
61
23
16
62
7
Parameter4
0
63
15
8
64
23
16
65
7
Parameter5
0
66
15
8
67
23
16
68
7
Parameter6
0
69
15
8
70
23
16
71
7
Parameter7 (e.g.
Gain_Corr)
0
72
15
8
73
23
16
74
DSP_TRIG
_CDC
CDC_TRIG
_BG
DSP_TRIG
_CDC
CDC_TRIG
_BG
7
Parameter8
0
75
15
8
76
23
16
Reg
7
6
5
4
3
2
1
0
77
RUNBIT
Parameter
Description
Settings
RUNBIT
on/off switch for front-end
and DSP: It should
be off during programming
and any registry
modification, thus protecting
the chip from any
undesirable/unspecified
states
0 := off = the chip system
is idle and protected
1 := on = the protection is
removed, and the system
may run
The RunBit is most useful for debugging and test. A basic thing like testing the interface
should include toggling the RunBit. It is mirrored to Read_Address24, bit #0.
Firmware specific
Member of the ams Group
m 3 := [’ICIkHz] ’I 5 kHz 3 := [’ICIkHz] 7 10 kHz 2 '- [SOkHz] O 28 kHz 2 '- [SOkHz] S 48 kHz 1 '= [’ICIOkHz] 4 100 kHz 0 := [EOOkHz] 5 200 kHz CILF_CLK Description: Internal low frequency oscillator. It is always running and can‘t Sources Internal low power oscillator or external 82 kHz quartz Application May be clock source for pulse interface. CDC. FlDC, Real time Parameters: OLF_CLK_SEL, DLF_CTUNE, CILF_FTLJNE, U><_clk32khz_en cihf_clk="" description:="" high="" frequency="" clock="" sources="" external="" or="" internal="" hf="" oscillators="" [1..20="" mhz.="" typical="" 4="" mhz]="" application="" measure="" range="" 2.="" pulse="" interfaces="" parameters:="" o=""><_d|s. dx_run,="" dhf_clk_sel.="" dx_amp_tfl|m.="" cl=""><_d|v4, oceclk="" description:="" constant="" clock,="" needs="" to="" be="" set="" to="" 5="" khz="" sources="" olf_clk="" application="" eepfldm,="" watchdog="" parameters:="" ocf_t|me="" www="" scamde="" member="" of="" the="" ams="" group="">
®PCapØ2A
5-20 acam messelectronic gmbh - Friedrich-List-Str.4 - 76297 Stutensee - Germany - www.acam.de
5.3 Oscillator Configuration
OLF_CLK Frequency variation over samples ± 20%, OLF_CLK temperature drift ± 5%,
OLF_CLK vs. VDD ± 2%
OLF_CLK-Trimming:
OLF_CTUNE
OLF_FTUNE
OLF Frequency
3 := (10kHz)
1
5 kHz
3 := (10kHz)
7
10 kHz
2 := (50kHz)
0
28 kHz
2 := (50kHz)
3
48 kHz
1 := (100kHz)
4
100 kHz
0 := (200kHz)
5
200 kHz
The several clock sources are available to control the various units of the chip:
OLF_CLK
Description:
Internal low frequency oscillator. It is always running and cant
be turned off. It can be configured for frequency range 5 to
200 kHz.
Sources:
Internal low power oscillator or external 32 kHz quartz
Application:
May be clock source for pulse interface, CDC, RDC, Real time
counter (RTC), DSP, low-battery detection (LBD).
Parameters:
OLF_CLK_SEL, OLF_CTUNE, OLF_FTUNE, OX_CLK32KHZ_EN
OHF_CLK
Description:
High frequency clock
Sources:
External or internal HF oscillators (1..20 MHz, typical 4 MHz)
Application:
Measure range 2, pulse interfaces
Parameters:
OX_DIS, OX_RUN, OHF_CLK_SEL, OX_AMP_TRIM, OX_DIV4,
OX_AUTOSTOP_DIS, OX_STOP
OCF_CLK
Description:
Constant clock, needs to be set to 5 kHz
Sources:
OLF_CLK
Application:
EEPROM, Watchdog
Parameters:
OCF_TIME
Member of the ams Group
SEEM ness.electron1c FiTC_CLK Description: Clock for real time counter [RTC] Sources: UFL_CLK [possible but not recommended) or external HF Application: RTC Parameters: RTC_CLK_SEL. FiTC_EN
PCapØ2A
acam messelectronic gmbh - Friedrich-List-Str.4 - 76297 Stutensee - Germany - www.acam.de 5-21
RTC_CLK
Description:
Clock for real time counter (RTC)
Sources:
OFL_CLK (possible but not recommended) or external HF
oscillator (32 kHz)
Application:
RTC
Parameters:
RTC_CLK_SEL, RTC_EN
5.3.1 RTC (Real Time Counter)
There is a real time counter which can be used to have long-term timing information. The
use demands an external 32.768 kHz oscillator. The RTC is a Gray-counter with 217 pre-
divider, which gives a base period of 4 seconds and a measurement range of 3 days and
49 minutes. The count is given in Gray-code. It can be interpreted only by the DSP.
The RTC is turned on by setting configuration bit RTC_EN = 1.
The base clock is selected by parameter RTC_CLK_SEL.
5.4 Low Battery Detection (LBD)
PCapØ2 has the capability to monitor the voltage. The voltage measurement is started by
setting DSP output bit TRIG_LBD (Bit 14). This bit is set back to 0 automatically. The end
of the voltage measurement is indicated by DSP input bit LBD_BUSY (Bit 8) which indicates
whether the process is still running. At the end, the voltage information can be read back
from RAM address 92: LBD_DATA. The result is a 6 bit integer. The calculation of the
voltage depends on the trim of the bandgap. The relevant configuration parameter is
BG_TRIM1 in configuration register 48. The recommended setting is BG_TRIM 1 = 7.
With this setting the voltage is calculated according to:
Voltage = 2.026 V + LBD_DATA * 24.4 mV
With LBD_CLK_SEL the base clock for the low battery detection measurement is selected
between OLF and OLF/16, But this has no effect on the result. Voltage conversion needs
17 respectively 17x16 OLF clk cycles.
Member of the ams Group
www scam d2 Member of the am: Group
®PCapØ2A
5-22 acam messelectronic gmbh - Friedrich-List-Str.4 - 76297 Stutensee - Germany - www.acam.de
5.5 Read Registers
PCapØ2 has 44 byte of RAM for read access, combined as triples of 3 byte.
Table 5-2 Read registers
Reg
7
6
5
4
3
2
1
0
0
7
Res0
0
1
15
8
2
23
16
3
7
Res1
0
4
15
8
5
23
16
6
7
Res2
0
7
15
8
8
23
16
9
7
Res3
0
10
15
8
11
23
16
12
7
Res4
0
13
15
8
14
23
16
15
7
Res5
0
16
15
8
17
23
16
18
7
Res6
0
19
15
8
20
23
16
21
7
Res7
0
22
15
8
23
23
16
24
7
Status
0
25
15
8
26
23
16
27
31
Res0
24
28
39
32
29
47
40
30
31
Res1
24
31
39
32
32
42
40
33
7
Res8
0
34
15
8
35
23
16
36
7
Res9
0
37
15
8
38
23
16
39
7
Res10
0
40
15
8
41
23
16
42
7
Res11
0
43
15
8
44
23
16
Member of the ams Group
SEEM mess.e1ectron1c For debugging only. The CDC discharge time. HesE HesE FiesE ur‘dinary C differential C Fies1 r‘atiu C’I / CD ratio [)1 / CD FiesE CE / E0 E3 / C2 Fies3 C3 / E0 E5 / C4 Fies4 C4 / E0 E7 / CB FiesS C25 / ED zero FiesE CB / ED zero Fies7 C7 / ED zero HesH FiesB not assigned FiesEi not assigned Fies’ID and Res1’l :
PCapØ2A
acam messelectronic gmbh - Friedrich-List-Str.4 - 76297 Stutensee - Germany - www.acam.de 5-23
The read registers are made of 11 result registers. Res0 and Res1 may have 48 bit, even,
whereas the higher 24 bit are at addresses 27 to 32. Addresses 24 to 26 contain the
status register.
5.5.1 Result Registers
The content of the results registers depends on the firmware. The following describes the
result registers as they are used by the standard firmware.
Table 5-3 Result registers with standard firmware
Name
Length
Format
Meaning
Res0
24
bits
Integer
For debugging only. The CDC discharge time,
see note below.
Res1
Unsigned fixed-
point number:
3 bits integer
21 bits fractional
min = h0 =
= 0.0000000
max = hFFFFFF =
= 7.9999995
ordinary C
differential C
Res1
ratio C1 / C0
ratio C1 / C0
Res2
C2 / C0
C3 / C2
Res3
C3 / C0
C5 / C4
Res4
C4 / C0
C7 / C6
Res5
C5 / C0
zero
Res6
C6 / C0
zero
Res7
C7 / C0
zero
Res2
Res3
Res4
Res5
Res6
Res7
Res8
Res8 not assigned
Res9
Res9 not assigned
Res10
Res10 and Res11:
ratio R_temperature / R_reference, depending
on the particular setting of the RDC front-end,
see there
Res11
The user is free to assign any data to the results registers in his own firmware.
Note: The integer value Res0, multiplied by the TDC bin size (21 picosecond best case,
typically 2223 ps) yields the discharge time at port PC0, useful for debugging and
design.
Firmware specific
Member of the ams Group
CI RunBit The RunEit from write register 77 is mirrored here ’I CDC active Warning: traffic on interface may enhance noise in 2 RDC ready 3 EEPRCIM busy 4 AutoBoot busy 5 PDR_Fiag_SRAM A memory mismatch error from an SRAMrtorDTP comparison 6 PDF!_Fiag_Config same, but inside Configuration registry rather than SRAMrtor 7 PDR_Fiag_Wdog A watchdog overflow has been detected and has provoked a CI Cornb_Err AH error bits. from here onward, disyunctiveiy combined [using ’I Err_vai An overflow error occurred when the CDC unit was busy 2 Mup_Err A particuiar kind of TDC error occurred when the CDC unit was 3 RDC_Err Some kind of error occurred when the HDC unit was busy 4 , 7 n.c. test bits [no error bits] In the CDC unit. one or severai ports are affected by D C_PortErrorO PCCI 1 C_PortError’i PC’I 7 C_PortError7 DC7 www scamde Member of the ams Group
®PCapØ2A
5-24 acam messelectronic gmbh - Friedrich-List-Str.4 - 76297 Stutensee - Germany - www.acam.de
5.5.3 Status Register Details
Table 5-4 Address 24, STATUS_0
Bit
#
Name
Explanation
0
RunBit
The RunBit from write register 77 is mirrored here
1
CDC active
Warning: traffic on interface may enhance noise in
measurement
2
RDC ready
3
EEPROM busy
4
AutoBoot busy
5
POR_Flag_SRAM
A memory mismatch error from an SRAM-to-OTP comparison
has been detected and has provoked a power-up reset
6
POR_Flag_Config
same, but inside Configuration registry rather than SRAM-to-
OTP
7
POR_Flag_Wdog
A watchdog overflow has been detected and has provoked a
power-up reset. Perhaps the firmware has hung up in an
unwanted endless loop or, more likely, a CDC/RDC trigger
signal has been lost.
#5, #6 and #7 may signal erratic states provoked by stochastic disturbances.
Table 5-5 Address 25, STATUS_1
Bit #
Name
Explanation
0
Comb_Err
All error bits, from here onward, disjunctively combined (using
bit-or)
1
Err_Ovfl
An overflow error occurred when the CDC unit was busy
2
Mup_Err
A particular kind of TDC error occurred when the CDC unit was
busy
3
RDC_Err
Some kind of error occurred when the RDC unit was busy
4 - 7
n.c.
test bits (no error bits)
Table 5-6 Address 26, STATUS_2
Bit
#
Name
Port con-
cerned
Explanation
0
C_PortError0
PC0
In the CDC unit, one or several ports are affected by
some error like a short-circuit to ground. May also be
a charge/ discharge resistivity too big, a capacitance
too big, or an ill-defined
precharge/fullcharge/discharge time.
1
C_PortError1
PC1
7
C_PortError7
PC7
Member of the ams Group
SEEM ness.electron1c
PCapØ2A
acam messelectronic gmbh - Friedrich-List-Str.4 - 76297 Stutensee - Germany - www.acam.de 6-1
6 DSP & Memory
A digital signal processor (DSP) in Harvard architecture has been integrated. It is
programmable and responsible for the content of all the result registers with the
exception of the hard-wired status register. The software, called firmware, is either
available ready-made from acam or can be written by the user himself. In this datasheet
we describe only the standard firmware as provided by acam. This firmware writes the
compensated capacitance ratios and the resistance ratios to the result registers, signals
an interrupt (INTN) and does a first-order linearization and scaling for the pulse-code
outputs. However, it does no higher-order linearization, filtering or any other data
processing, even though this is largely possible and library elements are available for user -
programming.
Figure 6-1 DSP & Memory
RAM
PARA8
...
PARA0
CDC
2last RAM address
RAM adr. stack
TIMER0
PULSE1
PULSE0
MW16
MW00
RES11
...
RES0
Flags / GPIOs
Normal registers 80 x
DSP Read DSP Write
DSP Read/Write
IIC/SPI
Interface
92
...
81
IIC/SPI
Interface
80
79
0
ADR
Accu R
48 bit
RAM Address
Pointer
RAD 6 bit
RAD Stack
4 x
Accu A
48 bit
Accu B
48 bit
ALU
C O S Z
I/O bits, 64 x 1 Input, 16 x 1 Output
Instruction Decoder
Program Memory
(SRAM or OTP)
4k x 8 bit
Program
Counter
12 bit
PC- Stack
8 x
jcd
bitS/bitC
RDC
GPIOConfiguration registers
Status register
DSP
EE_DATA
DPTR3 / EE_ADD
DPTR2
DPTR1
DPTR0
97
96
95
94
93
TM2
TM1
TM0
TREF
LBD_DATA
101
100
99
98
118
...
102
Reserved
Reserved
PORTINFO
RTC_DATA
ZERO
127
122
121
120
119
EEPROM
128 x 8 bit
Member of the ams Group
FFF 4015 FAF 401D FAA 2047 7FF 1967 7AF 1962 7AA
®PCapØ2A
6-2 acam messelectronic gmbh - Friedrich-List-Str.4 - 76297 Stutensee - Germany - www.acam.de
This Harvard DSP for 48 bit wide parallel data processing is coupled to a 128 x 48 bit
RAM, 80 x 48 bit thereof free accessible. The DSP is internally clocked at approximately
55 MHz. The clock generator is stopped through a firmware command, so as to save
power. The DSP starts again upon a GPIO signal or an end of measurement run condition.
The DSP is acam proprietary, designed for low-power tasks as well as very high data rates.
It is programmable in Assembler (there is no high-level language available). A user-friendly
assembler software providing a graphical interface, help text pop-ups and sample code
sustain programming efforts. Subroutines are possible down to the seventh order .
6.1 Memory Map
Table 6-1 Memory Map
Address
SRAM (volatile)
OTP (permanent: non-volatile, non-erasable)
direct/single
double
quad
dec.
hex.
Contents
Length
(byte)
Contents
Length
(byte)
Contents
Length
(byte)
Contents
Length
(byte)
4095
4016
FFF
FB0
Program
code
4096
Config. &
Param.
80
Config.&
Param.
80
Config.&
Param.
80
4015
4011
FAF
FAB
not for
use
5
not for
use
5
not for
use
5
4010
2048
FAA
800h
Program
code
4011
Program
code
4011
Program
code
1963
2047
1968
7FF
7B0
Config.&
Param.
80
1967
1963
7AF
7AB
not for
use
5
1962
0
7AA
000
Program
code
1963
Member of the ams Group
SEEM "€53.21ectron1c
PCapØ2A
acam messelectronic gmbh - Friedrich-List-Str.4 - 76297 Stutensee - Germany - www.acam.de 6-3
6.2 Memory Management
Figure 6-2 Memory management
Configuration &
Parameter Registers
RunBit
Cfg. Param.
2k
2k 2k x 8
2k x 8
OTP
4k x 8
SRAM
Autoboot
DSP
RAM
80 x 48
CDC
RDC
ECC
Mechanism
0 49 50 76 77
Result and
Status
Registers
0
44
Sensors
I²C / SPI
Ð
Ï MEMLOCK
EEPROM
128 x 8
6.2.1 SRAM Data Integrity
The DSP can be operated either from SRAM (for maximum speed) or from OTP (for low
power). When operated from SRAM, an SRAM-to-OTP data integrity monitor can be
activated through parameter MEMCOMP in register 0, but must (!) be deactivated for
operation directly from OTP.
When the MEMCOMP option is activated, the DSP compares the content of the SRAM
with the OTP content at regular intervals if the following conditions are fulfilled:
Configuration is set for copying OTP content to SRAM and the program runs from
the SRAM (DSP_SRAM_SEL=1 in Reg. 43) , AND
DSP runs on the ring oscillator clock.
The DSP executes the comparison during those times when it is not running other tasks or
firmware. When a mismatch occurs during comparison, a power-on reset is generated,
and the data is copied freshly from the OTP to the SRAM again, and the execution starts
again. Thus data integrity is ensured using this mechanism.
6.2.2 Memory integrity using ECC
The memory integrity mechanism in PCap surveys the OTP contents internally and corrects
faulty bits as far as possible. Data validity in the OTP memory is ensured using a built-in
ECC mechanism. There are three possible ECC modes configurable in Register 1
Member of the ams Group
www acam m: Member of me ams Group
®PCapØ2A
6-4 acam messelectronic gmbh - Friedrich-List-Str.4 - 76297 Stutensee - Germany - www.acam.de
(ECC_MODE). Depending on the mode selected, the maximum size of the program code is
limited, and the method of redundancy implemented varies.
In general, the ECC mechanism is a bit error detection and automatic correction. The
following are the different mechanisms depending on the ECC_MODE bits.
ECC_MODE = ‘h00 in Configuration register 1:
Direct / single: In this setting, no error detection/correction is performed. Thus
the maximum allowed programmable space of 4kB is available for program code.
ECC_MODE = ‘h0F in Configuration register 1:
Double: When this option is set, the data integrity is achieved by redundancy in the
form of parity generation. For the 4 kB program code (maximum), 4kB of parity is
generated and programmed in the chip. For every single byte of program code read
from the chip, the parity byte is immediately checked and if erroneous, the code
byte is automatically corrected.
Note: When you want to program the OTP on your own (without using acams PCap
Frontpanel software), then the generator matrix to generate the parity bytes can be made
available to you. Please contact support@acam.de in that case.
ECC_MODE = ‘hF0 in Configuration register 1:
Quad: When this option is configured, data integrity is achieved by pure mirroring,
i.e. by storing the same program code 4 times as identical copies in the memory.
This limits the maximum size of the program code to 2 kB. So, when a single byte
of program code is read, actually, the same byte is read from all the fo ur banks and
a logical bitwise AND of the four results is performed and given out as the correct
byte.
Note: Un-programmed bits in the OTP are 1’.
6.2.3 Memory Read Protection
Clearing the MEM_LOCK_DIS bits in Configuration register 2 activates the memory read-
out protection mechanism. Once set, the contents of the OTP and the SRAM (if executing
from it) cannot be read out anymore, thus securing your intellectual property from
unauthorized access. MEMLOCK gets active earliest after it has been written to the OTP
and the chip has got a power-on reset.
Member of the ams Group
EEEI'H ness-e’lectron'lc
PCapØ2A
acam messelectronic gmbh - Friedrich-List-Str.4 - 76297 Stutensee - Germany - www.acam.de 6-5
6.3 Getting started
For principal operation PCapØ2 needs two things:
Configuration
Firmware
When working the first time with the chip the OTP is blank. There is no firmware in the
chip and the chip is not configured. First, the configuration registers have to be set
correctly. Then, as a starting point, the standard firmware (PCapØ2_standard.hex) should
be written to the SRAM. With this firmware the chip works as simple CDC that provides
pure capacitance ratios and resistance ratios.
Once a custom specific firmware is written and approved, this firmware can be written into
the OTP, together with the configuration. Then, after a power-on reset, the firmware and
configuration can be loaded automatically and the chip is ready for measurement, even in
stand-alone operation.
6.3.1 Using the Standard Firmware
1. hC0 4D 00 ; Write configuration, Disable converter: RunBit = 0
2. hC0 00 0F 00 01 94 80 05 01 04 A8 00 30 00 0F 01 00 00 00 D0 07 00 00 00
00 02 08 01 00 02 00 05 05 00 00 00 43 05 00 00 34 00 00 00 00 44 00 00 FF
00 07 30 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01
00 00 00 00 20 01 ; Write config. registers 0 to 76, PCa02_standard.cfg
3. ‘h90 00 00 00 00 7A C0 CF FF F0 D2 43 7A D0 34 62 63 00 65 7A C4 D1 43 7A
D0 33 AB 47 42 5C 48 6A C9 7A C0 C0 C0 C9 D2 43 7A DD 44 6A F2
44 6A F3 44 7A ; Write SRAM, PCapØ2_standard.hex firmware
4. hC0 4D 01 ; Write configuration, Enable converter: RunBit = 1
5. ‘h8A ; Send partial reset
6. ‘h8C ; Start measurement
7. ‘h40 24 00 00 00 ; Read status, addresses 24, 25, 26
8. ‘h40 03 00 00 00 ; Read Res1, addresses 3, 4, 5. Res1 is expected to be
in the range of 2,000,000 or ’h2000XX if the two
capacitors are of same size. Res1 has the format of a
fixed point number with 3 integer digits and 21
fractional digits. So, dividing the 2,000,000 by 221
gives a factor of about 1 for the ratio C1/C0.
Member of the ams Group
www acam m: Member of me ams Group
®PCapØ2A
6-6 acam messelectronic gmbh - Friedrich-List-Str.4 - 76297 Stutensee - Germany - www.acam.de
Member of the ams Group
EEEI'H ness-e’lectron'lc
PCapØ2A
acam messelectronic gmbh - Friedrich-List-Str.4 - 76297 Stutensee - Germany - www.acam.de 7-1
7 Miscellaneous
7.1 Bug Report
7.1.1 Port Pattern
Description:
With parameter C_PORT_PAT = 1 the order of the measured ports will be reversed after
each sequence. This does not work in combination with PCapØ2 mode & conversion timer
& AVRG != 0.
Workaround:
Dont use the critical combination of parameters.
7.2 I²C Bug with POR directly after rd/wr OTP/SRAM
Description:
The bug refers to configurations that combine autoboot == 1 && DSP_SRAM == 1 &&
I2C_EN == 1. If a power-on reset is sent directly after a write to OTP or write to SRAM
had been sent then all data will be manipulated when being copied from OTP to SRAM.
They will be set to data = data or ´h10. This does not happen in SPI communication mode.
The error behavior is not critical in stand-alone applications because in such applications
there is no write access to OTP or SRAM.
Workaround:
Before sending the POR command send a read from OTP command.
7.3 Limitation of Parameter2
Description:
Under certain circumstances, a 1 in bit 23 of Parameter2 causes that no results can be
read out.
Workaround:
Dont use the highest bit of register 58[7], (Parameter2[23]), but set it to 0.
Member of the ams Group
www acam m: Member of me ams Group
®PCapØ2A
7-2 acam messelectronic gmbh - Friedrich-List-Str.4 - 76297 Stutensee - Germany - www.acam.de
7.4 History
22.08.2012 First draft version
11.10.2012 release version v0.2 including bug report
19.01.2013 Version 1.0 for final silicon PCapØ2A
05.02.2013 Section 5, Reg 2, 7, 33, 34 description and settings
14.02.2013 Section 1, 2.2.2 buffer capacitors. 5.4 Low battery detection, 2.6.4
16.07.2013 New section 2.4 Internal RC-Oscillator; 7.3 Limitation of Parameter2
section 4.6 GPIO table expanded
06.12.2013 section 6.3.1 corrected RunBit register address (reg. 77 = h4D)
13.03.2014 Section 3.4.4 RDC Trigger
19.05.2014 Section 2.2.4 Temperature-dependent Gain and Offset error
29.05.2014 New section 2.4 Oscillators,internal and external
Member of the ams Group
EEEI'H ness-e’lectron'lc
PCapØ2A
acam messelectronic gmbh - Friedrich-List-Str.4 - 76297 Stutensee - Germany - www.acam.de 7-3
Member of the ams Group
SEEM mess-electronic acam-massalectmnic gmbh www.acam.da
acam-messelectronic gmbh
Friedrich-List-Straße 4
76297 Stutensee-Blankenloch
Germany
Phone +49 7244 7419 0
Fax +49 7244 7419 29
E-Mail support@acam.de
www.acam.de
Member of the ams Group