serial problem


Closed Thread
Results 1 to 5 of 5

Thread: serial problem

  1. #1
    Join Date
    Nov 2010
    Posts
    2

    Default serial problem

    pic18f2620.
    uart connected to rfid reader
    port a.3 and a.4 used for serial comms
    port c.5 and c.6 used serial to communicate with serial to network adaptor.

    all serial communication works fine.....except...... when i try to send data on c.5 no data is transmitted

    However if i leave program Define's and delete program except:

    SEROUT PORTC.5, [tagnum,pcount,tcount,stat]

    it works...???...???

    I Am fairly new to picbasic and now totally lost..........



    HELPPPPPPP Please

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


    Did you find this post helpful? Yes | No

    Default

    Without seeing your code all we can do is guess. The configs will also help.
    Dave
    Always wear safety glasses while programming.

  3. #3


    Did you find this post helpful? Yes | No

    Default Needs a MODE number

    The SEROUT command format is
    SEROUT pin, mode, [var1, var2...]

    You don't appear to have any MODE specified so no speed is specified.

    HTH
    BrianT

  4. #4
    Join Date
    Nov 2010
    Posts
    2


    Did you find this post helpful? Yes | No

    Default

    THANK YOU!!!!!

    i mis-typed copying from test program into main program and was having a moment of number blindness............lol

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


    Did you find this post helpful? Yes | No

    Default

    However if i leave program Define's and delete program except:

    SEROUT PORTC.5, [tagnum,pcount,tcount,stat]

    it works...???...???
    That is the weird part.
    Dave
    Always wear safety glasses while programming.

Members who have read this thread : 1

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