#data transfer
#bidirectional communication
#inter processor communication
#firmware
#I2C
#TWI
#host-to-slave
#protocol
#I/O ports
Data Transfer interface
Description: The DS protocol was designed to provide firmware-based bidirectional host-to-slave inter-processor communications for situations in which no hardware solution is available and the host and/or the slave is incapable of tending the interface in real-time. The only specialized hardware required is two bidirectional I/O ports on each chip (alternatively, two input ports and two tri-statable output ports may be used). In other words, it provides some of the functionality of the Two-Wire Interface (TWI, or I2C as named by Philips) where an actual TWI is not feasible in either hardware or firmware. The 5 volt power pin on the DS interface may be used to supply power to the DS device being tested. In this case, a power on-off switch would be a good idea. The microcontroller timing is unimportant for the DS device, but it is critical for the baud rate generator on the AT902313. The RS-232 inverters could also be Maxim MAX-232 or something similar. Discreet inverters are preferred as they take less board space than the DIP buffers when building by hand.
On the DS interface side, the firmware provides for weak internal pull-ups on the Attention and Data lines, so no external resistors are required unless there is a large capacitive load on these lines, in which case resistors as low as 270 Ohms may be used.
The DS protocol enables effective communication between a host microcontroller and slave devices in scenarios where dedicated hardware interfaces are not available. The two I/O ports required for this protocol can be configured flexibly, allowing for various implementation strategies depending on the available resources of the microcontroller. The firmware-driven nature of this protocol facilitates adaptability in terms of communication timing and data handling, enabling operations even in low-power or resource-constrained environments.
In practical applications, the 5V power pin serves a dual purpose: it not only powers the DS device under test but also simplifies the circuit design by reducing the need for additional power supply components. Implementing a power switch enhances usability by allowing power control during testing or development phases.
The requirement for precise timing is emphasized in the context of the AT902313's baud rate generator, highlighting the importance of synchronization in serial communications. The use of RS-232 inverters, such as the Maxim MAX-232, is a common practice in interfacing with standard serial communication protocols. These inverters are compact and allow for efficient signal level conversions, making them suitable for hand-built circuits.
The firmware's provision of weak internal pull-ups on the Attention and Data lines is a significant feature that reduces the component count in the design. However, in scenarios where external capacitance may affect signal integrity, the inclusion of external resistors becomes necessary to maintain reliable communication. The suggested value of 270 Ohms serves as a guideline to mitigate potential issues arising from capacitive loading, ensuring that the signals remain within acceptable voltage levels for proper device operation. This design consideration is crucial for maintaining the robustness of the DS communication protocol in diverse applications.The DS protocol was designed to provide firmware-based bidirectional host-to-slave inter processor communications for situations in which no hardware solution is available and the host and/or the slave in incapable of tending the interface in real time. The only specialized hardware required is two bidirectional I/O ports on each chip (alternatively two input ports and two tri-statable output ports may be used.
In other words, it provides some of the functionalit of the Two-Wire-Interface (TWI, or I2C as named by Philips) where an actual TWI is not feasible in either hardware or firmware. The 5 volt power pin on the DS interface may be used to supply power to the DS device being tested. In this case, a power on-off switch would be a good idea. The microcontroller timing is unimportant for the DS device, but it is critical for the baud rate generator on the AT902313. The RS-232 inverters could also be Maxim MAX-232 or something similar. I prefer these discreet inverters because I am building them by hand and they take less board space than the DIP buffers.
On the DS interface side, the firmware provides for week internal pullups on the Attention and Data lines, so no nexternal resistors are required unless there is a large capactive load on these lines, in which casce, resistors as low as 270 Ohms may be used.
Watching the time on a mobile phone in the dark can cause discomfort due to the strong contrast between bright and dark backlighting. To address this issue, the "ICON" model is utilized, which operates in standby mode with a low...
When the SDA (Serial Data) lines on both the left and right lines are high (logic level 1), the circuit remains in a quiescent state, and the optoisolators IC1 and IC2 are not activated.
In this circuit, the Serial Data...
The board is relatively simple and is based on a PCF8574, which provides the output of a CD 4040 counter to the I2C bus. A DIP switch is included to select the PCF8574 address, along with some LEDs for power...
The I2C serial bus is a widely used two-wire bus for small-area networks. The I2C Clock and Data lines feature open collector (or drain) outputs for each device on the network, requiring only a single pull-up resistor. This architecture allows...
Connect any I2C client chip (such as temperature sensors, analog-to-digital converters, displays, or relay drivers) to your PC via USB quickly, easily, and affordably. Drivers are available for both Linux and Windows operating systems.
The described system facilitates the integration of...
The I2C PIC Interfacing Tutorial circuit is relatively straightforward; however, it requires careful verification to ensure that all connections are correct before initial operation. The primary components utilized in this circuit include the PIC18F452 microcontroller, the 24LC02B EEPROM, and a...
This section of the I2C interfacing project focuses on constructing an acceleration sensor while also addressing two additional aspects: the advanced application of the PCF8591 chip (previously discussed in the context of the pressure sensor) and operating the bus at...
Each integrated circuit (IC) on the I²C bus requires a unique address. Typically, these ICs can choose from a range of 2 to 8 possible addresses, enabling multiple chips of the same type to coexist on a single bus. The...
A prerequisite for this article is that the GCC AVR programming environment is installed as described in the article "Programming the AVR microcontroller with GCC, libc 1.0.4." To avoid installation issues, using the AVR programming CD is recommended. When utilizing...
We use cookies to enhance your experience, analyze traffic, and (if you allow) serve personalized ads.
By clicking Accept All, you agree to our use of cookies.
Learn more