SERIN AND SEROUT PROBELM USING 16f690 PIC


Closed Thread
Results 1 to 14 of 14

Hybrid View

  1. #1
    Join Date
    Jan 2007
    Posts
    5


    Did you find this post helpful? Yes | No

    Default

    in the transmitter part
    u see the dgood pin..it is connected to valid pin in receiver...
    therefore whenever i press the keypad, dgood become low which indicate valid =0...therefore it will goes out from the wait loop (in the receiver part) and display the number inside

  2. #2
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default Schematic anyone?

    Hey Charles, you suppose we could see a schematic? It sort of looks as if you want to send serial data from one pic to the other, hence skimasks question, but if you have everything all hardwired together, then we need to see how.
    JS

  3. #3
    Join Date
    Jan 2007
    Posts
    5


    Did you find this post helpful? Yes | No

    Default

    dgood (portB.4) from PIC1 i connect it to valid(portB.6) from PIC2...sorry there is a mistype in the code it should be valid var portB.6 not valid var byte...then otupin(portB.7) from PIC1 is connected to keyinput(portB.5) from PIC2)/....yup i'm trying to send data serially from pic1 to pic2...any suggestion?thanx very much...

    best regards
    Charles

  4. #4
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Charles View Post
    in the transmitter part
    u see the dgood pin..it is connected to valid pin in receiver...
    Yes, but on the receiver side, valid is a BYTE, not a Pin.

    So back to skimask's question,
    "What sets the valid in the RX code?"
    <br>
    DT

  5. #5
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Darrel Taylor View Post
    Yes, but on the receiver side, valid is a BYTE, not a Pin.

    So back to skimask's question,
    "What sets the valid in the RX code?"
    <br>
    But he's only got TWO WEEKS!!!! AAAaaaaaaaaaaaaa.............

  6. #6
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Easy skimask, Down boy, Down!

    Let me take this one ...

    I'm always skeptical when someone Cut&Pastes their entire program into a Post.
    And, the one thing that points out a definate cause of the described problem suddenly turns into a "typo".

    In the middle of a Cut&Paste? Come on!

    See, I can do it too.

    Ok well, my advice is to dump the keypad routine, and use this...

    Matrix Keypad routine (mister_e)
    http://www.picbasic.co.uk/forum/showthread.php?t=3250

    Then take a look here...

    How to make your own PIC network (mister_e)
    http://www.picbasic.co.uk/forum/showthread.php?p=5708
    Not exactly what you are doing, but the concepts are the same. Just 2 PIC's instead of many.
    <br>
    DT

  7. #7
    Join Date
    Jan 2007
    Posts
    5


    Did you find this post helpful? Yes | No

    Default

    The output my program right now when i display on the lcd is

    ENTER POLARITY
    1)+ 2)- 0(this zero should be number that is pressed on the keypad)

  8. #8
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    OK skimask,

    You have my permission.

    Pfft!
    <br>
    DT

  9. #9
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Darrel Taylor View Post
    OK skimask,

    You have my permission.

    Pfft!
    <br>
    Well, I'm guessing that he's using one of them thar 17C756, or maybe not. I can't tell.

    And I'm also guessing that he's using a bunch of switches, maybe even, dare I say, a telephone keypad, probably without any pullup or pulldown resistors (although there are ways around that). Again, I can't tell.

    And I'm betting that the search function hasn't been used much, 'cause there's a lot of info out there on connecting 2 PICs together and using a matrix style keypad. I'm at a loss...

    Oh, and I've got this car, it's making this noise. Can you help?

    Back at ya...

Similar Threads

  1. SERIN and SEROUT
    By CumQuaT in forum mel PIC BASIC
    Replies: 10
    Last Post: - 3rd September 2009, 00:17
  2. PIC16f877 code crosses boundary @800h
    By inventosrl in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 6th April 2009, 22:03
  3. Advice-scrutiny for my serial controller
    By kevlar129bp in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 13th December 2008, 17:11
  4. 16f690 crashes
    By Lincoln S. in forum Serial
    Replies: 8
    Last Post: - 26th November 2008, 08:32
  5. SerIn and SerOut
    By Dwayne in forum FAQ - Frequently Asked Questions
    Replies: 0
    Last Post: - 21st July 2004, 15:54

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