Using SERIN.BAS to test setup


Closed Thread
Results 1 to 2 of 2
  1. #1
    TurboLS's Avatar
    TurboLS Guest

    Default Using SERIN.BAS to test setup

    OK, I have SERIN.BAS compiled, assembled, and programmed on my PIC18F4520. I looked in the MODEDEFS.BAS file and I was trying to figure out how to wire up the serial port connector to the pic chip. SERIN.BAS defines S0 and S1 as pins, but I don't see how those descriptors correspond to the pic chip pins, such as PORTA.0 . Am I missing something really simple? I currently have the RS232 connector wired in the following configuration. I have the send and receive pins connected to the TX and RX pins on the PIC chip respectively.
    Attached Images Attached Images  

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


    Did you find this post helpful? Yes | No

    Default

    well since your pic already have a USART, use TX and RX pins and forget about SERIN or SEROUT stuff. Use HSERIN and HSEROUT instead. They will use the TX and RX pin of your PIC. But you'll need a RS232 inverter chip like the MAX232.

    BUT if you still want to use SERIN SEROUT
    rc6/tx => PORTC.6
    rc7/rx => PORTC.7

    SERIN PORTC.7 ......
    SEROUT PORTC.6 .......

    be sure to set mode to Inverted
    Last edited by mister_e; - 16th February 2005 at 05:35.
    Steve

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

Similar Threads

  1. Creating RF to test circuits
    By Tobias in forum General
    Replies: 2
    Last Post: - 22nd November 2009, 21:27
  2. TMR1 external LP xtal setup check
    By comwarrior in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 13th October 2009, 18:11
  3. pic first build test board not running
    By comwarrior in forum Schematics
    Replies: 11
    Last Post: - 29th June 2009, 16:48
  4. ADCIN setup for PIC16F688
    By PixController in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 29th February 2008, 18:38
  5. Replies: 3
    Last Post: - 26th January 2005, 13:41

Members who have read this thread : 1

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