Is it possibly a Windows XP Pro Problem?


Closed Thread
Results 1 to 11 of 11

Hybrid View

  1. #1
    Join Date
    Mar 2011
    Location
    Los Angeles, California
    Posts
    322

    Default Is it possibly a Windows XP Pro Problem?

    I am have 2 problems. First after trying Hyper Terminal in Windows and RS-232C Lab I can see that I am sending data from the PIC. What these programs show is just the same set of characters and not what they should be. Baud is at 2400, data bits are 8, stop bit is 1, parity is none, flow control is none. I have been trying now for two days so I really need help! I also find that Microcode Studio Plus ICD will not talk to the MAX-232 so not I am completely lost! I thought about a bad cable and if this were so I could not program the PIC. Anyone have any ideas? Thanks, Ed

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

    Default Re: Is it possibly a Windows XP Pro Problem?

    Got any code?
    Dave
    Always wear safety glasses while programming.

  3. #3
    Join Date
    Mar 2011
    Location
    Los Angeles, California
    Posts
    322

    Default Re: Is it possibly a Windows XP Pro Problem?

    Sorry serious brain craps!

    ' Name : HELLOX3.pbp
    ' Compiler : PICBASIC PRO Compiler 2.6
    ' Assembler : PM or MPASM
    ' Target PIC : PIC16F628A or similar 18-pin type compatible with LAB-X3 board
    ' Hardware : LAB-X3 Experimenter Board
    ' Oscillator : 4MHz external crystal
    ' Keywords : SEROUT
    ' Description : PICBASIC PRO program to send "Hello World" on serial port.
    '
    Include "modedefs.bas" ' Mode definitions for Serout
    Define LOADER_USED 1
    Define osc 20
    mainloop:
    Serout PORTB.3, T2400, ["Hello", 10, 13] ' Display "Hello", next line
    Pause 500 ' Wait .5 second
    Serout PORTB.3, T2400, ["World", 10, 13, 10, 13] ' Display "World", skip a line
    Pause 500 ' Wait .5 second
    Goto mainloop ' Do it forever
    End

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

    Default Re: Is it possibly a Windows XP Pro Problem?

    Your code looks OK with the exception , I think, that it is PORTB.2 that goes to the MAX232.

    If I am wrong on that try the Serial Communicator built into MCS.
    Dave
    Always wear safety glasses while programming.

  5. #5
    Join Date
    Mar 2011
    Location
    Los Angeles, California
    Posts
    322

    Default Re: Is it possibly a Windows XP Pro Problem?

    Thank you and inquiring minds would like to know why B.2?
    Isn't Port B.2 the TX-in for the Max 232 on a 16F628A or am I looking for a specific type of port?

    Thanks, Ed
    Last edited by Ramius; - 1st May 2011 at 21:22.

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

    Default Re: Is it possibly a Windows XP Pro Problem?

    B.2 is the TX and B.1 is the RX from the 628.
    Just a matter of looking at it as out from the PIC and in to the MAX.

    Are you up and running now?
    Dave
    Always wear safety glasses while programming.

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