PIC 16F877 programming help


Closed Thread
Results 1 to 3 of 3
  1. #1
    the_piculiar's Avatar
    the_piculiar Guest

    Default PIC 16F877 programming help

    Greetings All!

    I am currently working on a piece of code where i want to send an output to a serial port of a PC using the SEROUT command and setting the BAUD rate. The major fallback is that i am new with this, and i lack PIC BASIC PRO manuals and internet time to research the use of these commands.

    The idea: 5 sensors/switches are inputs to the 16f877. When one of these are HIGH, a 1 is outputed to the serial port of the PC.

    I would greatly appreciate it if anyone will be willing to aid me writing this code.

    Regards...The PICuliar

  2. #2
    Join Date
    Aug 2003
    Posts
    985


    Did you find this post helpful? Yes | No

    Default

    'too easy
    trisb = 1 ' portb is input
    Check_Port:
    IF portb <> 0 THEN 'check portb
    serout porta.0,mode,["1"] 'conditionaly send byte
    goto Check_Port 'do it forever

    'Cheers, Art.

  3. #3
    Join Date
    Feb 2004
    Location
    Germany
    Posts
    762


    Did you find this post helpful? Yes | No

    Default

    Looks like here is the next attendee of that course

    @piculiar

    See Manual

    Well,
    you lack the time to research,
    we lack the time to do your homework.

    You can find many examples if you spend a little time to search this forum.
    Last edited by NavMicroSystems; - 18th July 2005 at 22:49.
    regards

    Ralph

    _______________________________________________
    There are only 10 types of people:
    Those who understand binary, and those who don't ...
    _______________________________________________



Similar Threads

  1. SPI Communication between two pic 16f877
    By anti83 in forum Serial
    Replies: 1
    Last Post: - 5th July 2008, 21:06
  2. Multiple PIC programming
    By Nicholas in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 7th May 2007, 23:47
  3. serial communication between CMUcam and PIC 16F877
    By gengkeys in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 30th March 2007, 06:43
  4. Use the PIC 16f877 or 877A instead of shift registers.
    By tsanders in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 27th October 2006, 17:23
  5. Pic to Pic programming
    By TONIGALEA in forum General
    Replies: 5
    Last Post: - 7th August 2004, 13:44

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