Loading

Kategory:

Basic microcontroller: 4x7 segment

Bookmark and Share
Basic microcontroller: 4x7 segment-Let's move the material segment 7 by adding 3 pieces of the same components. Ignition such as dot matrix principle, so as not wasteful port, we combine all four 7 segment data pin (pin a - dp). Common pin, we use as a pin "enable" for each digit. 7segment visible light so that all together, we do the scanning with the fourth turn alternately to enable fast timing. circuit is used (this is the view after the run) is like this (still using 7segment CC):






Yap made ​​immediately wrote in proteus and enter the following program $ regfile = "8535def.dat" $ crystal = 8 million PORTC = Output Config Config Porta = Output PORTC Segment Alias ​​Alias ​​Porta Digit Dim X As Byte, Data_digit As Byte = & B11111110 Data_digit Do For X = 1 To 4    Digit = Data_digit    Segment = Lookup (x, Data_7seg)    Waitms 1    Rotate Data_digit, Left, 1 Next X Data_digit = & B11111110 Loop Data_7seg: Data & B00111111 '0 Data & B00000110 '1 Data & B01011011 '2 Data & B01001111 '3 Data & B01100110 '4 '5 Data & B01101101 B01111101 Data & '6 '7 Data & B00000111 B01111111 '8 Data & Data & B01101111 '9 To check the process of enlarging delaynya scanningnya we can in a fragment program below Try changed to waitms 200 . Well, turns right? Download the program listing it in Bascom and proteus here (7seg) FREE One application of this component as the viewer 4x7 segment ADC readings. Let's try the circuit below (the added component is the potentiometer) Download the program listing it in Bascom and proteus here (7seg-ADC) FREE changes this will drag on the potentiometers to change the incoming voltage to the ADC. The value read ADC conversion is in the form of a voltage which is then displayed again to 4x7segment. Digit 1 is the unit value of which is the front. Digit1, 2.3 is a three-digit comma dibeakang. Thus, I hope are useful and can be used as a reference. Awaited his comments .. :)




Thanks for reading: Basic microcontroller: 4x7 segment
Related Posts Plugin for WordPress, Blogger...