16F690 or whatever SEROUT to PC


Closed Thread
Results 1 to 15 of 15

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

    What will be output? RS232 level so I can connect it directrly to the PC or should I use MAX232 chip???
    if the distance is not to far, maybe less than 10 feet a 232 chip is not need . Just make sure you are using inverted mode for the serial.
    Dave
    Always wear safety glasses while programming.

  2. #2
    xnihilo's Avatar
    xnihilo Guest


    Did you find this post helpful? Yes | No

    Smile

    Quote Originally Posted by mackrackit View Post
    if the distance is not to far, maybe less than 10 feet a 232 chip is not need . Just make sure you are using inverted mode for the serial.
    Hello,

    What is the output of the pic? TTL or RS232?
    It should be less than 10 feet.

    What is exactly the inverted mode?
    I should be using N9200 instead of T9200 then?

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


    Did you find this post helpful? Yes | No

    Default

    N9600 would work IF AND ONLY IF the internal OSC is accurate enough.

    High likely i would use DEBUG instead, much more, i would use HSEROUT and a max232, max233 or whatever else RS232 driver.

    You can reduce the in serie resistor if you want.
    Steve

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

  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 xnihilo View Post
    What is the output of the pic? TTL or RS232?
    RS232
    What is exactly the inverted mode?
    Just as the name implies. The signal is inverted. Up is down and down is up.

    HSEROUT is always TRUE. So the MAX232 or equal is needed for this.

    I agree with Steve, get an external OSC and save your headache for someplace else.
    Dave
    Always wear safety glasses while programming.

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


    Did you find this post helpful? Yes | No

    Default

    AND as you use the bit banging solution, you should make sure your Serial pin idle to the right level before sending any data.

    true idle high
    Inverted idle low.
    Steve

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

  6. #6
    xnihilo's Avatar
    xnihilo Guest


    Did you find this post helpful? Yes | No

    Default

    I am using a 16F690 which has an USART, cool, but all pins are used, not cool... I can use RA5 before the program uses it for communicating with another pic.

    Using Hserout would be nice and adding an external osc too but I don't have the pins available for that.

    Well, so I am confused.

    The only pin I have is RA5, what should I do...
    Use SEROUT, right?
    And use a max232 (in this case what benefit to I have if the pic is already outputing RSR232 level signal?).
    Whith what setting for SEROUT if not N9200?
    And can I or can I not use an external OSC?

  7. #7
    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 xnihilo View Post
    The only pin I have is RA5, what should I do...
    Re-design your project.
    Use SEROUT, right?
    Or DEBUG or SEROUT2
    And use a max232 (in this case what benefit to I have if the pic is already outputing RSR232 level signal?).
    In your case there is not a benefit. If you were sending a longer distance or using HSEROUT then you would need it.
    Whith what setting for SEROUT if not N9200?
    SEROUT -- N9600
    SEROUT2 ---16468
    DEBUGE --- DEFINE DEBUG_MODE 1
    And can I or can I not use an external OSC?
    If you mean internal...Maybe.
    Temperature change can cause the internal to vary. It may work on the bench but not in a finished application.
    Dave
    Always wear safety glasses while programming.

  8. #8
    xnihilo's Avatar
    xnihilo Guest


    Did you find this post helpful? Yes | No

    Default

    The project is still my lasergame equipment.

    When the "body" module is powered up, it will send 70 bytes to the PC (scores).
    It will not have the time to heat too much do you think I still can use internal OSC at 8MHz, without a MAX232, with serout, N9600, a 1k inline resistor between pic RA5 and PC pin 2? Redesigning the project is unfortunately almost impossible now.

Similar Threads

  1. A Serial GLCD 128x64 Simple Project
    By Oldspring in forum Off Topic
    Replies: 0
    Last Post: - 8th March 2010, 20:58
  2. Serout to serial servo
    By azmax100 in forum mel PIC BASIC Pro
    Replies: 20
    Last Post: - 12th August 2009, 16:46
  3. Advice-scrutiny for my serial controller
    By kevlar129bp in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 13th December 2008, 17:11
  4. 16f690 crashes
    By Lincoln S. in forum Serial
    Replies: 8
    Last Post: - 26th November 2008, 08:32
  5. Replies: 4
    Last Post: - 7th September 2005, 14:11

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