SERIN AND SEROUT PROBELM USING 16f690 PIC


Closed Thread
Results 1 to 14 of 14

Hybrid View

  1. #1
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Q: What sets the valid in the RX code?
    A: Nothing.

    So the program is doing exactly what you set it up to do...nothing but sit in a stuck loop. Which loop? Your turn to figure that one out. Hopefully it doesn't take you 2 weeks to do that. Maybe ask your instructor for some instruction on how to follow basic logic from start to finish...or in this case, from start to stuck...

  2. #2
    Join Date
    Jan 2007
    Posts
    5


    Did you find this post helpful? Yes | No

    Default

    what sets the valid in Rx is the dgood(pin) from transmitter so whenever the key pressed, the dgood become low and it is connected through wire to the valid pin in receiver so it will go out from the wait loop and display...
    the thing is all goes well accept the value inside the num(register) is 0 when i display..is the way i use the serin and serout is correct?...do u have any suggestion..thanx very much

  3. #3
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Charles View Post
    what sets the valid in Rx is the dgood(pin) from transmitter so whenever the key pressed, the dgood become low and it is connected through wire to the valid pin in receiver so it will go out from the wait loop and display...
    the thing is all goes well accept the value inside the num(register) is 0 when i display..is the way i use the serin and serout is correct?...do u have any suggestion..thanx very much

    Ok, back to you again, what sets valid = 1 or valid = 0?

  4. #4
    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

  5. #5
    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

  6. #6
    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

  7. #7
    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

  8. #8
    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.............

  9. #9
    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

  10. #10
    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)

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