View previous topic :: View next topic |
Author |
Message |
atoo
Joined: 31 Jan 2014 Posts: 32
|
matrix ???? |
Posted: Sun Feb 09, 2014 10:56 pm |
|
|
I want to do this with a 8x8 square matrix with two 74HC595 row and column
more how to make loops for??
Code: |
const unsigned char matriz[]=
{
0x00,0x08, // X=8
0x00,0x08, // Y=8
0xFF, // ########
0x81, // #......#
0x81, // #......#
0x81, // #......#
0x81, // #......#
0x81, // #......#
0x81, // #......#
0xFF // ########
}; |
|
|
|
atoo
Joined: 31 Jan 2014 Posts: 32
|
matrix ???? |
Posted: Mon Feb 10, 2014 9:33 am |
|
|
just want an example ! |
|
|
temtronic
Joined: 01 Jul 2010 Posts: 9244 Location: Greensville,Ontario
|
|
Posted: Mon Feb 10, 2014 10:11 am |
|
|
CCS supplies and example of using the 74HC595 in the examples folder.
I suggest you compile/burn/test' it to see how it works by turning on/off leds on the 595 outputs.
Also you need to tell us which PIC you're using,as well as compiler version.
hth
jay |
|
|
Mike Walne
Joined: 19 Feb 2004 Posts: 1785 Location: Boston Spa UK
|
|
|
atoo
Joined: 31 Jan 2014 Posts: 32
|
|
Posted: Mon Feb 10, 2014 11:30 am |
|
|
ccs 4.114
my knowledge in language friend ccc s only it is this
//exemplo com 74hc595
//and even now I make this small example using two 74HC595
to get the idea! thank you! Their attention is
because I am limited by my knowledge.
I would love to know more matrix 8x8 two 74hc595.
I dont understand
not unable
Last edited by atoo on Tue Feb 11, 2014 9:57 am; edited 1 time in total |
|
|
atoo
Joined: 31 Jan 2014 Posts: 32
|
two 74hc595 |
Posted: Mon Feb 10, 2014 11:47 am |
|
|
yes,
yes but in the case of two 74HC595? how to use?
one online 74hc and one for column 74hc595
enviar PM para atoo thank you! |
|
|
Mike Walne
Joined: 19 Feb 2004 Posts: 1785 Location: Boston Spa UK
|
|
Posted: Mon Feb 10, 2014 4:10 pm |
|
|
This is getting nowhere, so I'll try a different approach.
1) Do you have real hardware?
2) Do you have two of 74hc595?
3) Do you have an 8*8 LED matrix?
4) Which PICs do you have?
5) Which CCS compiler version do you have?
Mike |
|
|
atoo
Joined: 31 Jan 2014 Posts: 32
|
componentes |
Posted: Mon Feb 10, 2014 7:32 pm |
|
|
This is getting nowhere, so I'll try a different approach.
1) Do you have real hardware? yes
2) Do you have two of 74hc595? yes
3) Do you have an 8*8 LED matrix? yes
4) Which PICs do you have? 16f84
5) Which CCS compiler version do you have? version 4.114 |
|
|
atoo
Joined: 31 Jan 2014 Posts: 32
|
matrix |
Posted: Mon Feb 10, 2014 7:40 pm |
|
|
honestly peopl ... just an example for me to move on
because I do not have the privilege of studying in the college
My biggest diiculdade matrix was |
|
|
Mike Walne
Joined: 19 Feb 2004 Posts: 1785 Location: Boston Spa UK
|
|
Posted: Tue Feb 11, 2014 4:17 pm |
|
|
Begin by making sure you can do a 1Hz blinking LED to prove your system works.
The you could then connect your components as:- Code: |
----------------------------
| |
| PIC16F84 |
| RB0 RB1 RB2 |
----------------------------
| | |
| | |
| | | ------- -----------------
| | --|DATA Q7|---WWW---| o o o o o o o o |
| | 0V--|OE Q6|---WWW---| o o o o o o o o |
| | 5V--|MR Q5|---WWW---| o o o o o o o o |
| | | Q4|---WWW---| o o o o o o o o |
|----------|CK Q3|---WWW---| o o o o o o o o |
| | | Q2|---WWW---| o o o o o o o o |
| |------|EN Q1|---WWW---| o o o o o o o o |
| | --|Q7S Q0|---WWW---| o o o o o o o o |
| | | ------- -----------------
| | | '595 | | | | | | | |
| | | | | | | | | | |
| | | ------- | | | | | | | |
| | --|DATA Q7|----------- | | | | | | |
| | 0V--|OE Q6|------------- | | | | | |
| | 5V--|MR Q5|--------------- | | | | |
| | | Q4|----------------- | | | |
----------|CK Q3|-------------------- | | |
| | Q2|--------------------- | |
------|EN Q1|----------------------- |
| Q0|-------------------------
-------
'595 |
For starters make all the resistors 1k.
CCS provides code to drive the '595.
You will need to modify the 595 driver to tell the system there are two '595s.
Do some experiments to teach yourself how to drive the '595 and the LED matrix.
Mike |
|
|
atoo
Joined: 31 Jan 2014 Posts: 32
|
configuração |
Posted: Tue Feb 11, 2014 4:41 pm |
|
|
amazing you saved three pins, I was using six,
I will try earned !
CCS Provides code to drive the '595.
I'll have to ask for CCS or already have?
Charles. |
|
|
Mike Walne
Joined: 19 Feb 2004 Posts: 1785 Location: Boston Spa UK
|
|
Posted: Tue Feb 11, 2014 5:01 pm |
|
|
The driver for the '595 comes with the compiler.
It's in the Drivers directory, look for "74595.c".
First you learn how to drive the '595, then the display.
You could attempt to become good at this.
Try writing code to:-
1) Light just one the 64 LEDs in turn.
2) Light a full column of LEDs.
3) Light each column in turn.
4) Light a full row ot LEDs.
5) Light each row in turn.
6) Light a full row then a full column.
Exercise 6 should be very informative.
It will demonstrate a very important property of matrix displays.
Mike |
|
|
atoo
Joined: 31 Jan 2014 Posts: 32
|
atoo |
Posted: Tue Feb 11, 2014 8:19 pm |
|
|
I sent a PM, last question is it possible to scan in many ways depending on your creativity with 74HC595?
If I do not understand the code and takes a long time?
already good, I'll try to get up result
thank you very much
if it is not asking too much, Could send me the code PM
if not I sincerely thank
is enough!
thank you !!!
Obrigado!!!
Atoo
charles! |
|
|
Mike Walne
Joined: 19 Feb 2004 Posts: 1785 Location: Boston Spa UK
|
Re: atoo |
Posted: Wed Feb 12, 2014 3:00 am |
|
|
atoo wrote: | I sent a PM, last question is it possible to scan in many ways depending on your creativity with 74HC595? | There's no limit to what your creativitiy can do.
Your first real limit will be code size with your chosen PIC.
atoo wrote: | if it is not asking too much, Could send me the code PM | Sorry, I'm not going to write code for you.
The idea is for you to learn, no matter how long it takes.
I've learned the hard way, a long time ago.
You have to show that you've made an effort to do the job yourself.
If/when you get stuck many of regulars here will help you.
Mike |
|
|
atoo
Joined: 31 Jan 2014 Posts: 32
|
matriz |
Posted: Wed Feb 12, 2014 5:23 pm |
|
|
then I will strive!! kkkk
I send any news in brief!
código !! |
|
|
|