What single chip computer is fast in calculation
Publish: 2021-05-20 21:39:29
1. Because 51 single-chip microcomputer is 8-bit, it can only be calculated by the maximum 8-bit, that is to say, if it exceeds 8-bit (256), the intermediate value will be stored in the register, so you have a large amount of calculation like you. Some single-chip microcomputers, like 32-bit, just complete a multiplication instruction, while 51 needs many, and in terms of execution time, 51 belongs to low frequency, which is a bit slow, Because 51's instruction execution cycle is relatively slow
2. long unsigned int pp1=0;
is the declaration method wrong? It's signed long int PP1 = 0
is array m [] declarative? You have to perform forced type conversion before operation. Your expression just overflows. For example, m [4] * 6553665536 is 0x10000, which is no longer 16 bit int data. It's strange that there is no error
so try this:
PP1 = (unsigned long) m [0] + (unsigned long) m [1] * 16 + (unsigned long) m [2] * 256 + m [3] * 4096 + (unsigned long) M [4] * 65536 + (unsigned long) m [5] * 1048576;
is the declaration method wrong? It's signed long int PP1 = 0
is array m [] declarative? You have to perform forced type conversion before operation. Your expression just overflows. For example, m [4] * 6553665536 is 0x10000, which is no longer 16 bit int data. It's strange that there is no error
so try this:
PP1 = (unsigned long) m [0] + (unsigned long) m [1] * 16 + (unsigned long) m [2] * 256 + m [3] * 4096 + (unsigned long) M [4] * 65536 + (unsigned long) m [5] * 1048576;
3. "Books are the ladder of human progress". From ancient times to the present, books have been sought after by countless people, and they are inseparable from us
the years are long and boring. When I was a child, I always felt that my life was boring and cold. I lacked a torch to light me up. Only when I found that "the man was in the dim light", it was book
books are good teachers and helpful friends. They accompany my growth and record every bit of my life
when I was very young, I was illiterate, so I asked my parents to read it to me. With the passage of time, I have grown into a young man with a little literary talent, and the number of words I knew graally increased, and naturally more books I read. From the journey to the west, I read about the difficulties and obstacles encountered by the four monks and disciples of Tang Dynasty; From the romance of the Three Kingdoms, I read out the heroes in troubled times. From Chinese literature to world literature, reading how steel was tempered, I read out Paul's revolutionary ideal of never falling behind. Read "gone with the wind", I always remember the last sentence in the article: "anyway, tomorrow is a new day." Since ancient times, from the east to the west, books have always accompanied me to grow day by day, telling me thousands of truth, is my lifelong teacher, is my inseparable friend
"the influence of people is short and weak, and the influence of books is wide and far-reaching." This is a famous saying of Russian poet Pushkin. A book will be read by thousands of people, and everyone will pass on the spirit of the book like a spark. Therefore, the book will affect the lives of thousands of people
the merciless years are blessed with books. In these merciless and long years, books always light up our way forward, making the merciless years warm and the long years full. A book is like a gentleman who conveys his good conct to us without any harm
may we move forward in the sea of books
may we have our own space in the world of books
may we soar freely in the sky of books and fly to a wider world.
the years are long and boring. When I was a child, I always felt that my life was boring and cold. I lacked a torch to light me up. Only when I found that "the man was in the dim light", it was book
books are good teachers and helpful friends. They accompany my growth and record every bit of my life
when I was very young, I was illiterate, so I asked my parents to read it to me. With the passage of time, I have grown into a young man with a little literary talent, and the number of words I knew graally increased, and naturally more books I read. From the journey to the west, I read about the difficulties and obstacles encountered by the four monks and disciples of Tang Dynasty; From the romance of the Three Kingdoms, I read out the heroes in troubled times. From Chinese literature to world literature, reading how steel was tempered, I read out Paul's revolutionary ideal of never falling behind. Read "gone with the wind", I always remember the last sentence in the article: "anyway, tomorrow is a new day." Since ancient times, from the east to the west, books have always accompanied me to grow day by day, telling me thousands of truth, is my lifelong teacher, is my inseparable friend
"the influence of people is short and weak, and the influence of books is wide and far-reaching." This is a famous saying of Russian poet Pushkin. A book will be read by thousands of people, and everyone will pass on the spirit of the book like a spark. Therefore, the book will affect the lives of thousands of people
the merciless years are blessed with books. In these merciless and long years, books always light up our way forward, making the merciless years warm and the long years full. A book is like a gentleman who conveys his good conct to us without any harm
may we move forward in the sea of books
may we have our own space in the world of books
may we soar freely in the sky of books and fly to a wider world.
4. C8051F series up to 100 MIPs, 70% of the instructions for a single instruction cycle, mixed signal, 51 core. C8051F120 has been overclocking using 120m.
5. Ordinary addition, subtraction, multiplication and division, with the general enhanced 51 microcontroller or AVR microcontroller is enough
operation time is less than 1 ms
If trigonometric function operation, about a few MS
a large number of floating-point and trigonometric function operation, it is recommended to use stm32 microcontroller
operation time is less than 1 ms
If trigonometric function operation, about a few MS
a large number of floating-point and trigonometric function operation, it is recommended to use stm32 microcontroller
6. Stm32f407 has 168m main frequency, larger internal RAM and ROM, stm32f409
and stm32f7 series, which can definitely meet your requirements
and stm32f7 series, which can definitely meet your requirements
7. If you are a beginner, that kind of MCU is the same. 51 Series SCM information is easy to find.
8. Specifically, there are only a few large domestic factories. To be fair, the gap between domestic GM series and foreign ones and Taiwan is not big. It mainly lies in the degree of customer recognition and marketing
for example, I do Huada MCU. At present, 32-bit MCU with 64 pins or less can completely replace foreign MCU. For example, St, ti430, PIC, etc. At present, the users of our films are mainly consumer and simple control procts. For example: temperature controller, power bank, electric toys, fire probe, simple motor control, etc. For instrial use, it can't really be used abroad at present. This route mainly lies in the fact that engineers are used to it. Unless the company requires cost rection, they will not study domestic procts. After all, the recognition of foreign brands and engineers is their greatest wealth
in the future, domestic single-chip computers will graally develop towards higher main frequency and lower power. This route is relatively long-term and has a long way to go. The cost advantage of instrial promotion is not the main consideration direction, but the stability and the accumulation of word-of-mouth brand is the long work
domestic engineers want to use domestic ones. After all, using China's own MCU is not only cheaper, but also cheaper for domestic manufacturers. Engineers will feel like "grandfather" service
in summary, there is no mystery about domestic MCU. China has been able to research and develop its own procts and stably proce general-purpose procts. Domestic procts can completely eliminate the need for foreign ones. Let's look at the market promotion one after another. When the engineers approve it, we are really successful. Foreign brand monopoly profits are coming to an end. This process is long but inevitable, because China, the largest commercial country in the world, will cut down the prices of procts all over the world, so that people all over the world can enjoy good and cheap goods and services. That's how business thinking works in China. It's not the bandit logic of noble foreigners who study high-tech, register patents, and monopolize profits. From this point of view, China is the hope of the world.
for example, I do Huada MCU. At present, 32-bit MCU with 64 pins or less can completely replace foreign MCU. For example, St, ti430, PIC, etc. At present, the users of our films are mainly consumer and simple control procts. For example: temperature controller, power bank, electric toys, fire probe, simple motor control, etc. For instrial use, it can't really be used abroad at present. This route mainly lies in the fact that engineers are used to it. Unless the company requires cost rection, they will not study domestic procts. After all, the recognition of foreign brands and engineers is their greatest wealth
in the future, domestic single-chip computers will graally develop towards higher main frequency and lower power. This route is relatively long-term and has a long way to go. The cost advantage of instrial promotion is not the main consideration direction, but the stability and the accumulation of word-of-mouth brand is the long work
domestic engineers want to use domestic ones. After all, using China's own MCU is not only cheaper, but also cheaper for domestic manufacturers. Engineers will feel like "grandfather" service
in summary, there is no mystery about domestic MCU. China has been able to research and develop its own procts and stably proce general-purpose procts. Domestic procts can completely eliminate the need for foreign ones. Let's look at the market promotion one after another. When the engineers approve it, we are really successful. Foreign brand monopoly profits are coming to an end. This process is long but inevitable, because China, the largest commercial country in the world, will cut down the prices of procts all over the world, so that people all over the world can enjoy good and cheap goods and services. That's how business thinking works in China. It's not the bandit logic of noble foreigners who study high-tech, register patents, and monopolize profits. From this point of view, China is the hope of the world.
9. Since the launch of stc15 series, 15 series is the fastest. Of course, in addition to stc15f104e series and stc15f204ea series, these two series launched Y3 kernel at the beginning, and later upgraded Y5 kernel, which is about 20% faster than the original Y3 kernel. Therefore, the fastest STC is the new proct model of stc15 series
10. The speed of MCU is calculated by MIPS (1mips is equivalent to 1 million instructions per second). The speed of general AT89S52 MCU (12m crystal oscillator) is 1mips, Philips MCU can reach 2mips under the same crystal oscillator, Huabang 51 can reach 3-4mips, and STC 51 can reach 12mips,
considering the influence of crystal oscillator, according to the existing data, the speed of MCU can reach 1mips, The fastest choice should be between STC and C8051F series microcontrollers. In theory, STC can reach up to 90mips (I think it's very mysterious), and C8051F can reach 25-100mips.
considering the influence of crystal oscillator, according to the existing data, the speed of MCU can reach 1mips, The fastest choice should be between STC and C8051F series microcontrollers. In theory, STC can reach up to 90mips (I think it's very mysterious), and C8051F can reach 25-100mips.
Hot content