CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

matrix ????
Goto page 1, 2  Next
 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
atoo



Joined: 31 Jan 2014
Posts: 32

View user's profile Send private message Send e-mail

matrix ????
PostPosted: Sun Feb 09, 2014 10:56 pm     Reply with quote

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

View user's profile Send private message Send e-mail

matrix ????
PostPosted: Mon Feb 10, 2014 9:33 am     Reply with quote

just want an example Question Wink !
temtronic



Joined: 01 Jul 2010
Posts: 9244
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Mon Feb 10, 2014 10:11 am     Reply with quote

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

View user's profile Send private message

PostPosted: Mon Feb 10, 2014 11:18 am     Reply with quote

This link is just one of meny which deal directly with '595 and 8*8 matrix.

http://www.ccsinfo.com/forum/viewtopic.php?t=47436&start=0&postdays=0&postorder=asc&highlight=matrix

There should be enough to get you started.

Mike
atoo



Joined: 31 Jan 2014
Posts: 32

View user's profile Send private message Send e-mail

PostPosted: Mon Feb 10, 2014 11:30 am     Reply with quote

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

View user's profile Send private message Send e-mail

two 74hc595
PostPosted: Mon Feb 10, 2014 11:47 am     Reply with quote

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

View user's profile Send private message

PostPosted: Mon Feb 10, 2014 4:10 pm     Reply with quote

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

View user's profile Send private message Send e-mail

componentes
PostPosted: Mon Feb 10, 2014 7:32 pm     Reply with quote

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

View user's profile Send private message Send e-mail

matrix
PostPosted: Mon Feb 10, 2014 7:40 pm     Reply with quote

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 Rolling Eyes Crying or Very sad
Mike Walne



Joined: 19 Feb 2004
Posts: 1785
Location: Boston Spa UK

View user's profile Send private message

PostPosted: Tue Feb 11, 2014 4:17 pm     Reply with quote

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

View user's profile Send private message Send e-mail

configuração
PostPosted: Tue Feb 11, 2014 4:41 pm     Reply with quote

amazing you saved three pins, I was using six,
I will try earned ! Surprised
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

View user's profile Send private message

PostPosted: Tue Feb 11, 2014 5:01 pm     Reply with quote

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

View user's profile Send private message Send e-mail

atoo
PostPosted: Tue Feb 11, 2014 8:19 pm     Reply with quote

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

View user's profile Send private message

Re: atoo
PostPosted: Wed Feb 12, 2014 3:00 am     Reply with quote

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

View user's profile Send private message Send e-mail

matriz
PostPosted: Wed Feb 12, 2014 5:23 pm     Reply with quote

then I will strive!! Shocked kkkk

I send any news in brief!

código !! Question
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group