Sunteți pe pagina 1din 12

Programming the PIC 13 PIC Basic Pro

Lessons PICBasic year


Multiplex word meaning in a short period of time more than one (multiple) the
fulfillment of transactions. Electronic, alakasda yanltlarak feature image detection
systems used mainly focuses on the eyes. Absolutely out of our topic kmaktadr
other relevant matters, but our present. For example, a single cable of mutual
communication a multiplex study.

We were told of the study benefited Multiplex eye image sensing capability. 16-20 The human
eye cannot detect objects in appear less time than that ms. In order to be detected and the brain
sees yollanabilmesi image and object, that object must remain in front of you more than 20 ms.
This feature is one of the most commonly used screening methods using multiple display
systems.
There are two ways of driving 7-segment display. Already, a display driver using information
that is displayed You will keep its own buffer memory (7447 - 4511) as. They are also 74 595
will be also included, such as the shift registers. With the help of a microcontroller or multiplex
screening the Necessary Information is Displayed built and now begin to show the time-sharing.
Display driver information display using the multiplex screening business, which is the basis we
will then briefly sitemlerine.
7 segment LED display is a 7-segment athlete. There is also a common terminal Instead of these
LEDs. In the end the common anode display common anode, common cathode of display
Referred to as the cathode.
Common anode feeding systems, a common end-to-positive (+) and the negative supply is
segmentlerede (GND).
GND is the common cathode end of the common cathode is displayed You, segments that can be
Applied to the positive supply.
The voltage level depends on the number of LEDs which are contained within the segment. Each
segment is displayed You sever a single LED is located in small and 1.6 V-2, a voltage of 0V is
Applied to the.
Each segment is located in more than one large LED display. A portion of this series is connected
in parallel to a ksim. The voltage level will be the best thing to look for the Display Data
sheetine.

Display a - b - c - d - e - f - g is in the form of segments called.

Segments which are considered letters to the Show on the correspondin. In this notation, the
letter A to show display Easily understood abcefg segments must be activated. In another
example, you must give a second to figure (fabged) must be activated segments.
Display drivers literally do this job. Information is provided as a binary coded decimal inputs
ABCD. The drive letter or digit outputs Corresponding to display the image on the display
creates an active segment. If we think that 4 digit saycmz to each household will need to use a
display driver. Fluorescent bulbs in the same job, only it is possible to use four pieces of one
display and a processor. Of course, this process can be performed via multiplex screening.
Let's say 1234 figures 4 One display in the show. According to the logic is as follows Multiplex
screening process.
S make to each other all depends on the segment display. In other words, all the A s, and all
BSCS all depends on one another. Therefore, if a segment is normally active in all segments will
be a display of four active pieces. To prevent this, and who only need us to be able to actively
display a segment of the displays in the common-anode or cathodes are kept under control. After
giving him very much information about the segment number 4 of the system display only the
first is a common end of the feed required is anahtarlanarak Transistors. Him very much, that
figure Appears in the display. This image is kept on the screen here and display the common end
of a few ms off.
Then, the line segment 3 right information is given, and this time 2 ci display the feed given to
the common end. Him very much, from the right 2 Appears in the figure 3: This image display,
and also keeping the image on the screen is turned off there for a few ms. In this way, in other
display sequence is 2 and a knowledge of this process by giving repeated. Interruptions in
between our eyes to recognize, and is displayed You will, as an image and a continuous 1234
figures.
Simple assays in the screening system to examine the issue of principle as we believe that a
better kavrayacanza.
The most important issue is continuity of representation in the process of this system. If
continuity is interrupted, the display will begin pruning and krpmalar viewers uncomfortable.
Should give you an example of the, 4 Their length of stay information is displayed You Suppose
ayarladmz 5 ms as the show in one display. Information is Displayed information should
appear in the final five again, then re-enbataki ms. Here's another way you create a business by

making deductions will be on display and the display of the delay will make the image flicker.
For These reasons, this system is to use one of the most accurate ways of using cutting. Still
Returning to our example of the display driving units 4 If we create a break in the order of 5 ms
and the system will display the information Continuously display. Meanwhile, other affairs
related to the program can be easily.
Now for the examples in our. Our first example is a counter circuit.
For a start we will counter 9999. Saycmz and each alert will be triggered with a key value in a
counter will be increased. Counter display will show the reference value of 4 using the cut-off.

***************************************** *************

Resetting the program was for a number saydrlan added buttons for RESET. You are in the
program (PORTA.6 and) You can reduce that by adding the value is Considered a key. Still up
and down so the system can Sayabilecek. PullUp used internally, but externally PortA.4 PullUp
port B pin is connected to resistor.

Tried to make the system work in a similar circuit using a clock.


