• RU
  • icon Waiting For Moderation: 17
Menu

RC-5 Remote Control Tester

  • Added: 12.08.2012
  • Size: 338 KB
  • Downloads: 0
Find out how to download this material

Description

drawings, inventory

Project's Content

Name Size
icon 3584.rar
338 KB
icon course_by_microprocessor_equipment
icon chip.cdw
53 KB
icon RC_5_Remote_Control_Tester_.doc
825 KB

Additional information

Contents

Introduction

1 Development and description of electrical structural diagram

2 Development and description of electrical functional diagram

3 Description of the element base

a) AT90S microcontroller

b) ILMS IR receiver

c) Indicator CA56-12SRD

4 Description of electrical schematic diagram

5 Time diagrams of device operation

Conclusion

List of literature used

Appendix A

Appendix B

Introduction

ATMEL Corp. is one of the world leaders in the production of a wide range of non-volatile memory microcircuits, SOUNDmicrocontrollers and programmable logic microcircuits, launched the development of RISCmicrocontrollers in the mid-1990s, using all its technical solutions accumulated by this time.

The concept of new high-speed microcontrollers was developed by a group of developers of the ATMEL research center in Norway, whose initials then formed the AVR brand. The first AVR AT90S1200 microcontrollers appeared in mid-1997 and quickly gained consumer satisfaction.

The AVR architecture, based on which the AT90S microcontrollers are built, combines a powerful Harvard RISC processor with separate access to program and data memory, 32 general-purpose registers, each of which can operate as a register-battery, and a developed system of fixed 16-bit length instructions. Most commands are executed in a single machine cycle, while executing the current command and sampling the next command, which provides performance up to 1 MIPS per MHz of clock frequency.

32 general purpose registers form a fast access register file where each register is directly associated with the ALU. In one cycle, two operands are selected from the register file, an operation is performed, and the result is returned to the register file. ALU supports arithmetic and logical operations with registers, between register and constant or directly with register.

The register file is also available as part of the data memory. 6 of the 32x registers can be used as three 16-bit pointers for indirect addressing. Senior microcontrollers of the AVR family have a hardware multiplier in the ALU.

The basic AVR instruction set contains 120 instructions. Bit instructions include instructions for setting, cleaning, and testing bits.

All AVR microcontrollers have a built-in FLASH ROM with the possibility of intra-circuit programming through a serial 4-wire interface.

The periphery of the AVR MK includes: timer counters, pulse width modulators, external interrupt support, analog comparators, 10-bit 8-channel ADC, parallel ports (from 3 to 48 input and output lines), UART and SPI interfaces, watchdog timer and power-on reset device. All these qualities turn AVRmicrocontrollers into a powerful tool for building modern, high-performance and cost-effective controllers for various purposes.

Within the framework of a single basic architecture, AVRmicrocontrollers are divided into three subfamilies:

Classic AVR - the main line of microcontrollers with the performance of individual modifications up to 16 MIPS, FLASH ROM programs 2-8 KB, EEPROM data 64-512 bytes, SRAM 128-512 bytes; mega AVR with 1-16 MIPS performance for complex applications requiring a large amount of memory, FLASH ROM programs 4-128 KB, EEPROM data 64-512 bytes, SRAM 2-4 KB, SRAM 4 KB, built-in 10-bit 8-channel ADC, hardware multiplier 8x8;

tiny AVR - low-cost microcontrollers in the 8-pin version have a built-in power supply voltage control circuit, which allows you to do without external supervisor chips.

AVR microcontrollers support sleep mode and micro-consumption mode. In sleep mode, the central processor core stops, while the registers, timer counters, watchdog and interrupt system continue to function. In micro-consumption mode, the contents of all registers are stored, the clock is stopped, all functions of the microcontroller are prohibited until an external interrupt or hardware reset signal is received. Debugging tools. ATMEL offers AVRstudio software for debugging programs in simulation mode on a software debugger, as well as for working directly with an intra-circuit emulator. AVRstudio is available from the ATMEL WEBPage, contains an assembler and is designed to work with ICEPRO and MegaICE emulators. A number of companies offer their versions of Sycompilators, assemblers, linkers and loaders for working with microcontrollers of the AVR family. Like MICROCHIP products, ATMEL microcontrollers are widely used in Russia and, as a result, are programmed by many domestic programmers. A number of Russian companies also offer various hardware for debugging AVRmicrocontrollers.

