Mixed programming of C and assembly language

This paper mainly describes the mixed programming of C and assembly language. Assembly language refers to arm assembly language. This paper is used to help understand the assembler in ARM embedded system and how to mix C language with assembler. Main software: keiL μ Vision5 1, Introduction to ARM assembly language What is assembly l ...

Posted on Wed, 13 Oct 2021 12:03:38 -0400 by Zanus

Memory controller and SDRAM

Memory controller (memory interface device) If the address is in different ranges, different chip selection pins will be issued. In other words, different memory chips external to SOC will have different address ranges. CPU unified addressing includes GPIO, various protocol interface controllers (UART, I2C...), memory device interface, and nan ...

Posted on Mon, 11 Oct 2021 15:05:14 -0400 by csn

Embedded engineers implement a simple operating system

Task and task switching in operating system 1. Why is there a task?     We often see the operating system and often have to learn the operating system. From a small white point of view, everything has its opposite things, or affairs develop step by step. Since there is an operating system, there must be software without an operating system. ...

Posted on Sun, 10 Oct 2021 09:55:59 -0400 by jwalsh

Mixed programming of C language and assembly language of ARM

Article content: learn the mixed programming of C and assembly language of STM32 under Keil, involving the transfer of function parameters, and show specific examples. 1 function call between C language and assembly language 1.1 ATPCS The arm thumb procedure call follows the standard ATPCS (arm thumb procedure call standard)ATPCS st ...

Posted on Sun, 10 Oct 2021 04:28:40 -0400 by lc21

Arduino SimpleFOC library-006-position sensor

The library currently supports the following types of position sensors: encoder: The sensor counts A, B and directs pulses to estimate position.example: Optics: Omron 1000Pcapacitance: AMT103 CUIMagnetism: AS5047U  - Use ABIMagnetic sensor: A sensor that uses accurate magnetic field measurements to estimate position. Th ...

Posted on Sun, 03 Oct 2021 18:29:24 -0400 by hdpt00

XMODEM design and C code implementation (3. Test)

1. Test method and code   in the last article, we implemented the design of XMODEM communication protocol library through C code. In this article, we will write a test program to test the XMODEM library.    the test process is realized by PC serial port. The operating system is UBUNTU20 and the compilation tool is GCC. The imple ...

Posted on Sun, 26 Sep 2021 00:07:57 -0400 by uniflare