This is an octal counter, the code is as follows:module counter_8 (clock,clear,q);input clock, clear;output[2:0] q;reg[2:0] q;always @(posedge clock or negedge clear)begin if(!clear)q=0; elseq = q +1;...
Low power consumption, what is it all about?
Low power consumption has always been a battleground for major chip manufacturers. Since March this year, many products based on M0 and M3 cores have sud...
I wrote an IIC stream interface driver to read and write EEPROM 24C02 (U1) and another IIC interface device (U2). The A0A1A2 addresses of these two devices are different, and they use round-robin meth...
[font=黑体][size=3][p=30, 2, left][font=黑体][size=3]I made a power meter using msp430g2553+AD10 voltage acquisition+12864 power display[/size][/font][/p][/size][/font]:victory:...
The development board is ML507, the chip is Fx70t, and the Ethernet port of the board is directly connected to the Ethernet port of the desktop computer with an Ethernet cable. The connection indicato...
On April 19, it was reported that Alibaba DAMO Academy is developing a neural network chip, Ali-
NPU
, which is mainly used for
AI
reasoning calculations such as image and video analys...[Details]
1. Purpose In actual product release, if the program stored in the MCU Flash is not protected, some illegal companies may read the program in the Flash through an emulator (J-Link, ST-Link, e...[Details]
Nowadays, everyone is saying that "technology is people-oriented". The essence of the development of technology is to serve the improvement of the quality of life of human beings. Automated driving...[Details]
In 2018, the National Development and Reform Commission issued a new photovoltaic subsidy policy. The benchmark on-grid electricity price was significantly reduced, the return on investment decreased,...[Details]
The analog watchdog of the ADC is used to check if the voltage is out of bounds. It has two upper and lower bounds, which can be set in the registers ADC_HTR and ADC_LTR respectively. The library fun...[Details]
The pins of stm32 have two uses: GPIO (general purpose io) and AFIO (alternate function io) For some pins (depending on the chip), neither of these two uses exists. For example, in 64-pin products, O...[Details]
The clock system of STM32 can be directly summarized in a diagram (from the STM32F10X reference manual). The following is an analysis of this diagram 1. STM32 input clock source 1.1 Function of cl...[Details]
I have encountered many problems when tinkering with LD driver recently. I will record them one by one below. Otherwise, who will remember who in five hundred years? 1. Configuration issues of multi-...[Details]
Each I/O port of the AVR microcontroller corresponds to three registers: DDRx, PORTx and PINx, where DDRx is the data direction, i.e. input or output; PORTx is the state of the internal pull-up r...[Details]
Pay attention to whether the new lock matches the old door Smart locks have many advantages over traditional mechanical locks. Although the domestic penetration rate is not high, with the strength...[Details]
The STC12C5412AD microcontroller is an enhanced 8051 standard 51 series microcontroller. It is 12 times faster than the ordinary 8051 and can be programmed on a home computer without an emulator. ...[Details]
From early June to November 2017, MSO 5 has been launched with a stunning temperament and appearance. From wider channel selection, more powerful functions, more fashionable touch screen, unprecedent...[Details]
An example of Samsung S3C/S3P/S3F9XXX series MCU implementing table lookup operation ; to implement table lookup operation, you must first define the table address, there are two ways t...[Details]