First, let's give a little bit of Theoretical Knowledge. Information displays to do is to give time
and both wounded in seconds without interrupting the circuit again and we will make pulses. As
is known, 1 sec = 1000 ms. You. If alimizde If there is a cut-up period of 5 ms, 1000/5 = 200 we
increase our counter for a second cutting in a second we will have achieved our counter.
In reality, fluorescent bulbs, the number of commands used in the cutting section is a little longer
due to delays Caused by. Therefore, an adjustment will cut the number of. After seeing the result
of course, will perform this operation. OCCURS timer interrupt every second increase on the
basis of the work to another you will need to use.
Transactions outside the normal hours will fulfill this. I used some of the Techniques in this
program. I would like to explain them. The first technical, between the hour and minute
indicators We placed two LEDs, and we PortB.7 drive from them. You know, 1 sec = 1000 ms.
So after the lights to make the first 500 ms 500 ms leds also thought it would be nice to keep the
anti-dumping case. Him very much, while the other half of Led in appear simply burns off half a
second will, p. I used the timer to make it happen again. This counter 200 reach a value of
approximately 1 sec, respectively. So when the timer is smaller than 100 LEDs burn, is greater
than 100 LEDs will be off.
Another technique used to add visuals to work during the time setting. I need to see that it is time
we press the SELECT button is depressed sec or setting where the position at which a flash
image of a Certain Whether he tried to create a setting in part. It displays the audible alarm
setting, of course we do. Sec key is pressed, the setting for the first time minutes before the
system comes into play and made part of the setting. Increasing the value of key key here is
Increase Decrease minutes, reducing the value of the minutes. 1-Y where Y = command is used
as a look at the program.
Toggle variable Y, ie that this command is a command that makes a zero. Y is "0" or "1"
According to the state variable value Z Depending on where it is. As a result, the actual values of
Z = 0, the display is closed in Z Appears in the display variable is greater than zero. Provides an
open and therefore a closure of Flash to display. Pressing the meantime, in case of increase or
decrease in value and strip on both minutes and hours as well as information on the display
screen when the new values are made and shown off.
The clock circuit and the simulation program running on the processor rather slow to load, and
the adjustment can be made precise. For this reason, accurate real-time adjustment circuit may
play with the values for the TIME variable. Program, this value is taken as 200. Tested in the
actual circuit values between 195-205 but caught an appropriate value.

Here's our program;


'************************************************* ***************

I want to try a little on the matrix display. Displaylar As you know, for numbers Displaylar As
you know, for numbers But when it comes to show business letters remain inadequate displays
Although Even if the letter was prepared in the form of segment display are indicators of the
difficulty of their displacement have pushed people to find other alternatives At the end of the
dot matrix dot matrix system have found In short, you must explain the multiple LEDs arranged
side by side in rows called dot matrix led display is placed Horizontally. Shows that are both
water lines as a result pillars oalarak.
2 The following, examined different types of image display matrix.
Matrix systems are suffered to be executed 2. The first method is the memory data lines are
scanned one by pillars. Other methods are also pillars of the knowledge of letters and lines are
scanned one at a time.

As a result there is no difference between the result of scanning in a shorter time, but in terms of
brightness of the LEDs are more Suitable because of the scan line indicated by the users.
Pictured above in both how to create a matrix of the system shows the same information.
Information is given a column to be created in which the line is that information is only active in
that line. Information lines are given in the column while the milk in which she is to be actively
created. Samples were as in the activation of the activation is done by milk line HIGH to LOW.
In this system, the creation of the display of information in the manner similar to the scanning
system of the eye multiplexx detection information in a shorter time period given to the rows or
columns in each row or column scan yaptrlp be active again, look at this short Time Intervals
in the shape created by means of deception is also displya. Let us explain this a little broader
akladklarmz examples of both systems.
To avoid chaos of the system is a term, and pay tribute to scan section. So the line to be scanned
(information given to the column), line scan system to the system, column to be scanned (given
row of information) I give the system the name of the column scanning system. Easily everyone
so that I can I think this topic analayacaktr mixing.
Column Scanning System: Given the row and column information in this system are scanned
one at a time Shows trace information is generated.
Easy to understand in terms of the creation of a display device using this method, will try to
explain the letter H.

One line if you look at the picture information and 8 There are 8 pieces of information in the
column. If the lines of the letter if we give information form each row of the matrix The display
on the screen that is at least 1-2 ms grntyy (LED matrix) then we have to keep in the other.
Now use the information column to column data will be studied our scanning system. All of the
line will be connected to a port in the column and line number information in the information
given by one port will be created. According to the above analogy
1. The column: 00000000 This information is given so as to form the port information.
2. The column: 01000010 This information is given so as to form the port information.

3. The column: 01000010 This information is given so as to form the port information.
4. The column: 01111110 This information is given so as to form the port information.
5. The column: 01000010 This information is given so as to form the port information.
6. The column: 01000010 This information is given so as to form the port information.
7. The column: 01000010 This information is given so as to form the port information.
8. The column: 00000000 This information is given so as to form the port information.
After the first columns in the first column of the top port is active. Him very much, grlcektir
knowledge of the first column of the matrix.
After 2 knowledge is an active port and the second column is the column. Two columns of the
matrix is also him very much.
After 3 given port, and column information 3 column is active. 3 him very much columns of the
matrix is also.
After 4 given port, and column information 3 column is active. 3 him very much columns of the
matrix is also.
In this way, with columns of 8 pieces (5 x 7 columns of the matrix will be pieces of the system 5)
of the eye port, giving the illusion that column is activated and monitored with the information
matrix H le dzerinde.
Let's try this program.
'************************************************