The result of this course project should be a tester for checking RC5 remote controls (hereinafter the tester), for which a structural diagram of the tester will be developed and an explanation of the features of its construction will be created. A functional diagram of the tester will also be developed, on which attention will be paid to some units, and finally, an electrical schematic diagram of the tester will be built with justification for the selection of elements.

A description will also be given of the operation of the circuit and the program necessary for the operation of the microcontroller.

Drawings of the electrical schematic diagram and structural diagram in accordance with the ESKD standards will be presented in the graphic part.

.

Description of electrical schematic diagram

Based on the functional circuit, we build an electrical circuit diagram.

The RC5 remote control tester is built on Atmel's AT90S2313 microcontroller [2]. The outputs of the microcontroller ports withstand flowing current up to 20 mA, which allows you to directly connect LEDs to them. The signal received and demodulated by the IR receiver B1 is output. 3 (PD1) of the DD1 microcontroller configured as an input with an internal "pull-up" resistor. The blocking capacitor C1 shall be located as close as possible to the supply terminals of the IR receiver.

The HG1 LED is connected to port B (pins 12 through 19) of the DD1 microcontroller as recommended in [3]. Resistors R4 to R11 limit current. Dynamic indication is organized by alternately setting the log level. 0 on terminals 7 - 9, 11 (PD3 - PD6) of microcontroller DD1, to which basic circuits of transistors VT1 - VT4 switching anodes of LED indicators are connected.

The address and code of the command received by the tester, the indicator displays in four hexadecimal digits. Two seniors - the address of the device to which the command was sent, two junior - its code. Note that if Ctrl = 1, the highest hexadecimal digit of the command code will be incremented by 4. This is due to the peculiarities of the program decoding procedure.

The program begins decoding by detecting a pause of more than 3.5 ms in the received signal, and considers the first pulse received after that to be a start pulse. After receiving, the routine returns the address part of the command in variable A, its code in variable C.

If no pulse is received within 131 ms, the routine terminates by setting variables A and C to 255.

Further, the program separates the upper and lower bits of the address and command code, putting them in variables K (1) - K (4), and using the Di function converts the obtained values ​ ​ into hexadecimal digit codes for display on a seven-segment indicator. The luminous element is co-answered by 0 in the code bit extinguished by - 1. The signals are distributed over the microcontroller terminals based on the layout convenience of the PCB. In the dynamic indication cycle, Waitms statements specify the intervals (in milliseconds) during which each digit is output.

The instrument can be assembled on a single-sided 65x55 mm PCB shown in Figure 3. The wire straps under the HG1 indicator are mounted first. In the absence of installation errors, the design does not need to be established.

Instead of the IR receiver ILMS5360, SFP506 or TSOP1736 is suitable. Quartz resonator ZQ1 - in any design, but mandatory for frequency

10 MHz, otherwise program adjustment will be required. The BQM326RD can be replaced by CA5612SRD with larger digits or four separate common anode indicators. In the first case, it is enough to take into account the increased dimensions of the indicator (the base is the same), in the second - a significant correction of the printed installation will be required. As a stabilizer DA1, any with an output voltage of 5 V. Capacitors C2, SZ - ceramic KM5, oxide C1, C4 - K5035 or imported are suitable. Resistors - MLT 0.125.

Conclusion

During the course design, the Electrical Circuit Tester diagram was developed for the RC5 remote control check, which was preceded by the development of the structural and electrical functional diagram according to the specification. The time diagrams of the tester were also described. Application of AT90S2313 microcontroller

made it possible to create a universal multifunctional device with minimal economic costs.

A description of the operation of the circuit was also given and the program necessary for the operation of the microcontroller is given.

The graphic part shows the drawings of the electrical schematic diagram and structural diagram in accordance with the ESKD standards.

Free downloading for today

Update after: 18 hours 56 minutes
up Up