Skip to content

shrisharva83/DSDCourseProject

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 

Repository files navigation

DSDCourseProject

The Protocol Conversion Unit (PCU), consists of a Serial In Parallel Out (SIPO) register and an I2C master device. SS line of the SPI master (sender device) is connected to the Enable (SS) pin of SIPO. During the transmission of data by the SPI master (sender) a low signal enables SIPO register. SIPO uses clock provided by SPI master on SCLK line. With each clock pulse data on the MOSI line of SPI master is shifted into the internal register of SIPO through DIN (serial data in) of SIPO and data initially stored in the internal register of SIPO is shifted out on the MISO line of SPI master through SISO of SIPO. After 8 clock pulses SPI master stops communication and SS line goes low to high. Also SPI master raises a flag called DONE. This flag is later used to signal reset of the I2C master. The transition on SS line signals SIPO to load the data in its internal register onto the output bus DOUT. This completes the first step in PCU, where the data from sender is received and ready to be sent to the receiver. Address (7 bits) of I2C slave (receiver device) is stored in input address register called AddressI2cMaster (8 bits). R/W bit is appended after the address bits and stored in AddressI2cMaster register. Data on DOUT is loaded into input data register DataI2cMaster (8 bits) of I2C master. DONE flag from SPI master sets RESET of I2C master high. This initiates the second step in PCU. Now I2C master initiates its operation. I2C master follows the I2C frame format mentioned above. I2C master stops communication after sending stop bit. At this point data sent by SPI master (sender) is successfully transferred to the concerned I2C slave (receiver) and the protocol conversion successfully takes place.

image image image image

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published