Lines forming the letter C in the program the information given and the B port to
port in the column information is provided, which has been active in that column
column is given to high.

Execute the same circuit as the scanning lines. This time, the letter will need to use
the information line equivalents.
'****************************************

Letter from the line information in this program PORTB (column port), respectively, and lines
are given respectively by active (LOW giving) display the formation of the letter provided.
Program can run the same circuit with the circuit diagram is also given.
Circuits to be used as work-related course, this does not occur in a single display. Multiplexing is
Necessary to use the port for more than one display. Port multiplexing process is generally used
for port scanning made. Notice was given the line-scan column information in the system. To
display this duurmda multiplexing more than one port is one of the best ways to take advantage

of the shift register. An example of this integration of the 74HC595 can. We were given the
previous lessons on the use of assays in this chip.
If you have a column multiplexing can be used to scan the ports of the 74HC595. But it also is a
good alternative to the 74 154. These alternatives can be refreshed multiplied. Providing enough
brightness of an LED is a matter of the other. For this, the common ends of the matrix s (anothe
or cathode) will be to use one integrated circuit ULN2800 series APPROPRIATE. To use more
than one display port multiplexing, both now and Develop a circuit. Try to do an hour working
with displaylar Matrix.
First, let's give our circuit; Circuit line-scan system. Information is given in columns and rows to
columns with the help of the 74HC595's The Desired information is requested in the column are
created by scanning. Description of the practical operation of the system is the case.

Now, let's give the program;


********************************************* ****

Programla ilgili ok fazla ey aklama gerei duymuyorum . Gerekli aklamalar programn


satrlarna yerletirdim . Ancak satr taramasnda taranan satr her bir displayde ayn anda aktif
edildiine dikkat ediniz . Yani btn displaylerin satrlar ayn anda taranmaktadr . Port dan 1
nolu satra ait tarama bilgisi knca bu btn displaylere tatbik edilmektedir .

Another interesting application you can here the line is the system used for screening. It is wise
to give some explanation about.
Prior to this work-related 3 line again, let's .
PORTB.BIT0 [I]=0 'Bit LOW on the line scan was done before
PAUSEus 1600 'sonra 1600 us beklendi
PORTB.BIT0 [I]=1 'Was then the corresponding bit HIGH
PORTB.BIT0 [I]= 0 komutunda
I 0 = PORTB ise.0Will be = 0
I = 1 = 0 will PORTB.1
PORTB.2= 0 if i = 2 to

I = 7 = 0 will be the PortB.7.


This system is a loop through the bits of a byte variable, which provides direct or indirect,
method to test. PORTB.BIT0 some interesting usage of the command[I]= 0 is replaced at the
time most people think that zero bits are numbered. But it is not. This is the only form of writing.
Therefore, depending on an external variable to change the format of the bits of a byte;
Degisken.BIT0[I] is. If you must give an example with the first order of the bits of the variable
named NUMBER 0 after 1 Let.
For I=0 to 7
SAYI.Bit0[I]=0
Break 100
SAYI.Bit[I]=1
Next
can easily be in the form we want yazldm. Finally, the usual off-topic papers will get shifted.
Placed in a matrix array of display images or writings that shifting from one place to the other
side, the job is done as follows according to the column or row scanning techniques.
First, let's look at the column scanning system, column displays the information provided on the
basis of the variables before and after the columns as yerletirdiimizi kardmz know of
them from the port. Before 1 column gives information and 1 We were being activated by the
column. After second column gives information from the port and at the same time 2 displays all
the columns in the column until it is activated and we were gitiryor Continues.

Now 1 I have the information they need to take place in the column 2 What happens if the
column? Subsequently 2 The data in column 3 I give up and do it in the last column in the
column What happens if I make a sliding. As a result of this slide is Shown instead of the normal
course information will be shifted a bit since. I say proceed on the basis of this one at a slide
show to display bits of information. Here is the text scroll circuit principle.
When you open the text to be scrolled in the technical system is provided to begin the first
column. Let's say we will scroll from left to right. The leftmost column 1 Whether the column.
The first column to display the information if there is active only in this column and column to
give 1 Ledi see also burned. After graduating from the information that we make to the end of
the scan, this time in the first column 2 transferred to column 1 followed by water in the column
information from the order and if we continue with this operation to display this information will
move from left to right, and finally the right to slowly disappear and will be entering. This is the
basis for the Work.
Below I have given previously to shift the letter H Matrix01.bas organized program.
The same circuit used for simulation of the circuit
******************************************* ****

Now we go one step further and let the shifting scan line scan both columns. Let's results will be
what see.
You know that was the first type of column and row scanning line number information which the
letter was Applicable Relevant Product Standard. Given the row and column in the letter
columns that make up the second type of shift will be made by scanning.
Before the program in order to see the difference 1 type of a shift from left to right scrolling to
do and har. Then the second level for the program at this stage will pass, and the letters will
begin to shift toward bottom-up. This logic also make text scroll animation iamac ilede systems
are used.

*************************************************

S-ar putea să vă placă și