-
x0 is the start button and x1 is the stop button. Y0 Y7 is 8 lights. After pressing the start button, the light 1 will turn on first, turn off after 1 second (t0 delay), and turn on the light 2 after 1 second (t1 delay), and cycle in turn. When x1 is pressed, the cycle ends.
After pressing X0, M0 is powered to 1 and self-holding, at this time, the 1-second timer T0 is timed, the T0 normally open point is closed after 1 second, the 1-second timer T1 is timed, and the T0 coil is disconnected at the normally closed point after 1 second T1 timer.
Precautions for use:
When m0 is 1, the binary number k3m10 is multiplied by 2 at the rising edge of the T0 contact and written into k3m10.
K3M10 represents the combination of 12 auxiliary relays in M10 M21, then K3M10 can be regarded as a binary number. When the program is not started, both M10 and M21 are 0.
In this case, M10 and M21 are 1, and when the rising edge of the T0 contact comes, the binary number K3M10 (1 in this case) is multiplied by 2 and written into K3M10 (2 after writing).
-
At present, the best cost-effective NEC 8-bit high-performance flash microcontroller, ** is very low.
-
It should still be a 51 microcontroller.
Its performance, for beginners, is the best.
-
This is not as good as that.,If you're a beginner, it's best to start learning from 51 single-chip microcomputer.。
Learn MCU··· I'm not afraid of you laughing... I never knew anything about microcontrollers, didn't know a little programming language... You know the word microcontroller and the programming language c··· was pulled by a person to participate in the school's circuit design competition, when the team used Wu Jianying's single-chip microcomputer development board to see the Wu Jianying single-chip microcomputer project technical lecture.
I started to learn to write programs while learning single-chip microcomputer... Some people may say that what I said is false... The first program I wrote was a 4*4 keyboard program... Here's what I was thinking:
The second thing I thought about was how to write these things program:As a result, I chose the first difficult one - 4*4 matrix keyboard began to be depressed for a few days.,The problem that has arisen:The scanning method is what I think.,The result is not scanning.,Hehe··· The result is to judge whether there is a problem with the key, and then in the programming process, I found that the button was pressed... The password is all entered... In the end, I found that the reason was that the key value of the key was not cleared... So I added a key sign to the judgment button to solve it...
Through that competition... Unconsciously, the single-chip microcomputer began to understand... And I actually know a lot about the C language... Later, the practice of writing the clock and answering device was relatively easy to solve.
Say so much! It's for friends who have a hobby in this area! In fact, it is not difficult to get started with single-chip microcomputer!
Find a design that you like but don't think you can achieve (not too complicated) and start sailing... If you don't understand, just look at the books and check the information on the single-chip microcomputer (if you want to use anything, you can find the door-to-door side)·· When you're as confused as I am, you've finished the design... I felt that I had the wrong idea before... In fact, getting started is like this unconsciously... Maybe it's because interest dulls other senses... If you have any questions, you can ask me hehe... I'm asking every day, and I should be able to help you, and when I first learn, I don't need to pay too much attention to the practicality of the circuit, but I should pay attention to the flexible use and thinking of the instructions in my own programming, and the following two things are necessary for Keil Uvision2 programming.
Ignoring the influence of temperature and other factors, the method of measuring voltage by series resistance can be directly adopted. >>>More
Just learn 51 first, the absolute entry-level, you can choose Guo Tianxiang's for the development board, it's been many years, the information is very complete, and then you can look at 32 or something.
Hello: I wrote the program:
#include >>>More
If you really want to learn, you don't need to buy a development board. Find a minimal system board, then learn something, buy components and build small circuits by yourself. Run the electronic market by yourself, build the circuit by yourself, in order to know the problem, in order to learn something, buy a development board, according to the circuit on the manual, and then put the program into it, and then the program basically understands, this is not called learning... >>>More
How is your light-emitting diode connected, if there is a power supply stringed to the light-emitting diode, the low level will be on, if it is the output port of the single-chip microcomputer, it will not be on.