When creating applications, it is often necessary to collect digital data such as sensor data captured by MCU while graphing it in real time like an oscilloscope. We introduce an easy-to-use data logger that can import data into Microsoft Excel while displaying the data on a PC monitor using serial communication. What is a data […]
What is an Accelerometer? Among various sensors, accelerometers are often used in invisible places in products, so many people may not know what they are, despite their high utilization. For example, it is used in smartphones to change the orientation of the screen by detecting the tilt based on gravity applied to the internal acceleration […]
Debug programming using the USART of the STM32 MCU. Debugging is achieved by inserting microcontroller-specific tsprintf statements that display numerical values at arbitrary points in the program and displaying the data using general-purpose terminal emulator on a PC. Colum tsprintf() is a customized version of the standard output function printf() in C for the STM32 […]
This application uses STM32 USART DMA for sending and receiving character strings in serial communication. When character strings are long or the number of transfers is large, DMA is advantageous because it does not burden the CPU. The point In the sample program, both receiving and sending processes are handled in the interrupt handler for […]
This is a program that uses a buffer for sending strings and interrupts for multiple strings, and also interrupts for receiving strings using STM32 USART. This is a practical program that performs interrupt processing for both sending and receiving and can send multiple character strings at arbitrary times.
This is a buffered application that sends several types of strings in USART with the STM32 MCU without interfering with each other. The buffer is provided to perform multiple string transmissions without interference.
This application sends strings via interrupt in USART with the STM32 MCU. This method is the simplest and easiest to understand, using a pointer to store the string in a variable while sending it, but it is limited to one type of string, and if several types of strings are sent, they interfere with each […]
This application uses receive interrupts in USART with the STM32 MCU. Compared to the polling method, it is more efficient because it can process only when receiving. This is an example of a ready-to-use application.
Since it is not practical to send a single character code in USART with the STM32 MCU, this application has been developed to send and receive a continuous string of characters. This is an example of an application that uses a pointer to store a continuous string of characters in a variable and send/receive it.
This is the simplest program for STM32 USART. The communication application is almost language-like outside of MCU knowledge because it deals with strings. It is a great way to familiarize yourself with arrays to store characters, the concept of pointers and addresses, etc. Setting Spec. :Input : PC10 Floating inputOutput :PC11 Alternate Push-pull output Colum […]