Strictly necessary cookies are on by default and cannot be turned off. Functional, Performance and Tracking/targeting/sharing cookies can be turned on below based on your preferences (this banner will remain available for you to accept cookies). You may change your cookie settings by deleting cookies from your browser. Then this banner will appear again. You can learn more details about cookies HERE.
Strictly necessary (always on)
Functional, Performance and Tracking/targeting/sharing (default off)
Hi, I’m using the Ezi2cDesign example that creates RAM that other devices can access through I2C. It appears that I2C supports sizes of both 8 bit and 16 bit data values. I’d like to store 32 bit values. Is there a way to do this without breaking it into two “chunks” ? I realize the other devices that read the values need to read 8 bit or 16 bit values. Just wonder if the PSoC can write to the RAM in 32 bit values. I’d like to make storing 32 bit values the least expensive as possible. I haven’t decided on a processor so if there is a PSoC that handles this better or if there is way to do this better, I’m open . . . Cheers !
The I2C bus is a byte-wide serial transmition, so all transfers have to be made in byte chunks. Nevertheless I2C allows for transmitting (nearly) unlimited streams of data. There will be no performance loss when transmitting larger amounts of data.
When interchanging data between different CPUs you have to observe the chapter "Handling endianess" in the datasheet.