Help


Closed Thread
Results 1 to 2 of 2

Thread: Help

  1. #1
    4u2n's Avatar
    4u2n Guest

    Default Help

    I want to learn program a pic in basic

    I have try many thing but can't get work

    Can some on help to defint the start of the PIC BASIC PROGRAM


    I want to have RB0 to RB5 to be OUTPUT
    and RA0 to RA3 to be INPUT

    The input/output is aktiv at +5v

    alle have to sit to To as not aktiv..

    The chip i a 16F628A

    please help
    Last edited by 4u2n; - 22nd September 2004 at 19:13.

  2. #2
    Join Date
    Dec 2003
    Location
    Wichita KS
    Posts
    511


    Did you find this post helpful? Yes | No

    Default

    Hello

    4u2n>>I want to learn program a pic in basic

    I have try many thing but can't get work

    Can some on help to defint the start of the PIC BASIC PROGRAM
    <<

    There are many examples on the site....

    If you want to compile the programs, there is a site called.

    www.compilespot.com

    This site will allow you to use the compiler to a limited extent.


    4u2n>>I want to have RB0 to RB5 to be OUTPUT <<
    and RA0 to RA3 to be INPUT<<


    well, a start can be something like this... I don't have the chips specs, but this will probably be a good start.


    TRISA=%00001001
    TRISB=%00000000

    if Porta.0=1 then Portb.0=1
    else Portb.0=0
    endif

    if Porta.3=1 then Portb.5=1
    else Portb.5=0
    endif


    this is the best that I can do...I do not fully understand your question, but I think this is a start for you.


    Dwayne
    Ability to Fly:
    Hurling yourself towards the ground, and missing.

    Engineers that Contribute to flying:
    Both optimists and pessimists contribute to the society. The optimist invents the aeroplane, the pessimist the parachute

    Pilots that are Flying:
    Those who know their limitations, and respect the green side of the grass...

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