Bus bridge, system and method from AHB bus to I2C bus
A bus bridge and bus technology, applied in the bus field, can solve problems such as unfavorable IP multiplexing, AHB bus occupation, and difficulty in I2C device integration, and achieve the effects of improving security, reducing burden, and high compatibility
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0084] Such as Figure 1 to Figure 8 Shown, the bus bridge of a kind of AHB bus of the present invention to I2C bus, AHB bus protocol is mapped into I2C bus protocol by this bus bridge; Described bus bridge is as the master of I2C bus, simultaneously as a slave of AHB advanced system bus ;Receive the transmission command from the AHB master through the AHB bus, analyze the transmission command, convert it into a transmission command conforming to the I2C protocol, and issue the I2C transmission command through the I2C bus to communicate with the I2C slave. For the write transfer command, the bus bridge sends the data to the corresponding I2C slave through the I2C bus after receiving the target address, transfer data and necessary control information from the AHB master. For the read transfer command, after receiving the target address and necessary control information from the AHB master, the bus bridge reads data from the corresponding I2C slave through the I2C bus and caches...
Embodiment 2
[0180] Such as Figure 1 to Figure 8 As shown, the difference between this embodiment and Embodiment 1 is that this embodiment provides a bus bridge system from an AHB bus to an I2C bus, and the bus bridge system includes an AHB host, an AHB bus, a bus bridge, an I2C bus and several I2C slave, the AHB master is connected to the bus bridge through the AHB bus communication, and the bus bridge is connected to several I2C slaves through the I2C bus communication;
[0181] Wherein, the bus bridge adopts the bus bridge from the AHB bus to the I2C bus described in Embodiment 1.
Embodiment 3
[0183] Such as Figure 9 , Figure 10 As shown, the difference between this embodiment and Embodiment 1 is that this embodiment provides a bus bridge control method from the AHB bus to the I2C bus, and the control method is applied to the AHB bus to the I2C bus described in Embodiment 1. The bus bridge, the control method includes:
[0184] Step A, obtain the data forwarding request of the AHB master to the internal register of the I2C slave, and wait for the completion of the AHB master setting;
[0185] Step B, enable the data transmission start signal, take out the slave address from the CR0 register, and splice the transmission direction W at the end to form a byte of data (that is, the slave address 7bit + write 1bit), and send it to the I2C host through the write data channel module;
[0186] Step C, wait for the data forwarding request of the I2C master module, if there is a data forwarding request, take out the internal register address of the I2C slave from the CR4...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


