Please explain me WHY!


Closed Thread
Results 1 to 7 of 7

Hybrid View

  1. #1


    Did you find this post helpful? Yes | No

    Default

    Try adding this to your loading values:

    trisC = %00000000


    This will set your portC as outputs.
    The zeros fromleft to right are portC.7, portC.6, portC.5, portC.4, portC.3, portC.2, portC.1, portC.0.
    You can changed the 1's or 0's depending on what you want them to be. In your case, all zeros for outputs.

    or
    'add your stuff here'
    trisC = %00000000

    Main:
    PORTC = %00001111
    pause 1000
    PORTC = %11110000
    pause 1000
    Goto Main

  2. #2


    Did you find this post helpful? Yes | No

    Default

    for tris, 0 is output and 1 is input

Similar Threads

  1. i need more explain
    By lo0oly in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 13th April 2009, 13:55
  2. 16F676 Please explain this problem...
    By Jayhovah in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 9th May 2008, 21:30
  3. Replies: 8
    Last Post: - 14th April 2008, 06:58
  4. Please explain about this program
    By wafagenius in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 10th October 2006, 01:25
  5. Please explain PORTB.0[i]
    By blainecf in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 2nd July 2006, 01:31

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