Digital Gain and Offset Corrections
Test DAC Bit-stream Generator
Digital Sine Wave Output
Time Break Controller, General-purpose I/O
Microcontroller or EEPROM Configuration
Small-footprint, 28-pin SSOP Package
Low Power Consumption
16 mW at 500 SPS OWR
Flexible Power Supplies
I/O Interface and PLL: 3.3 V or 5.0 V
Digital Logic Core: 2.5 V, 3.3 V or 5.0 V
I
Description
The CS5378 is a multi-function digital filter utilizing a lowpower signal processing architecture to achieve efficient
filtering for a delta-sigma-type modulator. By combining
the CS537 8 with a CS33 01A/02A di fferential a mplifier
and a CS5373A modulator + test DAC, a synchronous
high-resolution, self- testing, sin gle-channel m easurement system can be designed quickly and easily.
Digital filter coefficients for the CS5378 FIR and IIR filters
are included on-chip for a simple setup, or they can be
programmed for custom ap plications. Selectable digital
filter decimation ratios produce output wor d rates from
4000 SPS to 1 SPS, resulting in measurement bandwidths ra nging fro m 16 00 Hz down to 400 mHz whe n
using the on-chip coefficient sets.
The CS5378 includes integrated peripherals to simplify
system d esign: a low- jitter PL L for standard clo ck or
Manchester inpu ts, offset and gain co rrections, a test
DAC bit stream generator, a tim e break controller, and
eight general-purpose I/O pins.
Note: Example timing shown for a 256 kHz output rate and no programmable delays.
Test Bit Stream (TBS)
CS5378
ParameterSymbol Min TypMaxUnit
TBS Data Output Timing
TBS Data Bit Rate-256-kbps
TBS Data Rising to MCLK Rising Setup Timet
MCLK Rising to TBS Data Falling Hold Time(Note 5)t
5. TBSDATA can be delayed from 0 to 63 full bit periods. The timing diagram shows no TBSDATA delay.
1
2
60--ns
60--ns
DS639F317
CS5378
ΔΣ
Modulator
Test
DAC
Digital Filter
AMP
Differential
Sensor
M
U
X
μController
or
Configuration
EEPROM
System
Telemetry
CS3301A
CS3302A
CS5378
CS5373A
Figure 9. Single-Channel System Block Diagram
3. SYSTEM DESIGN WITH CS5378
Figure 9 illustrates a simplified block diagram of
the CS5378 in a single channel measurement system.
A differential sensor is connected through the
CS3301A/02A differential amplifiers to the
CS5373A ΔΣ modulator, where analog to digital
conversion occurs. The modulator’s 1-bit output
connects to the CS5378 MDATA input, where the
oversampled ΔΣ data is decimated and filtered to
24-bit output samples at a programmed output rate.
These output samples are buffered into an 8-deep
data FIFO and then passed to the system telemetry.
System self tests are performed by connecting the
CS5378 test bit stream (TBS) generator to the
CS5373A test DAC. Analog tests drive differential
signals from the CS5373A test DAC into the multiplexed inputs of the CS3301A/02A amplifiers or
directly to the differential sensor. Digital loopback
tests internally connect the TBS digital output directly to the CS5378 modulator input.
3.1Power Supplies
The system shown in Figure 9 typically operates
from a ±2.5 V analog power supply and a 3.3 V
digital power supply. The CS5378 logic core can
be powered from 2.5 V to minimize power consumption, if required.
3.2Reset Control
System reset is required only for the CS5378 device, and is a standard active low signal that can be
generated by a power supply monitor or microcontroller. Other system devices default to a powerdown state when the CS5378 is reset.
3.3PLL and Clock Generation
A PLL is included on the CS5378 to generate an internal 32.768 MHz master clock from a
1.024 MHz, 2.048 MHz, or 4.096 MHz standard
clock or Manchester encoded input. Clock inputs
for other system devices are driven by clock outputs from the CS5378.
DS639F318
CS5378
3.4Synchronization
Digital filter phase and analog sample timing of the
ΔΣ modulator connected to the CS5378 are synchronized by a rising edge on the SYNC pin. If a
synchronization signal is received identically by all
CS5378 devices in a measurement network, synchronous sampling across the network is guaranteed.
3.5System Configuration
Through the serial configuration interface, filter
coefficients and digital filter register settings can
either be programmed by a microcontroller or automatically loaded from an external EEPROM after
reset. System configuration is only required for the
CS5378 device, as other devices are configured via
the CS5378 General Purpose I/O pins.
Two registers in the digital filter, SYSTEM1 and
SYSTEM2 (0x2C, 0x2D), are provided for user defined system information. These are general purpose registers that will hold any 24-bit data values
written to them.
3.6Digital Filter Operation
3.7Data Collection
Data is collected from the CS5378 through the serial data interface. When data is available, serial
transactions are automatically initiated to transfer
24-bit data or 32-bit status+data from the output
FIFO to the system telemetry. The output FIFO has
eight data locations to permit latency in data collection.
3.8Integrated peripherals
Test Bit Stream (TBS)
A digital signal generator built into the CS5378
produces a 1-bit ΔΣ sine wave. This digital test bit
stream is connected to the CS5373A test DAC to
create high quality analog test signals or internally
looped back to the CS5378 MDATA input to test
the digital filter and data collection circuitry.
Time Break
Timing information is recorded during data collection by strobing the TIMEB pin. A dedicated flag
in the sample status bits, TB, is set high to indicate
during which measurement the timing event occurred.
After analog to digital conversion occurs in the
modulator, the oversampled 1-bit ΔΣ data is read
into the CS5378 through the MDATA pin. The digital filter then processes data through the enabled
filter stages, decimating it to 24-bit words at a programmed output word rate. The final 24-bit samples are concatenated with 8-bit status words and
placed into an output FIFO.
DS639F319
General Purpose I/O (GPIO)
Eight general purpose pins are available on the
CS5378 for system control. Each pin can be set as
input or output, high or low, with an internal pullup enabled or disabled. The CS3301A/02A and
CS5373A devices in Figure 9 are configured by
simple pin settings controlled through the CS5378
GPIO pins.
4. POWER SUPPLIES
1
2
3
4
5
6
7
821
22
23
24
25
26
27
28
9
10
11
1217
18
19
20
13
1415
16
VDDPAD
GNDPAD
GNDCORE
VDDCORE
Figure 10. Power Supply Block Diagram
GNDPLL
VDDPLL
CS5378
The CS5378 has three sets of power supply inputs.
One set supplies power to the I/O pins of the device
(VDDPAD), another supplies power to the logic
core (VDDCORE) and the third supplies power to
the PLL (VDDPLL). The I/O pin power supplies
determine the maximum input and output voltages
when interfacing to peripherals, the logic core power supply largely determines the power consumption of the CS5378 and the PLL power supply
powers the internal PLL circuitry.
4.1Pin Descriptions
VDDPAD, GNDPAD - Pins 9, 10
Sets the interface voltage to a microcontroller, system telemetry, modulator, and test DAC. VDDPAD can be driven with voltages from 3.3 V to
5V.
VDDPLL, GNDPLL - Pins 15, 16
Sets the operational voltage of the internal CS5378
PLL circuitry. Can be driven with voltages from
3.3 V to 5 V.
DS639F320
VDDCORE, GNDCORE - Pins 21, 22
Sets the operational voltage of the CS5378 logic
core. VDDCORE can be driven with voltages from
2.5 V to 5 V. A 2.5 V supply will minimize total
power consumption.
4.2Bypass Capacitors
Each power supply pin should be bypassed with
parallel 1 μF and 0.01 μF caps, or by a single
0.1 μF cap, placed as close as possible to the
CS5378. Bypass capacitors should be ceramic
(X7R, C0G), tantalum, or other good quality dielectric type.
4.3Power Consumption
Power consumption of the CS5378 depends primarily on the power supply voltage of the logic
core (VDDCORE) and the programmed digital filter clock rate. Digital filter clock rates are selected
based on the required output word rate as explained
in “Digital Filter Initialization” on page 38.
5. RESET CONTROL
RESET
Self-Tests
SELFTEST
Register
BOOT
Pin
EEPROM
Boot
μController
Boot
1
0
Figure 11. Reset Control Block Diagram
BOOTReset Mode
1EEPROM boot
0Microcontroller boot
Self-Test
Type
Pass
Code
Fail
Code
Program ROM0x00000A0x00000F
Data ROM0x0000A00x0000F0
Program RAM0x000A000x000F00
Data RAM0x00A0000x00F000
Execution Unit0x0A00000x0F0000
CS5378
The CS5378 reset signal is active low. When released, a series of self-tests are performed and the
device either actively boots from an external EEPROM or enters an idle state waiting for microcontroller configuration.
5.1Pin Descriptions
RESET
Reset input, active low.
- Pin 18
GPIO7:BOOT - Pin 28
Boot mode select, latched immediately following
reset. Weak (~100 kΩ) internal pull-up defaults
high, external 10 kΩ pull-down required to set low.
combined into the SELFTEST register (0x2F),
with 0x0AAAAA indicating all passed. Self-tests
require 60 ms to complete.
5.3Boot Configurations
The logic state of the BOOT pin after reset determines if the CS5378 actively reads configuration
information from EEPROM or enters an idle state
waiting for a microcontroller to write configuration
commands.
EEPROM Boot
When the BOOT pin is high after reset, the CS5378
actively reads data from an external serial EEPROM and then begins operation in the specified
configuration. Configuration commands and data
are encoded in the EEPROM as specified in the
‘Configuration By EEPROM’ section of this data
sheet, starting on page 25.
5.2Reset Self-Tests
After RESET is released but before booting, a series of digital filter self-tests are run. Results are
DS639F321
Microcontroller Boot
When the BOOT pin is low after reset, the CS5378
enters an idle state waiting for a microcontroller to
write configuration commands and initialize filter
operation. Configuration commands and data are
written as specified in the ‘Configuration By Microcontroller’ section of this data sheet, starting on
page 30.
6. PLL AND CLOCK GENERATION
PLL
CLK
DSPCFG Register
MCLK
Internal
Clocks
Figure 12. Clock Generation Block Diagram
Clock Divider
Generator
and MCLK
Output
PLL[2:0]
32.768
MHz
PLL[2:0]PLL Mode
11132.768 MHz clock input (PLL bypass).
1101.024 MHz clock input.
1012.048 MHz clock input.
1004.096 MHz clock input.
01132.768 MHz clock input (PLL bypass).
0101.024 MHz Manchester input.
0012.048 MHz Manchester input.
0004.096 MHz Manchester input.
Table 5. PLL Mode Selections
CS5378
The CS5378 requires a 32.768 MHz master clock,
which can be supplied directly or from an internal
phase locked loop. This master clock is used to
generate an internal digital filter clock and an external modulator clock.
The internal PLL will lock to standard clock or
Manchester encoded input signals. The input type
and input frequency are selected by the reset state
of the PLL mode select pins.
6.1Pin Descriptions
CLK - Pin 17
Clock or PLL input, standard clock or Manchester.
GPIO[4:6]:PLL[0:2] - Pins 5, 6, 7
PLL mode select, latched immediately after reset.
Weak (~100 kΩ) internal pull-ups default high, external 10 kΩ pull-downs required to set low.
A weak internal pull-up resistor (~100 kΩ) will
hold the PLL mode select pins high by default. To
force the pin low on reset, an external 10 kΩ pulldown resistor should be connected. Once the pin
state is latched following reset, the GPIO[4:6] pins
function without affecting PLL operation.
6.3Synchronous Clocking
To guarantee synchronous measurements throughout a sensor network, a system clock should be distributed to arrive at all nodes in phase. The
distributed system clock can either be the full
32.768 MHz master clock, or the CS5378 PLL can
create a synchronous 32.768 MHz clock from a
slower clock. To ensure the generated clock remains synchronous with the network, the CS5378
PLL uses a phase/frequency detector architecture.
6.2PLL Mode Select
The CS5378 PLL operational mode and frequency
are selected immediately after reset based on the
state of the PLL[0:2] pins. On the rising edge of the
reset signal, the digital high or low state of the
PLL[0:2] pins is latched and used to program the
clock input type and frequency.
DS639F322
CS5378
6.4Master Clock Jitter and Skew
Care must be taken to minimize jitter and skew on
the distributed system clock as both parameters affect measurement performance.
Jitter on the input clock causes jitter in the generated modulator clock, resulting in sample timing errors and increased noise.
Skew between input clocks from node to node creates a sample timing offset, resulting in systematic
measurement errors in a reconstructed signal.
DS639F323
7. SYNCHRONIZATION
Figure 13. Synchronization Block Diagram
SYNC
MSYNC
Digital
Filter
Generator
MSYNC
0
1
MSEN
0
1
TSYNC
Test Bit
Stream
Output
CS5378
The CS5378 has a dedicated SYNC input that
aligns the internal digital filter phase and generates
an external signal for synchronizing modulator analog sampling. By providing simultaneous rising
edges to the SYNC pins of multiple CS5378 devices, synchronous sampling across a network can be
guaranteed.
7.1Pin Description
SYNC - Pin 19
Synchronization input, rising edge triggered.
7.2MSYNC Generation
The SYNC signal rising edge is used to generate a
retimed synchronization signal, MSYNC. The
MSYNC signal reinitializes internal digital filter
phase and is driven onto the MSYNC output pin to
phase align modulator analog sampling.
The MSEN bit in the digital filter CONFIG register
(0x00) enables MSYNC generation. See “Modulator Interface” on page 36 for more information
about MSYNC.
7.3Digital Filter Synchronization
The internal MSYNC signal resets the digital filter
state machine to establish a known digital filter
phase. Filter convolutions restart, and the next output word is available one full sample period later.
Repetitive synchronization is supported when
SYNC events occur at exactly the selected output
rate. In this case, re-synchronization will occur at
the start of a convolution cycle when the digital filter state machine is already reset.
7.4 Modulator Synchronization
The external MSYNC signal phase aligns modulator analog sampling when connected to the
CS5373A MSYNC input. This ensures synchronous analog sampling relative to MCLK.
Repetitive synchronization of the modulators is
supported when SYNC events occur at exactly the
selected output rate. In this case, re-synchronization always occurs at the start of analog sampling.
7.5Test Bit Stream Synchronization
When the test bit stream generator is enabled, an
MSYNC signal can reset the internal data pointer.
This restarts the test bit stream from the first data
point to establish a known output signal phase.
The TSYNC bit in the digital filter TBSCFG register (0x2A) enables synchronization of the test bit
stream by MSYNC. When TSYNC is disabled, the
test bit stream phase is not affected by MSYNC.
DS639F324
8. CONFIGURATION BY EEPROM
SS:EECS
SCK
MISO
MOSI
CS5378AT25640
CS
SCK
SI
SO
27
24
25
26
1
6
2
5
VD
GND
WP VCC HOLD
387
4
Figure 14. EEPROM Configuration Block Diagram
CS5378
After reset, the CS5378 reads the state of the
GPIO7:BOOT pin to determine a source for configuration commands. If BOOT is high, the
CS5378 initiates serial transactions to read configuration information from an external EEPROM.
8.1Pin Descriptions
Pins required for EEPROM boot are listed here,
other serial pins are inactive.
SCK - Pin 24
Serial clock output, nominally 1.024 MHz.
MISO - Pin 25
Serial data input pin. Valid on rising edge of SCK,
transition on falling edge.
MOSI - Pin 26
Serial data output pin. Valid on rising edge of
SCK, transition on falling edge.
SS:EECS - Pin 27
EEPROM chip select output, active low.
8.2EEPROM Hardware Interface
When booting from EEPROM the CS5378 actively
performs serial transactions, as shown in Figure 15,
DS639F325
to read configuration commands and data. 8-bit
SPI opcodes and 16-bit addresses are combined to
read back 8-bit configuration commands and 24-bit
configuration data.
System design should include a connection to the
configuration EEPROM for in-circuit reprogramming. The CS5378 serial pins tri-state when inactive to support external connections to the serial
bus.
8.3EEPROM Organization
The boot EEPROM holds the 8-bit commands and
24-bit data required to initialize the CS5378 into an
operational state. Configuration information starts
at memory location 0x10, with addresses 0x00 to
0x0F free for use as manufacturing header information.
The first serial transaction reads a 1-byte command
from memory location 0x10 and then, depending
on the command type, reads multiple 3-byte data
words to complete the command. Command and
data reads continue until the ‘Filter Start’ command
is recognized.
SCK
MOSI
SS:EECS
MSBLSB
MISO
X
612345
MSBLSB612345
18276543
Cycle
MOSI
MISO
0x03ADDR
DATA1DATA3DATA2
SS:EECS
READ
1 BYTE / 3 BYTE
ADDR
CMD
ADDR
DATA
2 BYTE
Figure 15. EEPROM Serial Read Transactions
Serial Read from EEPROM
InstructionOpcodeAddressDefinition
Read0x03ADDR[15:0]Read data beginning at the address given in ADDR.
CS5378
DS639F326
CS5378
Figure 16. 8 Kbyte EEPROM Memory Organization
0000h
1FFFh
EEPROM
Manufacturing
Information
EEPROM
Command and
Data Values
Mfg Header
8-bit Command
0010h
N x 24-bit Data
8-bit Command
N x 24-bit Data
. . .
Table 6. Maximum EEPROM Configuration
Memory RequirementBytes
Digital Filter Registers (12)84
FIR Coefficients (255+255)1537
IIR Coefficients (3+5)25
‘Filter Start’ Command1
Total Bytes1647
Write DF Register - 0x01
This EEPROM command writes a data value to the
specified digital filter register. Digital filter registers control hardware peripherals and filtering
functions. See “Digital Filter Registers” on page 71
for the bit definitions of the digital filter registers.
Sample Command:
Write digital filter register 0x00 with data value
0x060431. Then write 0x20 with data 0x000240.
01 00 00 00 06 04 31
01 00 00 20 00 02 40
Write FIR Coefficients - 0x02
The maximum number of bytes that will be written
for a single configuration is less than 2 KByte
(16 Kbit), including command overhead:
Supported serial configuration EEPROMs are
SPI mode 0 (0,0) compatible, 16-bit addresses, 8bit data, larger than 2 KByte (16 KBit). ATMEL
AT25640, AT25128, or similar serial EEPROMs
are recommended.
8.4EEPROM Configuration Commands
A summary of available EEPROM commands is
shown in Table 7.
This EEPROM command writes custom coefficients for the FIR1 and FIR2 filters. The first two
data words set the number of FIR1 and FIR2 coefficients to be written. The remaining data words are
the concatenated FIR1 and FIR2 coefficients.
A maximum of 255 coefficients can be written for
each FIR filter, though the available digital filter
computation cycles will limit their practical size.
See “FIR Filter” on page 44 for more information
about FIR filter coefficients.
Sample Command:
Write FIR1 coefficients 0x00022E, 0x000771 then
FIR2 coefficients 0xFFFFB9, 0xFFFE8D.
02 00 00 02 00 00 02
00 02 2E 00 07 71 FF FF B9 FF FE 8D
Write IIR Coefficients - 0x03
This EEPROM command writes custom coefficients for the two stage IIR filter. The IIR architecture and number of coefficients is fixed, so eight
data words containing coefficient values always
immediately follow the command byte. The IIR coefficient write order is: a11, b10, b11, a21, a22,
b20, b21, and b22. See “IIR Filter” on page 52 for
more information about IIR filter coefficients.
DS639F327
Loading...
+ 61 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.