Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Different size of data

Status
Not open for further replies.

John99407

Junior Member level 3
Joined
Jul 14, 2019
Messages
26
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
240
one question is bothering me. assume I have a 32 bit MCU and 8 bit X device What happens if MCU send data to X device and Read data from X device. MCU size is 32 bit when It send 32 bit to X. Device X will receive 32 bit data.

Size of X device is 8 bit so it will only send 8 bit data and size of MCU 32. What happen when Device X send 8 bit to MCU? MCU will receive 8 bit data but 24 bits will be waste? Does it happen ?
 

Hi,

it depends on the device and it´s interface you are using.

Klaus
 

Hi,

it still does not mention the interface.

32 bit cortex M0 MCUs may have
* no dedicated parallel interface (workaround via port access, various possible commands)
* 8 bit parallel interface
* 16 bit parallel interface
* 32 bit parallel interface

In other words:
* How is it connected (hardware, schematic)
* and how do you access it (software, commands)

Klaus
 

24 bits will be waste?

If you are referring to the internal storage of the 32 bit device, then potentially yes, it depends on how you pack the data into the 32 bit word. One byte stored and the remaining 24 bits are unused, 4 bytes stored and all bits are used.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top