PIC's ports individual bits manipulation - how to?


Results 1 to 39 of 39

Threaded View

  1. #6
    Join Date
    Aug 2006
    Location
    SWITZERLAND (french speaking)
    Posts
    938


    Did you find this post helpful? Yes | No

    Default Testing...

    I just made this piece of code as test.
    Code:
    MYPORT  var PORTA
    Loop    var BYTE
    PORTA.0 = MYport.0
    PORTA.1 = MYport.1
    PORTA.2 = MYport.2
    PORTA.3 = MYport.3
    
    PORTA.6 = 1 'Test to check port's state change in simulator...
    
    Start:
        for LOOP = 0 to 3
            myport.0[Loop] = 1  'High
            myport.0[loop] = 0  'Low
        next
        goto start
    END
    It works except the PORTA.6 will change it's status from 1 to 0 when the firt loop will be executed.
    Last edited by flotulopex; - 25th February 2007 at 20:42.
    Roger

Similar Threads

  1. Bits, Bytes Words and Arrays
    By Melanie in forum FAQ - Frequently Asked Questions
    Replies: 24
    Last Post: - 14th June 2016, 07:55
  2. Individual Variable bits
    By tazntex in forum General
    Replies: 4
    Last Post: - 31st January 2008, 18:27
  3. Equating Ports to Data Bits
    By Osiris in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 22nd March 2006, 15:00
  4. error on compiling
    By parker in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 16th June 2005, 14:31
  5. pics with 3 hardware PWM ports
    By CBUK in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 5th August 2004, 00:14

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