#43-2, M1S: Four-Channel Streaming ADC ±100V

A green M1S Tibbit.

Function: Four-channel streaming ADC, ±100V range

Form factor: M1S

Category: Input module

Special needs: [SER]

Power requirements: 5V/20mA average

Temperature range: –40°C to +85°C

Mates with: #19, #20, #21

See also: #13, #31, #43-1, #52, #53



Details

Tibbit #43-2 is based on the AD7323 12-bit+sign successive-approximation (SAR) analog-to-digital converter (ADC) IC. It offers four single-ended or two differential channels.

In the single-ended mode, this Tibbit has an input range of ±100V, while in the differential mode it accepts signals in the ±200V range. Tibbit #43-2 can be used as a multichannel wide input range voltmeter. Its wide input range enables applications with high-voltage sampling requirements, including battery bank management, industrial instrumentation systems, and solar panel voltage monitoring and logging. It also provides compatibility with multiple sensors operating at different input ranges.

In the differential mode, the data streams of two AC signals can be sampled for digital signal processing operations, such as phase detection and power quality factor calculations. However, special care must be taken when handling high voltages, as this is not an isolated Tibbit.

If your application does not require such a wide input voltage range — but would benefit from a higher precision — consider using Tibbit #43-1 instead.

Tibbit #43-2 requires only the main 5V power source. To accept inputs greater than 5V, the Tibbit is equipped with a low-noise, inductorless DC-DC converter generating –14V and +14V from the module's +5V power supply. Since all additional voltages are generated onboard, there is no need for an external dual-rail power Tibbit #12.

An onboard PIC16F1825 microcontroller resides between the ADC and the host CPU of the Tibbo Project PCB (TPP). The microcontroller's firmware implements a simple command interface, accessible via TX and RX UART lines (there is also an RTS flow control line). Dedicated to serving the needs of the ADC and unburdened by any other tasks, the PIC microcontroller enables low-jitter sampling of analog data in the data streaming mode and enhances the linearity and precision of analog-to-digital conversions.

Tibbit #43-2 operates in either command (default) or data streaming mode. The command mode is used to configure the Tibbit's settings (operating parameters) and also to perform single ("spot") analog-to-digital conversions. In the data streaming mode, the Tibbit sends a continuous stream of low-jitter measurements performed at a preset sampling rate. The device is capable of performing up to 1,000 measurements/second when a single channel is enabled. Up to 200 measurements per second per channel are possible when all four channels are used.

The PIC microcontroller's firmware can be upgraded in the system and without any additional external hardware. The firmware update process utilizes the low-voltage programming (LVP) mode of the PIC microcontroller, with the TX line acting as ICSPCLK, the RX line acting as ICSPDAT, and the –MCLR line used to put the microcontroller into the LVP mode. CODY can include a firmware update file in your project and generate code for its execution. The firmware source code and published update hex files are available in a dedicated repository.

For information on the operating parameters of Tibbit #43-2, please refer to Specifications.

For information on operating Tibbit #43-2, please see Working with Tibbit #43-2.


Single-Ended and Differential Modes

Whether the Tibbit operates in the single-ended or differential mode is determined by the SM command.

In the single-ended mode, the Tibbit provides four input channels. The voltage on each channel is with reference to the system ground; however, the Tibbit does not expose the ground line. This means that when running Tibbit #43-2 in the single-ended mode, you will need to get the ground line elsewhere. One of the common ways is to use Tibbit #43-2 in conjunction with Tibbit #20, which offers the system ground terminal.

When using this Tibbit, be aware that the I/O inputs have an equivalent resistance of ~98kΩ. This is important when connected sensors have a large output resistance or when using the Tibbit in the differential mode, which could result in an unintended path to the ground from the input pairs. The input diagram for each IO line is as follows:


A diagram illustrating the input diagram for each IO line of Tibbit #43-2.

Fig. 1 — Input Diagram


Table 1 — Single-Ended Mode Line Assignments

IO1

Single-ended analog input channel 1

IO2

Single-ended analog input channel 2

IO3

Single-ended analog input channel 3

IO4

Single-ended analog input channel 4

GND

Not provided by this Tibbit, must be obtained elsewhere (for example, by using Tibbit #20)


Table 2 — Differential Mode Line Assignments

IO1

Positive input of the differential analog input channel 1

IO2

Negative input of the differential analog input channel 1

IO3

Positive input of the differential analog input channel 2

IO4

Negative input of the differential analog input channel 2


The system ground is not needed in the differential mode. However, to reduce the noise, you may wish to connect the signal cable's shield to the TPS ground. This will, again, require obtaining the ground line elsewhere.


Control Lines

This Tibbit has four control lines:


Flow Control

Although Tibbit #43-2 features an RTS line, it does not have a CTS line. The reasons for the absence of the CTS line are that (1) there is no spare pin to accommodate this line, the fourth I/O interface line of the Tibbit being taken by the –MCLR pin; and (2) flow control in the host CPU-to-Tibbit direction is unnecessary. Large volumes of data potentially requiring flow control can only flow from Tibbit #43-2 to the host CPU. Only commands are ever sent in the opposite direction. All commands are short, and Tibbit #43-2 will always receive them reliably.

When enabling flow control in your application, remember to map the CTS line to the NULL line (ser.ctsmap = PL_INT_NULL).

If flow control is not used, remember to set the RTS line to LOW (see io.state). Failing to set the RTS line LOW will prevent Tibbit #43-2 from ever sending any data.


LEDs

Control lines A through D are each equipped with an LED. The RX line is equipped with a green LED, and all other lines have red LEDs. An LED will turn on when the state of its corresponding line is LOW.


Library Support

Tibbo supplies a companion software library for Tibbit #43-2 that takes care of calculations and conversions for you. The library can be easily included in your project through CODY, Tibbo's hardware configuration and project code generator. CODY examines your TPS configuration to create the starter code — adopting Tibbo's best coding practices — that you can use as your project's foundation.


#43-2, M1S: Four-Channel Streaming ADC ±100V

Details

Single-Ended and Differential Modes

Table 1 — Single-Ended Mode Line Assignments

Table 2 — Differential Mode Line Assignments

Control Lines

Flow Control

LEDs

Library Support