Posted on 11 sep 2018 by Admin Comments 2
Introduction :
You know they microcontroller IC AT89C51 / AT89C2051 is its microcontroller IC ATMEL, the port (created from a group of pins) on the IC to operate in accordance with the statement by the editor and you have stored in memory its. Thus with the statements made by you compose chapters-the-thing-control, and it's through the ports on the group of IC pins You can use it to control other devices. Is simpler than using the command for the volts on pins high at times down to toggle the LED lights mounted advertising boards. That is the extent to which we will mention in this article beginning. You see the image is made up of multi-colored LED, the LED will turn off the opening of the effects created for the ad table lamps.
You used the word assemble multiple colored LED, IC and microcontroller used to make this LED flashes, or create letters run right, change color font, font emanates light, thereby narrowing to ... cause a unique effect for the advertisement board lights of the store. As far as I know, this topic which is very much preferred you, right?
Photographs showed Open letters are created from Led color. Table lamps used a microcontroller IC transistors made with the end makes the blinking LED has many forms, looks very refreshing eyes, you like it?
This figure shows the LED lamp is used for advertising table lamps.
An example : With IC AT89C51 with 40 feet, we have 4 ports, which are ports P0, P1, P2 and P3. And with 20 pins IC AT89C2015, has 2 ports P1, P3 (You xemm figure).
Learn IC 89C51 (they 89Cxxxx)
We try to learn the use of ICs will be used in this article, AT89C51.
* Legs 20 for connecting masse, on the road connecting leg 40 to 5V power (5V source must have good stability).
* Leg 18 and leg 19 connected to the frequency for quartz clock (clocks are like the heart of microcontroller IC).
* Leg 9 Reset the impact, it sets the initial state IC.
* Legs 31 (when set at high pressure) is used to confirm the use of internal memory.
* Legs 29, 30 can be left blank if you do not add external memory.
* Group 8 feet 32, 34, 35, 36, 37, 38, 39 constitute a data entry port, named port 0 (Port 0).
* Group 8 foot 1, 2, 3, 4, 5, 6, 7, 8 form data entry port, named Port 1 (Port 1).
* Group 8 feet 21, 22, 23, 24, 25, 26, 27, 28 forming a data entry port, named port 2 (Port 2).
* Group 8 feet 10, 11, 12, 13, 14, 15, 16, 17 forming a data entry port, named port 3 (Port 3).
Learn the functional blocks of the IC AT89C51 (You see figure) :
In IC, there are:
* The volume oscillator (OSC) used to generate the clock, the clock will be used to operate the activities of microcontroller IC. Frequencies obtained in quartz (mounted on pins 18-19). Here, we use 12MHz quartz.
* The central control block (CPU), it runs the statements contained in EEPROM memory and control all activities of the IC.
* In IC with data transmission lines and address BIT format, it is controlled with the BUS CONTROL block.
* In the IC circuit 2 TIMER0 and TIMER1 clock. Here can also count on receiving pulses from the foot T0, T1
* You can use the external interrupts (interrupt) to stop the program and for running the program breaks.
* IC has two organic memory, which is memory EEPROM (4Kbyte capacity) memory and SRAM (128byte capacity).
+ Memory EEPROM memory used by the statements were prepared and loaded to You IC (possibly deleted and reloaded several times).
+ Memory SRAM memory used as an intermediary, it also has the memory modules used exclusively for the IC hardware.
Practical circuit:
To use this IC, you just assemble outside a little more basic accessories as follows:
In the circuit :
* On 18-19 feet, you mount the frequency quartz X1 (12MHz), using thermal capacitor C2, C3 (33pF).
* On foot 9 mounted Reset circuit with resistors R9 (8.2K) and capacitor C1 (10uF). S1 and R8 (220), as the Reset button.
* On 8 pins of P0 port mount resistors RB1 8 bar (10Kx8) used to hang pressure.
* Legs 31 for connecting to the 5V power line (validation for user memory).
* You can write a process for manufacturing chu7o7g pulsed signals on pins P1.0.
Power supply circuit board for advertising with floor lamps is the transistor end (you see figure):
* Use 4 diode (1N4007x4) bridge adapter, AC change the current one-dimensional.
* Use a large capacitor C1 (1000uF) to stable DC power line (about 15V, at no load).
* Use a 3-pin voltage regulator IC 78xx study (7805) for a 5V power lines with high stability, giving IC AT89C51.
* Use chemical C2 capacitor (10uF) to extinguish the fire self-oscillation phenomenon can arise in IC 7805.
Here, 15V power lines (power supply can be used for advertising Led Table lamp, with the kind of circuit that uses transistors finish), it creates a stable 5V power lines used to supply power to the IC AT89C51.
Analyzing the practice circuit:
Introduction boron loaded :
Circuit board diagram programmed into the AT89C51 EEPROM memory :
Practical circuit 1 :
Practical circuit 2:
Practical Circuit 3 :
Practical circuit 4 :
Practical circuit 5:
Practical circuit 6:
Assembler assembly process.
Editor and compiler.