5023 views|5 replies

99

Posts

0

Resources
The OP

How does STM32's SPI handle 25-bit data? [Copy link]

                                 As title
This post is from stm32/stm8

Latest reply

                                 I still use IO simulation instead. Thank you for your help.  Details Published on 2010-4-17 16:36

72

Posts

0

Resources
2
                                 Can’t you send it in eight digits?
This post is from stm32/stm8

71

Posts

0

Resources
3
                                 But the control of the connected chip is 25 bits. If you want to send it eight bits at a time, you have to send 32 bits. I don't know if the latter will affect it, so it's best to send only 25 bits.
This post is from stm32/stm8

77

Posts

0

Resources
4
If the speed requirement is not high, use IO simulation instead!
Whose IC is this? Usually it is a multiple of 8, and the number of useful bits may not be a multiple of 8. So it may be that the redundant bits will not be used. It is better to ask the IC manufacturer before testing!
This post is from stm32/stm8

70

Posts

0

Resources
5
Use the program to combine multiple data. For example, if you want to send 8 data, a total of 25 bytes are used.

If the number of bits of the final data is not a multiple of 8, you can use the GPIO method to transmit the extra data less than 8 bits, or send a few more '0's.

Of course, there are many other hardware methods.
This post is from stm32/stm8

66

Posts

0

Resources
6
                                 I still use IO simulation instead. Thank you for your help.
This post is from stm32/stm8

Guess Your Favourite
Find a datasheet?

EEWorld Datasheet Technical Support

Related articles more>>
    Copyright © 2005-2025 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
    快速回复 返回顶部 Return list