Menu English Ukrainian russian Home

Free technical library for hobbyists and professionals Free technical library


ENCYCLOPEDIA OF RADIO ELECTRONICS AND ELECTRICAL ENGINEERING
Free library / Schemes of radio-electronic and electrical devices

HIGH-SPEED microcontrollers from DALLAS SEMICONDUCTOR. Encyclopedia of radio electronics and electrical engineering

Free technical library

Encyclopedia of radio electronics and electrical engineering / Microcontrollers

Comments on the article Comments on the article

Many new eight-bit microcontrollers (MK) have appeared on sale. They are very attractive in terms of price-to-performance ratio. However, the cost of development includes not only the price of the MK itself, but also the cost of debugging tools, which are indispensable, and software (if development does not start from scratch). This explains the commitment of domestic developers to x51-compatible MK.

Dallas Semiconductor's "High Speed" MCUs are fully software and hardware compatible with the MCS51. However, their possibilities are much wider. They are produced both without program memory and with it. The latter can be one-time (OTP EPROM) or repeatedly programmable, in which case the erasing is carried out by irradiation with ultraviolet rays (UV EPROM). Reprogrammable MKs are of the greatest interest to radio amateurs, therefore, only two members of the family, DS87C520 and DS87C530, are considered in detail in the article.

The main technical characteristics of the MK family "High Speed" are given in the table. As you can see, it consists of five modifications that differ in their capabilities. So, in DS80C320 and DS80C323 there is no internal ROM, in DS83C520 there is a mask ROM with a capacity of 16 KB, and in DS87C520 and DS87C530 - a one-time programmable or erasable ROM of the same volume with UV irradiation. External RAM on a chip is available only in the last three modifications, and a clock-calendar is available only in the DS87C530.

HIGH-SPEED microcontrollers from DALLAS SEMICONDUCTOR
(click to enlarge)

PERFORMANCE

The increase in the performance of "High Speed" microcontrollers is due to the fact that their machine cycle does not consist of 12 machine cycles, as in 87C51, but only of four. Therefore, at the same clock frequency, the simplest single-cycle instruction is executed by the DS8xC5xx MC three times faster than any x51 representative. So, at the maximum clock frequency of 33 MHz, the execution time of the DS87C520 and DS87C530 is 121 ns, which would be available for the 87C51 only at a frequency of 100 MHz. But not all instructions are executed as quickly - on average, the speed of programs increases by about 2,5 times. This is because some "High Speed" instructions in the MCU take more cycles than the 87C51.

PROGRAM AND DATA MEMORY

The on-chip program memory occupies the lower addresses in the MCU's address space. Its standard three-level protection against unauthorized access is provided. The external program memory is accessed when the program counter exceeds the maximum value of the internal memory address. Note that this maximum address can be programmatically controlled by setting three bits in the ROMSIZE SFR register - the memory size can be set to 0, 1, 2, 4, 8, or 16 KB. During the execution of the program, you can even completely prohibit work from the internal program memory and switch to work from the external one.

On the DS87C520/530 chip are both the standard 256 bytes of RAM, which can be accessed in the same way as the 87C52, and an additional 1 KB of memory. The latter is accessed using the MOVX command. This memory is treated as external, despite the fact that it is physically located on the MK chip. In the address space, it is located from 0000 to 03FF. Accesses to external memory at addresses above 03FF automatically select off-chip memory, if any. Access to the mentioned one-kilobyte RAM array can be programmatically prohibited - in this case, any access to external data memory will be performed in the same way as it is done in the MCS-51 family of microcontrollers.

MK DS87C520/530 allow software adjustment of the access time to external memory. The MOVX instruction is executed in a minimum of two machine cycles, moreover, when accessing external memory both on-chip and off-chip. However, to work with "slow" external RAM chips, the number of cycles can increase up to nine. When reset, their number is set to three.

DATA POINTERS

The standard DPTR, referred to as DPTR0, is located at addresses 82H and 83H, which makes the "High Speed" MCU compatible with the 87C51. The second pointer, located at addresses 84H and 85H, is referred to as DPTR1. Selecting a specific DPTR is done by resetting/setting a zero bit in the SFR register at address 86H. By using two pointers for "from" and "to" addresses, block transfers can be efficiently performed.

