嵌入式设计应用
Use a DS3900 to Evaluate I²C-Compatible Devices for Successful Bidirectional Communication
Abstract: This application note explains the design considerations and hardware requirements for developing a hardware solution to establish I²C-compatible communications using a DS3900.
The DS3900 is used to evaluate I²C-compatible components, and it provides fast, bidirectional communication with 2-wire devices using a PC's serial port. Figure 1 shows the recommended configuration for establishing communications between a DS3900 and an I²C-compatible device. An example of a breakout board for the DS3900 is shown in Figure 2. This small, efficient PCB (printed circuit board) provides everything necessary for I²C communications with the DS3900, and it allows the user to quickly interface with I²C-compatible devices.
Figure 1. Typical DS3900 interface schematic.
Figure 2. Example DS3900 interface board.
There are several notable aspects of the interface which users need to understand. All optional and critical functions of the circuit are detailed below.
Ideally, the DS3900 should be powered by the same supply as the DUT (device under test). By using the same supply for the DUT and the DS3900, the pullup resistors can be tied directly to VCC. A single decoupling capacitor from VCC to GND will suffice in most applications. However, the RS-232 transceiver used on the DS3900 can inject noise on the VCC and GND signals. This noise is significantly reduced when a 47µF tantalum capacitor¹ is also used to decouple the supply. The three DS3900 ground pins MUST ALL BE CONNECTED TO GROUND. All other unused I/O and the active-low MCLR pins should be left electrically unconnected.
The DS3900 can use either the on-board pullup resistors for SDA (Serial DatA) and SCL (Serial CLock), or the resistors already employed in an existing application. The switch² in Figure 1 controls whether or not the DS3900's on-board resistors are used for the pullup to VCC. In short, if the DS3900 is to be used on an I²C bus that already has pullup resistors, use the switch to disconnect the DS3900's on-board pullup resistors. SDA and SCL can then be attached safely to the target board or component.
The DS3900 has a number of convenient features. P3 is an open-collector I/O that can be used to drive a status LED. The connection in Figure 1 is made through VCC, which will affect power-supply currents when the LED is turned on. There are several other I/O pins available on the DS3900; their functions are defined in the DS3900 data sheet.
The communications with the DS3900 are handled by either the DS3900 EV Kit or the I²C-specific software included with the Maxim device being evaluated. If no device-specific software exists, the DS3900 EV kit software will be more than sufficient. The DS3900 connects to a PC through the RS-232 port. The evaluation software kits available on the FTP site are all executables with intuitive user interfaces.
Things to remember:
If the preceding recommendations are followed, it will be easy to use the DS3900 to evaluate I²C-compatible devices.
Notes
¹Digikey® offers the 47µF capacitor used for DS3900 evaluation of analog signals. Here the AVX® PN# is used. Any equivalent capacitor will suffice.
²The DPDT (dual position, double throw) DIP switch on DS3900 controls pullup resistors.
AVX is a registered trademark of AVX Corporation.
Digi-Key is a registered trademark of Digi-Key Corporation.
全部0条评论
快来发表一下你的评论吧 !