Working With Tibbit #43-1

Before you can start the signal acquisition with Tibbit #43-1, you must configure it.

If your application will only need to perform analog-to-digital conversions from time to time, it can keep the Tibbit in the command mode and use the RA or RH commands to measure the voltages on the Tibbit's inputs whenever needed. In this case, Tibbit #43-1 only requires you to select between the single-ended or differential mode using the SM command:

<Power up — settings values loaded from the EEPROM>
Command:  SM0  'Single-ended mode
Reply: A
Command:  RA1,2  'Get ADC measurements
...

If your application requires a steady stream of signal measurements, configure the Tibbit for the data streaming mode. This entails programming four settings:

After that, your application should switch into the data streaming mode and start receiving the ADC sampling data:

<Power up — setting values loaded from the EEPROM>
Command:  SM1  'Single-ended mode
Reply: A
Command: SD0  'ASCII format
Reply: A
Command: SR400 '400 sample groups per second
Reply: A
Command: SC1,2 'Enable CH1 and CH2
Reply: A
Command: D
<Data streaming starts>
...

The above configuration steps must be performed after every power-up or reset, as the settings configured through these commands are only stored in the PIC microcontroller's RAM.

Another approach would be to configure the Tibbit once and save the configuration into the EEPROM:

<Power up — setting values loaded from the EEPROM>
Command:  SM1  'Single-ended mode
Reply: A
Command: SD0  'ASCII format
Reply: A
Command: SR400 '400 sample groups per second
Reply: A
Command: SC1,2 'Enable CH1 and CH2
Reply: A
Command: SE 'Save the configuration into the EEPROM
Reply A
...

A tip icon. Tibbo recommends that you be extra careful with the SE command to avoid excessive EEPROM writing. While modern EEPROMs have a significant number of allowed write cycles, there is still a limit. For more information, see Prolonging and Estimating EEPROM Life. If the write to the EEPROM fails, this command will return the F status code.


Once the desired configuration has been saved into the EEPROM, your application does not have to program the same settings on each power-up and can proceed directly into the data streaming mode:

<Power up — setting values loaded from the EEPROM>
Command: D
<Data streaming starts>
...