POWER MANAGEMENT

In addition to Idle and Power Down, there is another low power mode called Power Management Mode (PMM). In it, the processor continues its work without any restrictions, however, consumption is reduced by reducing the clock frequency. It is possible to reduce it by 16 or 256 times (modes PMM1 and PMM2, respectively). At a clock frequency of 11059,2 kHz in the standard "High Speed" mode, the MK consume 15,5, in the PMM1 mode - 4,8, PMM2 - 4 mA, (the latter is even less than that of the 87C51 / 52 in the Idle mode, and without stopping processor). In addition, in DS87C520/530 it is permissible to use an internal oscillator operating at a frequency of 2...4 MHz as a clock. However, the indicated frequency is unstable, and therefore this solution cannot be used in devices where accurate measurements of time intervals are required.

Decreasing the clock speed proportionally changes the serial link speed. In the "High Speed" MK, technical solutions are implemented that make it easy to eliminate this drawback.

To reduce electromagnetic radiation from the MK in cases where the ALE signal is not needed, its generation can be programmatically disabled.

SERIAL PORTS AND TIMERS

The DS87C520 and DS87C530 have two identical serial ports to the 87C51, with the second using pins P1.2 (RXD1) and P1.3 (TXD1), as well as registers SCON1 (C0H) and SBUF1 (C1H). Both ports can function at the same time, but at the same time operate at different speeds or in different modes. The second port can use only the first timer/counter to set the baud rate.

To ensure compatibility, the timers in the considered MKs use the clock frequency divided by 12 as the setting clock. However, you can also switch to the clock frequency divided by 3, which is done by setting the corresponding bit in the SFR register CKCON.

The watchdog timer resets the MC whenever it overflows. To avoid these resets, it must be periodically reset, which is only possible in a normally working system. The watchdog timer is incremented once per clock period. By setting the appropriate bits, you can set four values ​​​​of its recalculation, as a result of which the number of cycles before overflow becomes two to the 17th, 20th, 23rd or 26th power. The timer also sets the interrupt flag (if enabled by software) 512 clocks before reset.

UNDER-VOLTAGE RESET, INTERRUPT AND REAL TIME CLOCK

Reducing the supply voltage to a value below 4,13 V causes the corresponding internal device of the MK to generate a reset signal, which is held until the voltage returns to the specified level. This does not require any additional external elements or changes in the program. When the voltage drops to 4,38 V, an interrupt signal can be generated (if enabled).

MK DS87C520 and DS87C530 have six external interrupts: two standard, similar to those in 87C51, and four additional. The latter differ from the standard ones in that they operate only on the edge or fall of the interrupt signal - for INT2 and INT4, the edge is active, and for INT3 and INT5, the fall. Timer interrupts are handled similarly to the 87C52. Each timer has its own enable flag, vector, and priority.

Real Time Clock (RTC), which is equipped with MK DS87C530, allows you to store the current time, date, day of the week, month, year. To do this, it is necessary to connect a quartz resonator with a natural frequency of 32,768 kHz and a lithium battery to the MK in an appropriate way. RTCs have the ability to generate an alarm (ALARM) when the programmed time is reached, while the interrupt flag, if enabled, is set even in micro-consumption mode.

Author: A.Gorbachev, Moscow

See other articles Section Microcontrollers.

Read and write useful comments on this article.

<< Back

Latest news of science and technology, new electronics:

Machine for thinning flowers in gardens 02.05.2024

In modern agriculture, technological progress is developing aimed at increasing the efficiency of plant care processes. The innovative Florix flower thinning machine was presented in Italy, designed to optimize the harvesting stage. This tool is equipped with mobile arms, allowing it to be easily adapted to the needs of the garden. The operator can adjust the speed of the thin wires by controlling them from the tractor cab using a joystick. This approach significantly increases the efficiency of the flower thinning process, providing the possibility of individual adjustment to the specific conditions of the garden, as well as the variety and type of fruit grown in it. After testing the Florix machine for two years on various types of fruit, the results were very encouraging. Farmers such as Filiberto Montanari, who has used a Florix machine for several years, have reported a significant reduction in the time and labor required to thin flowers. ... >>

