Skip to content
Home » Archives for saeed_ariankia

saeed_ariankia

Low layer library ninth Part: UART-Receive

In the eighth part of STM32 tutorial with LL functions, first we talked about the basics of UART protocol and describe that a data packet in this protocol includes what parts and at what baud-rate this data can be transmitted. Finally, we surveyed the UART protocol in the STM microcontrollers and implemented the data transmit on the board. In this part we want to setup the UART-Receive part.   The challenge of receiving data in the UART protocol If you… Read More »Low layer library ninth Part: UART-Receive

Low layer library eighth part: UART-Transmit

In the seventh part of STM32 tutorial with LL functions, we talked about the interrupt and the reasons why interrupts are useful. In the following we talked about interrupt in STM32 microcontroller in F1 series and how NVIC works. Finally, we did an external interrupt on a microcontroller pin. In this part of the tutorial, we want to talk about the UART protocol in the STM32 microcontrollers. First, we explain the theory regarding the UART with details and then implement… Read More »Low layer library eighth part: UART-Transmit

Low layer library seventh Part: Interrupt

 In the sixth part of tutorial with LL functions, we talked about the GPIO Input mode and showed the corresponding numbers of a counter by a push-button on a 7-segment. In this part of the tutorial, we would like to talk about the Interrupt. First, we will talk about what is interrupt and the explain how interrupts work in the microcontrollers and how they are implemented in a microcontroller.   Interrupt As it is clear from the word Interrupt, it… Read More »Low layer library seventh Part: Interrupt

Low layer library sixth Part: Interrupt

In the fourth part of LL functions tutorial, we talked about RCC and the configuration of the Clock source for a microcontroller. Also, we described the reason of the Clock pulse in the digital circuits. In the following we introduced the Reset circuit and told that when the reset occurred what occurs in the microcontroller practically. At the end we suggested a simple tutorial board that helps you to implement the codes on it. After four episodes of tutorial, we… Read More »Low layer library sixth Part: Interrupt

Low layer library fourth Part: RCC (Clock control & reset)

In the third part of LL functions tutorial, we learned how to generate a simple project and microcontroller configuration. At the end we got the output code for Keil software and after compiling programed it on the microcontroller. If you remember when we approached to the RCC part and the settings of the Clock, skipped it and just did some configuration without knowing the reason. In this part of tutorial our aim is to discuss about the Clock and Reset… Read More »Low layer library fourth Part: RCC (Clock control & reset)

Low layer library third Part: Keil and STM32CubeMX

In the second part of STM32 tutorials with LL function we talked about the number of processor bits and its advantages and disadvantages as well as got familiar with the principle of configuration. In this part of the tutorial, we want to teach you the Keil and STM32CubeMX in LL function. Then we will create a project by this software and finally we write a simple code through Keil. We will program the board by a programmer practically.   STM32CubeMX… Read More »Low layer library third Part: Keil and STM32CubeMX

configuration methods

Low layer library second Part: configuration methods and function types

In the first part of training the STM32 with LL functions we talked about processor and microcontroller and mentioned the differences of them. In addition, we said that the ARM company is just the processor designer and we investigated three important types of microcontrollers precisely. At the end the ST microcontroller which is one of the users of ARM processor was introduced. If you remember ST company has two 8-bit and 32-bit microcontroller which the 32-bit type is our goal.… Read More »Low layer library second Part: configuration methods and function types

ARM Processor

Low layer library First Part: ARM processor

ARM(Advanced RISC Machine) ARM is a company as well as an architecture that only design its specific architecture but is not the manufacture or seller of a processor or microcontroller. This company just sells its designs certificate to other companies. In this article some companies which use this architecture are introduced and at the end a microcontroller from one of them will be chosen to training.   Types of ARM processor New generation of processors (Not all of them) of… Read More »Low layer library First Part: ARM processor

LL library

Low layer library

At first, we should answer to this question, what is the LL library in STM32? ST company provides users with a lot of tools to drive and develop software for their projects. LL library is one of these tools and the main feature of this library is proximity to the hardware layer and direct access to the microcontroller register so to use this library we need the knowledge about the hardware. LL library have these features:  A set of functions… Read More »Low layer library

RSA

RSA algorithm and the miracle of the prime numbers

During last weeks I was involved with encryption algorithms ranging from symmetric to asymmetric encryption algorithms, it is really complex and amazing world witch all of them are math basis. Already we talked about the importance of producing random numbers in previous article and tried to solve the problem through hardware design. If you want know about this article follow this link How to produce real random numbers? Random numbers play the fundamental role in producing encryption keys, the more… Read More »RSA algorithm and the miracle of the prime numbers