Spark Logic

SPI-3 wires

STM32F103C8T6 Example · LQFP48 Pinout

Hi,
I need some help.I want to use 3 wire spi comm with a rf module.
I need to use MOSI pin, bidirectional for write and read .How can I do it ?I want to use HW spi .bitbaging I know to do it.
I have a mini MapleMapleDevelopment and computing boards…expensive short of buying in bulk. many resort to usb-serial converters. today comes leaflabs maple , stm32duino it is ‘disruptive’ in a similar light, user customizable usb is no…View in hardware catalog board.

Replies20

Wed May 18, 2016 11:00 pm

which rf module?

if you don’t supply the info to allow an answer, we can’t.

at a first guess, try google with arduino + <module> + library e.g. arduino + nRF24L01nRF24L01Communications, navigation, interfaces and RFID… it. The battery powers the RTC registers and the socket next to the battery fits an nRF24L01 . I wasn’t sure what it was, but connected one there and it configured (I did not tes…View in hardware catalog + library
also for 3 wire spi and arduino

stephen

Wed May 18, 2016 11:29 pm

zmemw16 wrote:at a first guess, try google with arduino + <module> + library e.g. arduino + nRF24L01nRF24L01Communications, navigation, interfaces and RFID… it. The battery powers the RTC registers and the socket next to the battery fits an nRF24L01 . I wasn’t sure what it was, but connected one there and it configured (I did not tes…View in hardware catalog + library
also for 3 wire spi and arduino

Thu May 19, 2016 12:19 am

ok second guess

does st.com spi hardware support it?

which module ? sort of major unknown. bit like asking a builder for a fixed price?

stephen with a leaky roof

Thu May 19, 2016 1:26 am

zmemw16 wrote:does st.com spi hardware support it?

Thu May 19, 2016 4:07 am

WereCatf wrote:zmemw16 wrote:does st.com spi hardware support it?

Thu May 19, 2016 6:48 am

The RF module is not relevant for this discussion but it is not a secret.The 2.4Ghz A7105 uses 3wires spi ,SDIO pin is bidirectional.

There is some examples but use different STM32STM32Microcontrollers and processors…Map magic glue code, ethernet compiles, just WARNING: library LwIP claims to run on [ stm32 ] architecture(s) and may be incompatible with your current board which runs on [STM32]…View in hardware catalog chip with standard STM32STM32Microcontrollers and processors…Map magic glue code, ethernet compiles, just WARNING: library LwIP claims to run on [ stm32 ] architecture(s) and may be incompatible with your current board which runs on [STM32]…View in hardware catalog periph. library.I want to use with arduino with an STM32F103STM32F103Microcontrollers and processors…19.html . ag123 Sat Apr 28, 2018 5:54 pm come to think of it blue pill / maple mini ( stm32f103 ) is an *ideal* keyboard controller, the scanning can be done with assistance of sh…View in hardware catalog
http://www.ba0sh1.com/2014/05/31/howto- … plex-mode/

void SPI_BiDirectionalLineConfig(SPI_TypeDef* SPIx, uint16_t SPI_Direction)
{
/* Check the parameters */
assert_param(IS_SPI_ALL_PERIPH(SPIx));
assert_param(IS_SPI_DIRECTION(SPI_Direction));
if (SPI_Direction == SPI_Direction_Tx)
{
/* Set the Tx only mode */
SPIx->CR1 |= SPI_Direction_Tx;
}
else
{
/* Set the Rx only mode */
SPIx->CR1 &= SPI_Direction_Rx;
}
}

Thu May 19, 2016 8:31 am

Well, now you start reading the STM32F103STM32F103Microcontrollers and processors…19.html . ag123 Sat Apr 28, 2018 5:54 pm come to think of it blue pill / maple mini ( stm32f103 ) is an *ideal* keyboard controller, the scanning can be done with assistance of sh…View in hardware catalog reference manual to understand how the spi port works, what its registers do. Then you start looking into the libmaplecode/the library the spi library, and learn where you will have to make the changes to do the half duplex communication, and then you implement it, and share it with the rest of us :).

Thu May 19, 2016 9:54 am

So you don’t know how to do it.
Anyway thanks.

Thu May 19, 2016 10:28 am

you have a roadmap, the route is up to you.
learn by doing, not by rote. that methodology applies in many areas.
one of my fellow students i still remember started every problem with the basic equations and demonstrated the
adage that the engineer knows both how and why it works.
horses and water thoughts also pop up.

stephen

Thu May 19, 2016 10:52 am

Arduino was invented to be easy to use and faster coding not wasting valuable time.
The STM32STM32Microcontrollers and processors…Map magic glue code, ethernet compiles, just WARNING: library LwIP claims to run on [ stm32 ] architecture(s) and may be incompatible with your current board which runs on [STM32]…View in hardware catalog standary library is too low level to start aligning sheets of code only for initialize and toggle one single pin,For this reason the Arduino was perfect choice imo . But it is not useful to tell every Arduino user that he should looking in arduino core or arduino library and see what you can do over there.It looses the argument of using Arduino in the first place.
The thread here is related with code snippets so I think I was ontopic asking for a hint maybe some code than looking in MapleMapleDevelopment and computing boards…expensive short of buying in bulk. many resort to usb-serial converters. today comes leaflabs maple , stm32duino it is ‘disruptive’ in a similar light, user customizable usb is no…View in hardware catalog library and see what you can find over there.
If you/anybody doesn’t know how what to do it or where to look, is not a shame.Of course Instead of continuing my project in arduino I need so check hot to modify MapleMapleDevelopment and computing boards…expensive short of buying in bulk. many resort to usb-serial converters. today comes leaflabs maple , stm32duino it is ‘disruptive’ in a similar light, user customizable usb is no…View in hardware catalog library.
As I said before ,…thanks anyway.

Thu May 19, 2016 11:03 am

miki wrote:Arduino was invented to be easy to use and faster coding not wasting valuable time.
The STM32STM32Microcontrollers and processors…Map magic glue code, ethernet compiles, just WARNING: library LwIP claims to run on [ stm32 ] architecture(s) and may be incompatible with your current board which runs on [STM32]…View in hardware catalog standary library is too low level to start aligning sheets of code only for initialize and toggle one single pin,For this reason the Arduino was perfect choice imo . But it is not useful to tell every Arduino user that he should looking in arduino core or arduino library and see what you can do over there.It looses the argument of using Arduino in the first place.
The thread here is related with code snippets so I think I was ontopic asking for a hint maybe some code than looking in MapleMapleDevelopment and computing boards…expensive short of buying in bulk. many resort to usb-serial converters. today comes leaflabs maple , stm32duino it is ‘disruptive’ in a similar light, user customizable usb is no…View in hardware catalog library and see what you can find over there.
If you/anybody doesn’t know how what to do it or where to look, is not a shame.Of course Instead of continuing my project in arduino I need so check hot to modify MapleMapleDevelopment and computing boards…expensive short of buying in bulk. many resort to usb-serial converters. today comes leaflabs maple , stm32duino it is ‘disruptive’ in a similar light, user customizable usb is no…View in hardware catalog library.
As I said before ,…thanks anyway.

Thu May 19, 2016 11:46 am

miki wrote:The RF module is not relevant for this discussion but it is not a secret.The 2.4Ghz A7105 uses 3wires spi ,SDIO pin is bidirectional.

There is some examples but use different STM32STM32Microcontrollers and processors…Map magic glue code, ethernet compiles, just WARNING: library LwIP claims to run on [ stm32 ] architecture(s) and may be incompatible with your current board which runs on [STM32]…View in hardware catalog chip with standard STM32STM32Microcontrollers and processors…Map magic glue code, ethernet compiles, just WARNING: library LwIP claims to run on [ stm32 ] architecture(s) and may be incompatible with your current board which runs on [STM32]…View in hardware catalog periph. library.I want to use with arduino with an STM32F103STM32F103Microcontrollers and processors…19.html . ag123 Sat Apr 28, 2018 5:54 pm come to think of it blue pill / maple mini ( stm32f103 ) is an *ideal* keyboard controller, the scanning can be done with assistance of sh…View in hardware catalog
http://www.ba0sh1.com/2014/05/31/howto- … plex-mode/

Thu May 19, 2016 12:02 pm

miki wrote:So you don’t know how to do it.
Anyway thanks.

Thu May 19, 2016 12:11 pm

I know that but GIO1 and GIO2 pin are busy with control PA/LNA so they are not available.
Thanks.

And It is not doing for me it is doing for us all Improving arduino spi code with half duplex bidirectional feature from the people who knows best the MapleMapleDevelopment and computing boards…expensive short of buying in bulk. many resort to usb-serial converters. today comes leaflabs maple , stm32duino it is ‘disruptive’ in a similar light, user customizable usb is no…View in hardware catalog library and STSM32 “nuts and bolts”.
@WereCatf
If you don’t want(not payed,sick with your life whatever)or Arduino is not complete say you can’t , no need to offend me.I’m not a kid.I have a bigger arduino project in AVRAVRMicrocontrollers and processors…Arduino\libraries\U8glib\U8glib.cpp, C:\Program Files (x86)\Arduino\hardware\arduino\ avr \cores\arduino\HardwareSerial.h, C:\Program Files (x86)\Arduino/Blink3.ino, D:\Users\me\A…View in hardware catalog and I want to port it in STM32STM32Microcontrollers and processors…Map magic glue code, ethernet compiles, just WARNING: library LwIP claims to run on [ stm32 ] architecture(s) and may be incompatible with your current board which runs on [STM32]…View in hardware catalog ,I don’t want to use make file with STM32STM32Microcontrollers and processors…Map magic glue code, ethernet compiles, just WARNING: library LwIP claims to run on [ stm32 ] architecture(s) and may be incompatible with your current board which runs on [STM32]…View in hardware catalog standard libraries and a wrapper for Arduino files I have.If possible ok if not, it is my problem.

@racemaniac
I will do some tests when I get home. Thanks.

GrumpyOldPizza wrote:miki wrote:The RF module is not relevant for this discussion but it is not a secret.The 2.4Ghz A7105 uses 3wires spi ,SDIO pin is bidirectional.

There is some examples but use different STM32STM32Microcontrollers and processors…Map magic glue code, ethernet compiles, just WARNING: library LwIP claims to run on [ stm32 ] architecture(s) and may be incompatible with your current board which runs on [STM32]…View in hardware catalog chip with standard STM32STM32Microcontrollers and processors…Map magic glue code, ethernet compiles, just WARNING: library LwIP claims to run on [ stm32 ] architecture(s) and may be incompatible with your current board which runs on [STM32]…View in hardware catalog periph. library.I want to use with arduino with an STM32F103STM32F103Microcontrollers and processors…19.html . ag123 Sat Apr 28, 2018 5:54 pm come to think of it blue pill / maple mini ( stm32f103 ) is an *ideal* keyboard controller, the scanning can be done with assistance of sh…View in hardware catalog
http://www.ba0sh1.com/2014/05/31/howto- … plex-mode/

Thu May 19, 2016 12:22 pm

miki wrote:I know that but GIO1 and GIO2 pin are busy with control PA/LNA so they are not available.

Thu May 19, 2016 12:30 pm

Yes that half true but you forget the second part,
I think in the end I will stick with bitbanging.

Thu May 19, 2016 12:33 pm

miki wrote:Yes that half true but you forget the second part,
I think in the end I will stick with bitbanging.

Thu May 19, 2016 12:41 pm

First half and second half

miki wrote:

And It is not doing for me it is doing for us all Improving arduino spi code with half duplex bidirectional feature ……from the people who knows best the MapleMapleDevelopment and computing boards…expensive short of buying in bulk. many resort to usb-serial converters. today comes leaflabs maple , stm32duino it is ‘disruptive’ in a similar light, user customizable usb is no…View in hardware catalog library and STSM32 “nuts and bolts”.

Thu May 19, 2016 1:16 pm

miki wrote:The RF module is not relevant for this discussion but it is not a secret.The 2.4Ghz A7105 uses 3wires spi ,SDIO pin is bidirectional.

There is some examples but use different STM32STM32Microcontrollers and processors…Map magic glue code, ethernet compiles, just WARNING: library LwIP claims to run on [ stm32 ] architecture(s) and may be incompatible with your current board which runs on [STM32]…View in hardware catalog chip with standard STM32STM32Microcontrollers and processors…Map magic glue code, ethernet compiles, just WARNING: library LwIP claims to run on [ stm32 ] architecture(s) and may be incompatible with your current board which runs on [STM32]…View in hardware catalog periph. library.I want to use with arduino with an STM32F103STM32F103Microcontrollers and processors…19.html . ag123 Sat Apr 28, 2018 5:54 pm come to think of it blue pill / maple mini ( stm32f103 ) is an *ideal* keyboard controller, the scanning can be done with assistance of sh…View in hardware catalog
http://www.ba0sh1.com/2014/05/31/howto- … plex-mode/
<…>
How can be implemented this one if possible. Bitbanging is the last option.

Post a reply

Optional · up to 10 MiB