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
24 / 51
8.9.2 General description
Two types of data transfers are possible on the I
2
C-bus, depending on the state of the
direction bit (R/W):
• Data transfer from a master transmitter to a slave receiver
The first byte transmitted by the master is the slave address. Next follows a number of
data bytes. The slave returns an acknowledge bit after each received byte.
• Data transfer from a slave transmitter to a master receiver
The master transmits the first byte (the slave address). The slave then returns an
acknowledge bit. The slave then transmits the data bytes to the master. The master
returns an acknowledge bit after all received bytes other than the last byte. At the end
of the last received byte, a not-acknowledge is returned. The master device generates
all of the serial clock pulses and the START and STOP conditions. A transfer is ended
with a STOP condition or with a repeated START condition. As a repeated START
condition is also the beginning of the next serial transfer, the I
2
C-bus is not released.
The I
2
C-bus interface is byte oriented and has four operating modes: Master transmitter
mode, Master receiver mode, Slave transmitter mode, and Slave receiver mode.
The I
2
C-bus interface is completely I
2
C-bus compliant, supporting the ability to power off
the NHS3152 independent of other devices on the same I
2
C-bus.
The I
2
C-bus interface requires a minimum 2 MHz system clock to operate in Normal
mode, and 8 MHz for Fast-mode.
8.9.3 I
2
C-bus pin description
Table 11. I
2
C-bus pin description
Pin Type Description
SDA I/O I
2
C-bus serial data
SCL I/O I
2
C-bus serial clock
The I
2
C-bus pins must be configured through the PIO0_4 and PIO0_5 registers for
Standard-mode or Fast-mode. The I
2
C-bus pins are open-drain outputs and fully
compatible with the I
2
C-bus specification.
8.10 SPI controller
8.10.1 Features
• Compatible with Motorola SPI, 4-wire Texas Instruments Synchronous Serial Interface
(SSI), and National Semiconductor Microwire buses
• Synchronous Serial Communication
• Supports master or slave operation
• Eight-frame FIFOs for both transmit and receive
• 4-bit to 16-bit frame