interfacing to the pc serial port


Closed Thread
Results 1 to 5 of 5

Hybrid View

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


    Did you find this post helpful? Yes | No

    Default

    I am not very good with PHP but you may want to slow the PIC to PHP baud down to 2400 to test things.

    What type of oscillator are you using?

    A line feed and carriage return might help at the PHP receive end (10, 13) at the end of every transmission.

    One more question, unrelated to the above: Somehow I got all zereos on a 16f628 and it appears useless. I am using a pic programmer. Is there any recovery procedure available? What causes this?
    Have you tried a complete chip erase? what programmer and software?
    Dave
    Always wear safety glasses while programming.

  2. #2
    Join Date
    Jul 2007
    Posts
    5


    Did you find this post helpful? Yes | No

    Default interface to the serial port

    Hello Dave -

    Thanks for the timely reply.

    First of all I am using the Melabs U2 Programmer. I have only seen one erase feature. Is that the complete erase you refer to?

    As for the programming side I've returned to the PBP manual. Now I can't see where I got 9600 baud for serout so I will slow it down and see what happens.

    I think you mean I should have a carriage control and line feed for every serout command, not just the initial one. I'll give that a try and see what happens also.

    K

  3. #3
    Join Date
    Jul 2007
    Posts
    5


    Did you find this post helpful? Yes | No

    Default interface to serial port

    Left out one piece of the reply:

    I am using a 4mhz crystal oscillator with the markings ECSH4.0EX on top. Hope that's not an issue.

    K

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


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by kelangfei View Post
    Left out one piece of the reply:

    I am using a 4mhz crystal oscillator with the markings ECSH4.0EX on top. Hope that's not an issue.

    K
    Could be a little slow for 9600. 2400 will be fine.

    I think you mean I should have a carriage control and line feed for every serout command, not just the initial one. I'll give that a try and see what happens also.
    Yes, That is what I was trying to say.

    As far as your programmer, I do not use that one but being from Melabs I am sure it is good. There should be some place to erase the config, program, and eeprom areas, maybe it does it all at once.

    For the dead PIC see if you can be sure the config area is being erased and do a blank check. You may have to use MPLAB for this?
    Dave
    Always wear safety glasses while programming.

Similar Threads

  1. Send binary file to pic over pc serial port
    By xnihilo in forum mel PIC BASIC Pro
    Replies: 20
    Last Post: - 3rd May 2011, 13:47
  2. Microcontroller with 2 way paging application problem
    By oneohthree in forum mel PIC BASIC Pro
    Replies: 30
    Last Post: - 20th April 2007, 17:27
  3. PC serial port funny
    By nicjo in forum Serial
    Replies: 13
    Last Post: - 6th February 2007, 05:34
  4. Replies: 2
    Last Post: - 28th April 2006, 12:10
  5. PC Serial Port Connections
    By BigH in forum Serial
    Replies: 1
    Last Post: - 20th January 2006, 08:24

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