HELP! Serial input between Pic and PC (urgent)


Closed Thread
Results 1 to 35 of 35

Hybrid View

  1. #1
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,133


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by T.Jackson View Post
    ... you've been a design engineer for what; 20 years?
    ...
    Exactly that. 20 years ago I did not had any internet to help out. So what I did? Read and practice a lot.

    Quote Originally Posted by T.Jackson View Post
    ... You really need to learn how to bring yourself down to another person's level is probably what I'm trying to say.
    I think not she or me or anyone else, "really" need to do that. Others have to work and get up to a proper level. For example I have seen your work on VB6, how good you are and I am trying hard to understand that lanquage with the programs you have posted. I could say that I am areally newbie but will not annoy you to teach me how to write a simple command line...

    Of course we will help, but they have their share too.

    Ioannis
    Last edited by Ioannis; - 7th December 2007 at 07:03.

  2. #2
    T.Jackson's Avatar
    T.Jackson Guest


    Did you find this post helpful? Yes | No

    Default

    I've had heaps of assistance learning VB6. I don't take any of it for granted and the people that helped me out online didn't either. The programs that I wrote in VB6 this time two years ago were absolute rubbish until I discovered Planet Source Code on the world wide web. If you need any help I will point you in the right direction. No problems.

  3. #3
    Join Date
    Nov 2007
    Posts
    11


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Ioannis View Post


    ...... I am areally newbie but will not annoy you to teach me how to write a simple command line...


    Ioannis
    Hi Ioannis,

    Do u meant i was annoyed you to teach me how to write a simple command line? If yes, then i think i should apologize to you. Sorry for disturbing...

  4. #4
    Join Date
    Jul 2003
    Posts
    2,358


    Did you find this post helpful? Yes | No

    Default

    you've been a design engineer for what; 20 years?
    Actually not quite six... hmmm... I hope I still look like my picture in 14 years time...

  5. #5
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,133


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by cmyew View Post
    Hi Ioannis,

    Do u meant i was annoyed you to teach me how to write a simple command line? If yes, then i think i should apologize to you. Sorry for disturbing...
    I don't understand the ironic attitude. Did not the answer #2, #4, #8 really helped you solve the problem at the utmost polite way? Ohh, people...

    Quote Originally Posted by Melanie View Post
    Actually not quite six... hmmm... I hope I still look like my picture in 14 years time...
    I think you will look great even after 30 years! Engineers are doing proper service's at the set intervals!

    Ioannis

  6. #6
    Join Date
    Nov 2007
    Posts
    11


    Did you find this post helpful? Yes | No

    Default

    Hi Mr.Ioannis,

    Actually i really very thankful and appreciate the solution that u given to me. I also not meant that u dint help me but i just scared that i was disturbing you. Now i still try to troubleshooting for the code and my hardware. Hopefully it can be working one day.

    Thank you very much

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


    Did you find this post helpful? Yes | No

    Default

    Project instructions:
    1. Read the Data Sheet.
    2. Read the PIC Basic manual.
    3. Read this forum.
    4. Use FIRE extinguisher.

    5. Post question stating:
    A. Every thing you tried
    B. Post Your CODE.
    C. Post schematic if applicable.

    Back to the topic....
    Quote Originally Posted by cmyew View Post
    Now i still try to troubleshooting for the code and my hardware. Hopefully it can be working one day.
    What problems are you still having?
    Dave
    Always wear safety glasses while programming.

  8. #8
    Join Date
    Nov 2007
    Posts
    11


    Did you find this post helpful? Yes | No

    Default

    Hi Dave,

    1. The attachment is my circuit diagram, pls comment to me if there are something wrong.
    Thanks

    2. Source Code:
    '################################################# #########
    Define OSC 10
    include "Modedefs.bas"
    ADCON1 = 7

    TRISA = %010000 'RA4 as serial input, RA3 as serial output
    TRISB = 0 'PortB used to ON the LED

    CHAR var byte

    PORTB = 0

    Main:

    SERIN PORTA.3,T9600,CHAR

    PORTB = CHAR

    SEROUT PORTA.3,T9600,[CHAR,10] 'I used hyperterminal to received the data
    'that sent to pic

    GOTO MAIN
    ############################################

    3. I was try to change the value of OSC but still get the same result. For Example: when i sent "1" from hyperterminal to pic but the result that returned to hyperterminal is " ' " then the result on LED is "11111010". I was checked the ASCII table, the result is not same with the data i sent.
    Attached Images Attached Images  

  9. #9


    Did you find this post helpful? Yes | No

    Default

    Hi guys,

    I'm a new guy where pics are concern, but i'm more experienced with my other hobbys.

    Since i dont have anyone that i can learn with i have to teach my self and learn with my mistakes and experiments.

    For each hobby i have i also participate in the related forums.

    I try to share my experience and try to give my knowledge with the new guys as i remember myself some time before asking for it or came across a dead end as the new guys do now.

    Sure for me can be obvious some issue but it can be a hard step for a new guy to go through.

    And i know how fustrating can be when hitting a dead end and not having a little help to get arround it. I know some people that leave their hobbys for that.

    This is the point of the foruns. For people to share information and experiences. To help the other guy regardless of the question.

    Me for example i use datasheet but because i'm a new guy in pic world there are many thing i dont undestand in them !

    I've been helped many times here and i believe that if it wasnt for the guys here i wouldnt be able to continue with my learning curve and getting stuck with a flat line !

    Sorry for the long post...just wanted to share my humble opinion

    .

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


    Did you find this post helpful? Yes | No

    Default

    The first thing that I see is you have SERIN and SEROUT on the same pin.
    Code:
    SERIN PORTA.3,
    
    SEROUT PORTA.3,
    I have never tried A4 for serial
    http://www.picbasic.co.uk/forum/showthread.php?t=562
    You may have to use another pin.

    Right now do not worry about TRISA. The SERIN/SEROUT takes care of that.
    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. Replies: 11
    Last Post: - 12th July 2008, 02:36
  3. interfacing to the pc serial port
    By kelangfei in forum General
    Replies: 4
    Last Post: - 7th October 2007, 22:35
  4. High Speed Serial Comm PC - PIC and PIC - PIC
    By manumenzella in forum mel PIC BASIC Pro
    Replies: 23
    Last Post: - 16th January 2007, 21:55
  5. Replies: 5
    Last Post: - 20th March 2006, 01:34

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