SERIN and SEROUT


Results 1 to 11 of 11

Threaded View

  1. #2
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default

    Hello CumQuaT,
    Welcome to the forum.
    Quote Originally Posted by CumQuaT View Post
    Anyone have some advice?
    You could start by telling us what kind of problem you are having . . . DOA . . . ?
    A couple of things, DEFINE OSC 4 near the top of your code.
    If you are not using analog on PortA add cmcon = 7 to disable the comparators there so it doesn't trip you later.
    Set up your Ports as high or low before setting your TRIS registers, and do not skip setting those.
    Code:
    'a config statement should go here unless default config is just right
        DEFINE OSC 4
        cmcon = 7
        PortA = 0
        PortB = 0 set all output latches low
        TrisA = %00000000 'set PortA as all outputs
        TrisB = %11100000 '5,6,7 as inputs all others as outputs
    Main:
        ' . . . . your code goes here
        goto Main
    end
    EDIT: Serial data, True idles high, and wants a pull up resistor on the data line to 5v +
    Inverted idles LOW and wants a resistor pulling to logic LOW or ground.
    Last edited by Archangel; - 1st September 2009 at 05:22.
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

Similar Threads

  1. PIC16f877 code crosses boundary @800h
    By inventosrl in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 6th April 2009, 22:03
  2. Advice-scrutiny for my serial controller
    By kevlar129bp in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 13th December 2008, 17:11
  3. Help with serin, serout, Manchester encoding
    By oneohthree in forum mel PIC BASIC Pro
    Replies: 30
    Last Post: - 5th April 2007, 13:31
  4. Serial interface with RFID reader
    By brid0030 in forum Serial
    Replies: 8
    Last Post: - 23rd January 2007, 06:23
  5. SerIn and SerOut
    By Dwayne in forum FAQ - Frequently Asked Questions
    Replies: 0
    Last Post: - 21st July 2004, 15:54

Members who have read this thread : 2

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