[MCU framework] [BSP layer] [nrf52832][nrf52840][nrf52810][nrf52820][bsp_pwm] PWM configuration and use

PWM - pulse width modulation PWM module can generate PWM signal on GPIO. The module implements an up or down counter with four PWM channels to drive the allocated GPIO. Three PWM modules can provide up to 12 PWM channels and up to 4 channels with a separate frequency control group. In addition, the built-in decoder and EasyDMA function can man ...

Posted by clearstatcache on Mon, 18 Oct 2021 16:07:33 -0700

[STM32F407] Chapter 3 transplantation of ThreadX USBX protocol stack to STM32F407

In tutorial update: ThreadX USBX protocol stack tutorial update record post, released in the first five chapters (2021-10-11) - UCOS & ucGUI & EMWIN & embos & touchgfx & ThreadX - tough guy embedded Forum - Powered by Discuz!http://www.armbbs.cn/forum.php?mod=viewthread&tid=108546 Chapter 3    Transplant Thre ...

Posted by JimD on Mon, 18 Oct 2021 15:46:53 -0700

[i.MX6ULL] Drive Development 6 - Light up LED with Pinctrl and GPIO subsystems

The previous two articles (Register Configuration Lighting LED and Device Tree Lighting LED) are essentially register configurations to control the lighting of LEDs. The direct operation of registers is to write the register information related to the LED directly into the driver code of the LED, which is also a more general control method. Ho ...

Posted by niekos on Mon, 18 Oct 2021 09:15:20 -0700

Notes on wildfire RT thread Kernel Implementation and application development 3. Implementation of RTT kernel object container

1. What is the object? The object type enumeration is defined as follows: enum rt_object_class_type { RT_Object_Class_Thread = 0, /* The object is a thread */ RT_Object_Class_Semaphore, /* The object is a semaphore */ RT_Object_Class_Mutex, /* Objects are mutexes */ RT_Object_Class_Event, /* Objects ...

Posted by mjlively on Sat, 16 Oct 2021 02:12:23 -0700

[MCU framework] [BSP layer] [cx32l003][bsp_pwm] PWM configuration and use

PWM mode The pulse width modulation mode can be generated by TIM1_ The ARR register determines the frequency, which is determined by TIM1_ The ccrx register determines the signal of the duty cycle. At TIM1_ The OCxM bit in ccmrx register is written to '110' (PWM mode 1) or '111' (PWM mode 2), and each OCx output channel can be independently se ...

Posted by bharrison89 on Fri, 15 Oct 2021 19:49:21 -0700

Mixed programming of C language and assembly language in STM32 under Keil

1, Introduction C language is intuitive, easy to use, widely applicable, efficient assembly language and less memory. The combination of the two is the best choice 2, Example Title Requirements Refer to the attachment to complete the C language call assembly functionModify the reference code and require the original assembly language ...

Posted by *Lynette on Wed, 13 Oct 2021 16:04:01 -0700

Mixed C and Assembly Language Programming for STM32 under Keil5

stay Creating STM32 Assembly Language Project Based on Keil5 On this basis, continue to learn the mixed programming of C and assembly language for STM32 under Keil5. Contents of this article: 1. Refer to the attachments to complete the C language call assembly function; 2. Modifying the code requires changing the type of Init_1 functio ...

Posted by ahmed17 on Wed, 13 Oct 2021 10:54:36 -0700

C and assembly language mixed programming of STM32 under Keil

1, Create project 1. Create new projects 2. Select STM32F103C8 3. Check device startup, otherwise an error may be reported Click Ok. 2, Programming Right click Source Group1 and add the main.c and func.s files. The code is as follows: main.c # include<stdio.h> extern void Init_1(void); int main(){ Init_1(); return ...

Posted by czs on Tue, 12 Oct 2021 17:48:08 -0700

STM32 timer matrix function implementation

catalog: 1, What is a timer matrix 2, Timer matrix principle 3, Timer matrix code implementation 4, Timer matrix verification 1, What is a timer matrix In product development, we often encounter some different timing requirements, such as key shaking elimination, LED flashing once per second and several times every few second ...

Posted by ineedhelpbigtime on Tue, 12 Oct 2021 17:25:13 -0700

Data abstraction instance based on hardware SPI

1. Write in front spi (Serial Peripheral Interface) is the Serial Peripheral Interface. Like i2c, spi also uses the bus for peripheral device communication, which is essential for embedded development. According to my previous experience, I summarize spi (mainly in the field of MCU, and Linux has mature driver equipment). The main purposes an ...

Posted by Shiki on Tue, 12 Oct 2021 13:01:04 -0700