1300 Henley Court Pullman, WA 99163 509.334.6306 www.digilentinc.com PmodISNS20 Reference Manual Revised April 12, 2016 This manual applies to the PmodISNS20 rev. A Overview The Digilent PmodISNS20 is a small current sense module with a digital SPI interface. The board combines an Allegro ACS722 Hall Effect current sensor with a 12-bit analog-to-digital converter from Texas Instruments. The PmodISNS20 is quick, accurate, and easy to use for a variety of applications. Features include: High accuracy current sensor Measure current with 120Hz/20kHz/80kHz jumper selections 20A DC or AC input Accurate to within 2% 12-bit ADC Small PCB size for flexible designs 1.3 in 0.8 in (3.3 cm 2.0 cm) 6-pin Pmod port with SPI interface Follows Digilent Pmod Interface Specification Type 2 Library and example code available in resource center Applications: Current measurement Power metering The PmodISNS20. Closed loop current control Over-current protection 1 Functional Description The PmodISNS20 is designed to send current data over Serial Peripheral Interface to a host board. The PmodISNS20 sends a 12-bit digital value that represents the amount of current flowing through the terminal block. It should be mentioned that unlike reading voltage, current is read in series. This digital representation can be used in software or FPGA logic, displayed, or sent through a serial monitor. Copyright Digilent, Inc. All rights reserved. DOC : 502-325 Page 1 of 3 Other product and company names mentioned may be trademarks of their respective owners. PmodISNS20 Reference Manual 2 Interfacing with the Pmod The PmodISNS20 communicates with the host board via the SPI protocol. The 12 bits of digital data are sent to the system board in 16 clock cycles with the most significant bit first. For the ADC7476, each bit is shifted out on each falling edge of the serial clock line after the chip select line is brought low with the first four bits as leading zeroes and the remaining 12 bits representing the 12 bits of data. The datasheet for the ADC7476 recommends that for faster microcontrollers or DSPs, the serial clock line is first brought to a high state before being brought low after the fall of the chip select line to ensure that the first bit is valid. Header J1 Pin Signal Description 1 CS Chip Select 2 (NC) Not Connected 3 MISO Master-In-Slave-Out 4 CLK Serial Clock 5 GND Power Supply Ground 6 VCC Positive Power Supply (3.3V) Table 1. Pinout description table. Figure 1. PmodISNS20 timing diagram. The PmodISNS20 uses three wires to communicate with the host board. The wires used are Chip Select (CS), Serial Clock (CLK), and Data Out (DO) also known as MISO. At 0.0 Amps, the ADC will return over SPI a value of 2048. At full negative current, a value of 0 will be returned, and likewise at full positive current a value of 4095 will be returned. Knowing this we can derive the equation needed in order to convert this signal into useful information. 1000 = ( 2048 ) 89 .95 Copyright Digilent, Inc. All rights reserved. Page 2 of 3 Other product and company names mentioned may be trademarks of their respective owners.