stm32 millis and micros

Post here first, or if you can't find a relevant section!
Post Reply
madhavan
Posts: 29
Joined: Fri May 21, 2021 1:22 am

stm32 millis and micros

Post by madhavan »

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 )..
mrburnette
Posts: 633
Joined: Thu Dec 19, 2019 1:23 am
Answers: 7

Re: stm32 millis and micros

Post by mrburnette »

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 )..
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.

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
}
Hope this helps somewhat. There are simply too many forum needs to handle one::one instruction; but, do your homework, write your code, debug, and it you hit a brick-wall, come back with specific questions and your sample code that is giving you difficulty.


Ray
Post Reply

Return to “General discussion”