Serial VB 2005 pic 16f877a problems


Closed Thread
Results 1 to 29 of 29

Hybrid View

  1. #1
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by mister_e View Post
    Valid for Timeout use...
    Ayy......good point...
    But what if the serial cable is 'amplifying' the unloaded pin, as in a floating input, and it ends up causing garbage to try to get into the SERIN statement.

    How about adding a pullup or pulldown as appropriate?

  2. #2
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    He said he use MAX232

    But yes i see what you mean.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  3. #3
    Join Date
    Apr 2007
    Location
    Southern Ontario
    Posts
    50


    Did you find this post helpful? Yes | No

    Default

    ok, I took out the pause, added the #, so the serin now looks like this...
    serin portc.3,t2400,10,mainloop,[#pcsig]
    it still locks up,
    i added a 4.7 pull down to rx, no luck
    pull up no luck
    serial cable still not even connected (just trying to get it to run first with serin command intact)
    will keep trying
    thanks
    Beer is proof that God loves us and wants us to be happy.

  4. #4
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    nope... no square brackets in that.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  5. #5
    Join Date
    Apr 2007
    Location
    Southern Ontario
    Posts
    50


    Did you find this post helpful? Yes | No

    Default

    how is this.........still does not work.
    serin portc.3,t2400, 10,mainloop,#pcsig
    Beer is proof that God loves us and wants us to be happy.

  6. #6
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    seems i'll need to try it here

    can you post your missing class or your whole VB code please?
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  7. #7
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    and woops i just saw that...
    Code:
    serin porta.1,t2400,pcsig
    if pcsig > 1 then high porta.1
    you should use another pin...

    and then
    Code:
    lcdout $fe,1,pcsig,"pcsig"
    Should have another #
    Code:
    lcdout $fe,1,#pcsig,"pcsig"
    Last edited by mister_e; - 6th May 2008 at 06:06.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  8. #8
    Join Date
    Apr 2007
    Location
    Southern Ontario
    Posts
    50


    Did you find this post helpful? Yes | No

    Default

    First of all I would like to thank you again for all of your wonderful help. It is nice to know there are people like yourself and the other members of this forum in this world who devote so much time and energy to helping newbee's like myself.

    I don't wan't you to go through all the trouble of re-createing my project unless of course, you want the code (it is a pritty nifty way of showing the temp in windows).

    Besides all that is it possible that it is the VB code that is locking up the pic when it isent even connected when the pic program hangs up?

    my next thing will be testing out the vb program on a basic stamp I have, if that works at least I know the vb part works, the next will be trying it out on a 16f84 and then if that works I will buy another 16f877 and see if it's the ic.

    If anyone has any other sugestions or you still want the code let me know
    Thank You
    Snap
    Beer is proof that God loves us and wants us to be happy.

Similar Threads

  1. Midi, Interrupts and Pic better than SX28?
    By Lajko in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 27th September 2008, 00:26
  2. Automatic VB6 to pic serial connection
    By arniepj in forum Code Examples
    Replies: 13
    Last Post: - 10th January 2008, 07:57
  3. PIC serial going to sleep!
    By stma in forum Off Topic
    Replies: 0
    Last Post: - 31st October 2007, 08:17
  4. PIC to serial with visual basic
    By mbw123 in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 31st March 2007, 16:06
  5. serial comm from Pic to STAMP
    By d1camero in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 4th April 2004, 23:58

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