Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| pmod:pmodcdc1:reference-manual [2022/09/13 17:12] – changed forum.digilentinc.com to forum.digilent.com, and one type-o jeff.greenberg_ni.com | pmod:pmodcdc1:reference-manual [2022/10/04 11:38] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Pmod CDC1 Reference Manual ====== | ||
| + | The Digilent Pmod CDC1 (Revision B) demonstrates capacitative-to-digital conversion through the use of [[http:// | ||
| + | {{Digilent Image Gallery | ||
| + | | image = {{: | ||
| + | | image = {{: | ||
| + | | image = {{: | ||
| + | | image = {{: | ||
| + | }} | ||
| + | |||
| + | == Download This Reference Manual == | ||
| + | * {{: | ||
| + | ---- | ||
| + | |||
| + | ===== Features ===== | ||
| + | * Two capacitive input channels | ||
| + | * Fixed or adaptive threshold capability | ||
| + | * High sensitivity up to 3 %%fF%% | ||
| + | * 2×4-pin connector with I2C interface | ||
| + | |||
| + | ---- | ||
| + | =====Functional Description ===== | ||
| + | The %%Pmod CDC1%% utilizes a 12-bit capacitance-to-digital converter (CDC) to determine if the measured capacitance on a particular channel (conveniently labeled as BTN1 and BTN2 on the Pmod surface) is above, below, inside, or outside the user definable threshold level(s). Users are able to read the digital capacitance level on the most recently converted channel through I< | ||
| + | |||
| + | ---- | ||
| + | ===== Interfacing with the Pmod===== | ||
| + | The %%Pmod CDC1%% communicates with the host board via the [[pmod: | ||
| + | |||
| + | On power-up the Pmod enters into continuous conversion mode with both of the channels alternately reporting their data. It also uses the adaptive threshold mode where the output is active (high) only when the sensed capacitance is lower than the difference of the average measured capacitance and the sensitivity (a sensitivity of about 12 fF). Users can choose to either detect when the output of a channel crosses its threshold by " | ||
| + | |||
| + | ==== Example continuous read with default settings ==== | ||
| + | A communication transmission example taking advantage of continuous read capability and reporting the contents of the Status (address 0x00), most recent Channel 1 and Channel 2 data, and average Channel 1 and Channel 2 data registers, is shown below. The bit names are taken from the [[http:// | ||
| + | |||
| + | ^ Command byte ||||||||^ | ||
| + | |1|0|0|1|0|0|0|1|(ACK)|0|0|0|0|0|0|0|0|(ACK)| | ||
| + | ^ Status² | ||
| + | | PwrDown | ||
| + | ^ Ch 1 Data High ||||||||^ | ||
| + | |b11|b10|b9|b8|b7|b6|b5|b4|(ACK)|b3|b2|b1|b0|0|0|0|0|(ACK)| | ||
| + | ^ Ch 2 Data High ||||||||^ | ||
| + | |b11|b10|b9|b8|b7|b6|b5|b4|(ACK)|b3|b2|b1|b0|X|X|X|X|(ACK)| | ||
| + | ^ Ch 1 Avg High ||||||||^ | ||
| + | |b11|b10|b9|b8|b7|b6|b5|b4|(ACK)|b3|b2|b1|b0|0|0|0|0|(ACK)| | ||
| + | ^ Ch 2 Avg High ||||||||^ | ||
| + | |b11|b10|b9|b8|b7|b6|b5|b4|(ACK)|b3|b2|b1|b0|X|X|X|X|(ACK)| | ||
| + | |||
| + | ** Note¹ ** The last four bits of each data set are not part of the 12-bit data conversion and so are either 0's or don't cares (X)\\ | ||
| + | ** Note² ** The bits of the status register are defined in their own table (from the Analog Devices datasheet again) below: | ||
| + | |||
| + | ^ Status Register Bit Values | ||
| + | ^ Bit ^ Mnemonic | ||
| + | | 7 | PwrDown | ||
| + | | 6 | DacStep2 | ||
| + | | 5 | OUT2 | OUT2 = 1 indicates that the Channel 2 data (CIN2 capacitance) crossed the threshold, according to the selected comparator mode of operation. The bit value is updated after each finished CDC conversion on this channel. | ||
| + | | 4 | DacStep1 | ||
| + | | 3 | OUT1 | OUT2 = 1 indicates that the Channel 1 data (CIN1 capacitance) crossed the threshold, according to the selected comparator mode of operation. The bit value is updated after each finished CDC conversion on this channel. | ||
| + | | 2 | C1/C2 | ||
| + | | 1 | RDY2 | RDY2 = 0 indicates a finished CDC conversion on Channel 2. The bit is reset back to 1 when the Channel 2 data register is read via the serial interface or after a part reset or power-up. | ||
| + | | 0 | RDY1 | RDY1 = 0 indicates a finished CDC conversion on Channel 1. The bit is reset back to 1 when the Channel 1 data register is read via serial interface or after a part reset or power-up. | ||
| + | |||
| + | |||
| + | |||
| + | ==== Pinout Description Table ==== | ||
| + | |||
| + | ^ Header J1 ||| ^ Header J2 ||| | ||
| + | ^ Pins ^ Signal | ||
| + | | 1 & 5 | ||
| + | | 2 & 6 | ||
| + | | 3 & 7 | ||
| + | | 4 & 8 | ||
| + | |||
| + | Any external power applied to the %%Pmod CDC1%% must be within 1.8V and 3.6V; it is recommended that Pmod is operated at 3.3V. | ||
| + | ---- | ||
| + | ===== Physical Dimensions ===== | ||
| + | The pins on the main pin header are spaced 100 mil apart. The PCB is 2.3 inches long on the side parallel to the pins on the pin header and 0.8 inches long on the side perpendicular to the pin header. | ||
| + | ---- | ||
| + | ===== Additional Information ===== | ||
| + | The schematics of the %%Pmod CDC1%% are available {{reference: | ||
| + | |||
| + | Example code demonstrating how to get information from the %%Pmod CDC1%% can be found [[pmod: | ||
| + | |||
| + | If you have any questions or comments about the %%Pmod CDC1%%, feel free to post them under the appropriate section (" | ||

