Friendly Summary: In the main topic mentioned below: In that old post, in fact, its problem is nothing more than mixing C++ programming and some special keywords of C51. For us who develop single-chip microcomputers, I think we will face these two problems sooner or later, but we cannot ignore that C is still the only popular language in the single-chip microcomputer world for a long time to come. So, what would you do to not exclude C++ and special machine platforms, but to better and more smoothly face the fact that "single-chip microcomputers, only C cannot be broken"? Welcome to discuss. This moderator does not have much else, but he has a lot of chip coins. I will spend all my wealth just for your wonderful answer! [/quote]You want to specify the address of the variable? In fact, it needs a shared memory mechanism
Here, I apologize to the authors of these old posts at once: In order to facilitate my memory, I added some words before the title of each old post, namely CHECKED MARKED LEFT CHECKED means I have read it; MARKED means I have dug into this old post, which is what I am doing now. LEFT means I will MARKED it later, but I will mark it for today. [/quote] @dcexpertmicropython program optimization example
from machine import Pin import time led = Pin('A13') N = 200000 t0 = time.ticks_us() for i in range(N): led.on() led.off() t1 = time.ticks_us() dt = time.ticks_diff(t1, t0) fmt = '{:5.3f} sec, {:6.3f} usec/blink : {:8.2f} kblink/sec' print(fmt.format(dt * 1e-6, dt / N, N / dt * 1e3))
Currently, wearable devices are everywhere, and more and more people are paying attention to health and joining the ranks of sports. The Bluetooth base station designed for smart running shoes is mainly used in school classrooms and gyms. Taking school classrooms as an example, schools and parents pay attention to students' daily exercise and learning, combining work and rest. Students wear smart shoes and place Bluetooth base stations in the classroom. Even without using their phones, the daily exercise data of each student can still be collected. When students are in class, the base station automatically connects to the smart shoes via Bluetooth and obtains the number of steps, and stores the student ID and the number of steps. After a day's class, the teacher can use the PC software to check the students' daily situation. During class, the teacher can also use the PC software to control the connection to the designated smart shoe device.
@cruelfoxChatting about “bootstrap” in amplifier circuitFreeRTOS Study Notes (5) Interrupt and Task Switching@181084431TLP3547 Evaluation Board Evaluation - Performance and Stability Test Evaluation I recently revisited SDRAM programming and have some experience to write about. Someone once said that if you can write SDRAM separately, you can basically be sure that you have reached the elementary level of FPGA programming. I won't discuss whether this is right or not, but I always thought that it was difficult to drive SDRAM with FPGA, and I didn't insist on it later, so I put it aside for a long time. Recently, I saw the AX309 board from a friend (I am not advertising, if you are interested, search it yourself at night). The relevant experience will involve this thing, so I want to refer to other people's experience and write about my own experience. If there is anything wrong, please correct me.
@wenyangzengDigital capacitance meter based on GD32F350@RF-刘海石DIY RF Power Amplifier - Records the entire processSTM8/32 classic books, source code, applications, and videos are free! There are also a large number of development boards that can be borrowed for free! [quote]The STM32 series is based on the ARM Cortex-M3 core designed for embedded applications that require high performance, low cost, and low power consumption. To be frank, the STM series chip is one of the most widely used MCUs at present! After two months of collection, Xiaoguan has made a major arrangement of EE resources. Classic books, source code, applications, and teaching videos are listed for free download. In addition, the EE development board mobile station also has some good STM development boards that can be borrowed for free for two months. Everyone can communicate with each other. In the future, if you need any information or resources, or have any difficulties in the project and want to find a collaborator, you can send a private message to the editor, and Xiaoguan will do his best to help you solve it! No more nonsense, here are the resources (some routine files are large, it is recommended to use the download tool to download)!