ENCYCLOPEDIA OF RADIO ELECTRONICS AND ELECTRICAL ENGINEERING Microcontroller module on ATmega8 in TQFP package. Encyclopedia of radio electronics and electrical engineering Encyclopedia of radio electronics and electrical engineering / Radio amateur designer For those who want to integrate the microcontroller into the equipment being developed or already in operation, I offer a single-sided printed circuit board measuring 55x40 mm, on which the ATmega8A-AU microcontroller, popular among radio amateurs, is mounted together with a rectifier and a power supply voltage stabilizer in a miniature TQFP package. The advantage of such a package - its small size - is also a disadvantage, primarily due to the pin spacing of 0,8 mm, which is too small for convenient wiring of printed conductors on a self-made printed circuit board. In the proposed module, the scheme of which is shown in Fig. 1, the pins of all ports of the microcontroller are wired to XP1-XP4 connectors with a pin pitch of 2,54 mm, to which you can conveniently connect all the necessary external circuits. The PC1-PC0 lines are connected to the XP5 connector, which have an alternative function of the inputs of the ADC built into the microcontroller, as well as two more of its inputs - ADC6 and ADC7. This connector can be used to supply analog signals, the voltage of which lies in the range of 0...+5 V, requiring digital processing in the microcontroller. Pins of connector XP1 not used for this purpose (except 2 and 4) can serve as ordinary digital inputs or outputs. An analog temperature sensor LM4Z (BK6) is already connected to pin 335 of the connector and the ADC1 input of the microcontroller in the module, but if this sensor and resistor R2 are not installed, then external analog signals can be applied to the ADC6 input. The XP2 connector contains the circuits necessary to connect the programmer to the microcontroller. In a programmed microcontroller, they can also be used for other purposes, for example, to connect an indication and control unit. This is especially convenient if there are eight indicators and eight buttons in this block. For example, in the finished design, access to the microcontroller module is difficult, but the display unit is easily accessible, as it is located on its front panel. If in such a case it becomes necessary to reprogram the microcontroller, the device does not have to be completely disassembled to get to the programming connector. You can connect the programmer to the cable disconnected from the display unit. The main function of the circuits routed to the XP3 connector is discrete I/O. But if necessary, you can connect a quartz resonator to its contacts 5 and 7, which sets the clock frequency of the microcontroller. Pins 1 and 3 have an alternative function of the outputs of the capture and compare units, to which the PWM signals generated by the microcontroller can be output. Pins 4 and 6 can serve as inputs of the analog voltage comparator built into the microcontroller, and pins 2 and 8 can serve as the capture input of the timer T1 and its counting input, respectively. The PD4-PD0 lines of the microcontroller are connected to the XP4 connector. Alternative functions of the PD0 and PD1 lines (pins 4 and 2) are RXD input and TXD output, respectively, which can be used to communicate with the computer's COM port. However, they must be connected to a computer through an appropriate level converter, built, for example, on a MAX232 chip. Pins 1 and 3 can serve as inputs for an external interrupt request of the microcontroller program, and pin 5 can serve as a counter input for the TO timer. +6 V voltage from the voltage regulator DA5 available on the board is output to pin 1. In the case of manufacturing a board without a stabilizer (which will be discussed below), this pin can be supplied with the same microcontroller supply voltage from an external source. Pins 7 and 8 are a common wire. At the control point XT1, you can measure the internal exemplary voltage of the ADC of the microcontroller with a voltmeter with a large input resistance. An external reference voltage can also be applied here.
A drawing of the printed conductors of the board and the arrangement of elements on it is shown in fig. 2. On the side of the printed conductors, two insulated wire jumpers must be installed. It is recommended to turn on the module for the first time without soldering the jumper connecting pin 6 of the XP4 connector with the L1 choke output. Having applied an alternating voltage of 1 ... .4 V to the diode bridge VD9-VD15 from any suitable step-down transformer, you should measure the DC voltage between pins 6 and 7 of the XP4 connector. It should not differ from 5 V by more than 0,25 V. Only then can the jumper be soldered. A more correct technique is to mount the entire board, with the exception of the microcontroller, and check the supply voltage directly on the contact pads intended for its power outputs (4, 6 - +5 V; 3, 5, 21 - common wire). Only after that, install the microcontroller on the board. If you intend to use the module in a device that already has a stabilized 5 V voltage source with sufficient power reserve, then the dimensions of the module board can be reduced to 40x40 mm by cutting it as shown in fig. 2 dashed lines. The rectifier removed in this case with an integrated voltage regulator in the circuit of fig. 1 are to the left of the dashed line. Author: A. Zhdanov See other articles Section Radio amateur designer. Read and write useful comments on this article. Latest news of science and technology, new electronics: The world's tallest astronomical observatory opened
04.05.2024 Controlling objects using air currents
04.05.2024 Purebred dogs get sick no more often than purebred dogs
03.05.2024
Other interesting news: ▪ Smart guide vest for the visually impaired ▪ Super strong gold discovered ▪ The secret to a good sense of rhythm in musicians ▪ New synchronous boost converter chipsets News feed of science and technology, new electronics
Interesting materials of the Free Technical Library: ▪ section of the Electrician website. PUE. Article selection ▪ article International economic relations. Crib ▪ article Why are cranberries and many other berries sour? Detailed answer ▪ article Yellow pod. Legends, cultivation, methods of application ▪ article Antenna at 144...146 MHz. Encyclopedia of radio electronics and electrical engineering ▪ article Water is not wet. Focus Secret
Leave your comment on this article: All languages of this page Home page | Library | Articles | Website map | Site Reviews www.diagram.com.ua |