L.e.d


Closed Thread
Results 1 to 40 of 40

Thread: L.e.d

Hybrid View

  1. #1


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by mackrackit View Post
    Go to microchip.com and look at their sample program. They give free samples!

    thought I already mentioned that. lol

  2. #2
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by nomad View Post
    thought I already mentioned that. lol
    Yup, but when the high cost was mentioned I figured it needed said again.
    Dave
    Always wear safety glasses while programming.

  3. #3
    Join Date
    Oct 2007
    Posts
    15


    Did you find this post helpful? Yes | No

    Default

    Hi, my electronic teacher has suggested me to connect 2 pic's together but i don't have a clue how to. Can someone help me please

  4. #4
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    You can hook two PICs together with some sort of serial communication but again for a first project I would not recommend.

    The basic idea is to send a command from PIC#1 to PIC#2. When PIC#2 receives a command it will execute an operation. The manual tells how to get started with serial comms.

    Have you blinked a LED with one chip yet?
    Dave
    Always wear safety glasses while programming.

  5. #5
    Join Date
    Oct 2007
    Posts
    15


    Did you find this post helpful? Yes | No

    Wink

    Yes i want control over around 16 L.E.Ds but i cannot find a pic with 16 outputs so i thought connecting 2 pic together would be a better solution. Which command should i send from pic 1 to pic 2?
    Thanks

  6. #6
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    Marty,

    For your first project I strongly recommend using just one chip. There are plent of PICs with 16 and more IOs.

    The 16F877A-I/P would be a good one to start with. At least I like it. 33 I/Os.
    http://www.microchip.com/stellent/id...cName=en010242
    But if you look here you can find others. Just make sure your programmer will support it. And get something in the "F" , 16Fxxxx. These are flash memory.
    http://www.microchip.com/ParamChartS...g=en&pageId=74

    If you still want to use two the send part would look something like this.
    Code:
    SEROUT PORTC.4,T2400,[9,3] '9 is the character the receiving
                                               PIC is waiting for, 3  is the command
    The receiving code
    Code:
    SERIN PORTC.4,T2400,[9],net  'when  9  is received  the  next  
                                       character  is  written  to  variable  "net"
    
    IF net = 3 THEN Do something
    Here is a simple example of how to control more LEDs than you have pins.
    http://www.mackrackit.com/mac/www/dave/LED/LEDs.html
    Dave
    Always wear safety glasses while programming.

  7. #7
    Join Date
    Oct 2007
    Posts
    15


    Did you find this post helpful? Yes | No

    Cool

    Hi, i want to buy the micro controller - pic 28x but i don't know its code name (e.g. PIC 16F87X) can anyone tell me its name please?
    Also i need to programme my pic after i've purchased it but i can't find any resources to help me learn to programme it. Can anyone suggest a good source which could help me pleasE?

    Thank you very much!

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts