help me...


Closed Thread
Results 1 to 5 of 5

Thread: help me...

  1. #1
    Join Date
    Feb 2006
    Posts
    14

    Unhappy help me...

    INCLUDE "modedefs.bas"

    DEFINE CHAR_PACING 1000

    kdg var word

    pause 2000


    SerOut PORTA.3,t2400,["nilai",13,11]

    serin2 PORTA.2,t2400,[kdg.0,kdg.1 ]

    SerOut PORTA.3,t2400,["nilainya ",kdg.0,kdg.1,13,11]

    why the output show stange character??
    what wrong???

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


    Did you find this post helpful? Yes | No

    Default You need help? Help us a bit

    PIC #
    OSC speed
    Hardware?
    Config Fuses?

    i suspect, at least, that your PIC have some analog stuff to be disable on PORTA
    Steve

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

  3. #3
    Join Date
    Feb 2006
    Posts
    14


    Did you find this post helpful? Yes | No

    Default oops..

    PIC16F84A and max 232
    4Mhz
    using windows hyperterminal to communicate

    sorry not mention the component...

    is there any way that i can input a number or letter with more that 1 character in a single variable.?

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


    Did you find this post helpful? Yes | No

    Default Is this PIC# will die one day?

    Seems to be a baudrate problem. Be sure you set this crap Hyperterminal Baudrate and all settings correctly first. Sorry... i hate Hyperterminal. That's the worst PC program i've never ever seen in my whole life. MicroCode Studio Serial Communicator is a good one.

    Try to remove the CHAR_PACING stuff first or change Terrminal program

    For what it worth, How about your schematics?

    Are you sure that your crystal really run @4MHZ ?

    For your last question, define an ARRAY variable of n elements then use SERIN2 with STR modifier.
    serin2 PORTA.2,t2400,[kdg.0,kdg.1 ]
    i'm pretty sure it's not a valid statement. Have a look to SEROUT, SEROUT2 modifier list
    Last edited by mister_e; - 9th April 2006 at 10:15.
    Steve

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

  5. #5
    Join Date
    Feb 2006
    Posts
    14


    Did you find this post helpful? Yes | No

    Default can you...:)

    can you show me some example about using SERIN2 with STR modifier.

    i still confuse about SERIN ,SERIN2 and SEROUT, SEROUT2.

    please....

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