NXP Semiconductors
NHS3152
Therapy adherence resistive monitor
NHS3152 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2018. All rights reserved.
Product data sheet Rev. 3.03 — 15 June 2018
34 / 51
8.20 Using NHS3152 to measure resistance
8.20.1 Measurement principle
The two terminals of the device under test (DUT) can be connected to any of the external
analog input pins. The routing of input pins to the ADC/DAC and I2D are done by
configuring the input multiplexer registers of the ADC/DAC and I2D.
Configure the ADC/DAC and I2D as shown in Figure 14.
aaa-018786
NHS3152
DAC
ADC
V
DUT
I
DUT
I2D
Figure 14. Connection of DUT to NHS3152 and settings of the ADC/DAC and I2D
Apply the desired bias voltage to the first terminal (preferably as high as possible), and
sequentially measure the voltage and current on the second terminal. The resistance is
found by dividing the measured voltage drop with the measured current through the DUT.
The effective measurement resolution of the resistance value depends on the selected
input range of the I2D. For high currents (low-resistance values) relative to the range
settings, the resolution is limited by the ADC/DAC. For high resistances (low currents),
the I2D is limiting. Refer to Table 19 for different recommended combinations.
Table 19. Resolution of resistance measurement in different ranges
I2D
range
Recommended
R
min
Recommended
R
max
Resolution at
R
max
(bit)
Resolution at
R
max
Resolution at
R
min
(bit)
Resolution at
R
min
2.5 µA 40 kΩ 7 MΩ 6.2 95 kΩ 8.9 83.7 Ω
25 µA 4 kΩ 1.4 MΩ 5.5 31 kΩ 8.9 8.4 Ω
250 µA 400 Ω 140 kΩ 5.0 4.38 kΩ 8.9 0.83 Ω
8.21 Serial Wire Debug (SWD)
The debug functions are integrated into the ARM Cortex-M0+. Serial Wire Debug (SWD)
functions are supported. The ARM Cortex-M0+ is configured to support up to four
breakpoints and two watchpoints.
• Supports ARM SWD mode
• Direct debug access to all memories, registers, and peripherals
• No target resources are required for the debugging session
• Four breakpoints
Four instruction breakpoints that can also be used to remap instruction addresses for
code patches. Two data comparators that can be used to remap addresses for patches
to literal values.
• Two data watchpoints that can also be used as triggers