Advanced Infrared Microscope 02.05.2024

Microscopes play an important role in scientific research, allowing scientists to delve into structures and processes invisible to the eye. However, various microscopy methods have their limitations, and among them was the limitation of resolution when using the infrared range. But the latest achievements of Japanese researchers from the University of Tokyo open up new prospects for studying the microworld. Scientists from the University of Tokyo have unveiled a new microscope that will revolutionize the capabilities of infrared microscopy. This advanced instrument allows you to see the internal structures of living bacteria with amazing clarity on the nanometer scale. Typically, mid-infrared microscopes are limited by low resolution, but the latest development from Japanese researchers overcomes these limitations. According to scientists, the developed microscope allows creating images with a resolution of up to 120 nanometers, which is 30 times higher than the resolution of traditional microscopes. ... >>

Air trap for insects 01.05.2024

Agriculture is one of the key sectors of the economy, and pest control is an integral part of this process. A team of scientists from the Indian Council of Agricultural Research-Central Potato Research Institute (ICAR-CPRI), Shimla, has come up with an innovative solution to this problem - a wind-powered insect air trap. This device addresses the shortcomings of traditional pest control methods by providing real-time insect population data. The trap is powered entirely by wind energy, making it an environmentally friendly solution that requires no power. Its unique design allows monitoring of both harmful and beneficial insects, providing a complete overview of the population in any agricultural area. “By assessing target pests at the right time, we can take necessary measures to control both pests and diseases,” says Kapil ... >>

Random news from the Archive

Electric bike Smartech Felo TOOZ 12.04.2024

In a world of rapidly evolving technology, electric vehicles are becoming increasingly in demand. Thailand-based Smartech has come to market with the world's largest electric motorcycle, the Felo TOOZ, offering an impressive combination of performance, technology and range.

The Felo TOOZ electric motorcycle from Smartech from Thailand promises to impress not only with its size, but also with its characteristics. This giant on two wheels can reach speeds of up to 200 kilometers per hour and travel up to 720 kilometers without the need to recharge.

Felo TOOZ is not just a vehicle, but also a true technological flagship. Thanks to a high level of integration with the owner's smartphone, a TFT information panel and a powerful sound system, this electric motorcycle not only offers a high level of comfort, but also the ability to enjoy multimedia content even while riding.

Equipped with a 360-degree camera system, Felo TOZ provides driver safety and confidence on the road, and also has additional features such as a tire pressure monitoring system and traction control system.

Moreover, this electric motorcycle comes with a fast charger that can charge the battery from 20% to 80% in just 20 minutes. An interesting fact is that the Felo TOZ battery can also serve as a power source for external devices.

The Smartech Felo TOZ electric motorcycle is an impressive example of a vehicle that combines power, technology and efficiency. With its ability to travel a huge distance without the need for recharging and advanced safety and comfort technologies, it promises to be a serious contender in the electric two-wheeler market.

Other interesting news:

▪ Image Sensor ON Semiconductor AR0221

▪ Northerners have bigger brains

▪ First 5G smartphone

▪ Ultra-recycled foods shorten life

▪ Increasing popularity of cell phones with cameras

News feed of science and technology, new electronics

 

Interesting materials of the Free Technical Library:

▪ site section Parameters, analogues, marking of radio components. Article selection

▪ article The graces are on vacation and love is retired. Popular expression

▪ article Can animals cry or laugh? Detailed answer

▪ article Bogorodskaya grass. Legends, cultivation, methods of application

▪ article Acoustic design with JBL Speakershop. Encyclopedia of radio electronics and electrical engineering

▪ article Two-level neon signaling device. Encyclopedia of radio electronics and electrical engineering

Leave your comment on this article:

Name:


Email (optional):


A comment:





All languages ​​of this page

Home page | Library | Articles | Website map | Site Reviews

www.diagram.com.ua

www.diagram.com.ua
2000-2024