hi , please share small function code about stm32 millis and micros .
also suggest about single pin - serial in data 's receiving option ( not a rx & tx )..
stm32 millis and micros
-
- Posts: 633
- Joined: Thu Dec 19, 2019 1:23 am
Re: stm32 millis and micros
Forums typically do not work in this manner; which is to say that forums tend to work best when the Op (you) ask specific questions and provide code-snippets where the Op has labored over the solution. That is, in our modern world, the Internet is your library and principal go-to tools for technical documentation.madhavan wrote: Tue Jul 20, 2021 4:52 am hi , please share small function code about stm32 millis and micros .
also suggest about single pin - serial in data 's receiving option ( not a rx & tx )..
The technical documentation always start with the Technical Reference Manual: RM0008 for the STM32F1xx devices.
Secondary materials can often be found using a search engine. Google: arduino stm32duino micros() millis()
Another great source of enlightenment is github source code... for example, the software serial library allows serial.TX and serial.RX on non-USART pins. Find it here: https://github.com/wingspinner/SoftwareSerialSTM32
In the .cpp file, you'll find the general read pin routine:
Code: Select all
uint8_t SoftSerialSTM32::rx_pin_read()
{
#if defined (__STM32F1__)
return digitalRead(_receivePin);
#else
return *_receivePortRegister & _receiveBitMask;
#endif
}
Ray