00:06This video demonstrates how to create a binary-to-decimal decoder, from 0 to 9, using the
00:12The 7447 is a decoder integrated circuit that converts binary-coded data into
00:17decimal, to activate a 7-segment display.
00:24This shows that each segment of the display is in binary and its decimal equivalent.
00:29and the number that appears on the display, the following image shows the configuration
00:33From a common anode, which is positive, and a common cathode, which is negative, the ignition is observed.
00:38and the configuration of each LED segment.
00:43To do this we do the programming, we write numeric include 16 f84, here we include the
00:50microcontroller, then we write fuses numeral xt, it mainly refers to a
00:56External oscillator configuration for PIC microcontrollers, NOT, is short for disable
01:02The Watch Deck Timer, for PIC hardware, is a safety timer that resets
01:07the chip if the program crashes.
01:11We write numeral uc, from iClock to one kilohertz, this for the oscillation of the chip.
01:19Next, we write, numeral by port b equal to 0x06, is the identifier for the
01:24port b, at location 0x06, we also set a variable i, for the loop
01:30For, next we go to the main function, void main void, between braces, we type set
01:38tris b, 0x00, here the output on port b is defined, disable interrupts global, serves
01:50To disable interrupts when a critical piece of code is running, we do
01:55an infinite while true loop, we open braces, inside it we establish the for loop,
02:00i equals 0 and less than or equal to 9, plus, plus, i, means if it is repeated while i is less than
02:06or equal to 9, we wait 50 milliseconds, then for the topic raised.
02:13We will change to 2000 milliseconds, we write, port b equal to i sets, the value of i is
02:20It takes out port b and varies from 0 to 9.
02:26Once the program is written and compiled, it can be seen that it is correct.
02:37Let's go to Multisim; in Multisim we develop the circuit. To do this, we click on PIC.
02:42We select the 16F84 microcontroller, choose a name, 7sec3, and check the box to be able to
02:51Select a .hexadecimal file, in project we write 26, and accept.
03:10Next, we go to BASIC and select a 5-volt DC power supply.
03:23We also looked for ground, earth, and selected another 5-volt source.
03:32Let's go to indicators; in this section, we select a common anode 7-segment display, yellow.
03:48In the digital section, we look for the 7447 encoder, and another 5-volt power supply.
04:03We closed and made the connections.
04:39We select the pic, click, and upload the hexadecimal file.
05:01and we press play to simulate, it is observed that it is correct in the sequence.
05:13That's all. If you found the video helpful, don't forget to subscribe.
Comentarios