Port Indexing


Closed Thread
Results 1 to 3 of 3

Thread: Port Indexing

  1. #1
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,115

    Default Port Indexing

    I am almost ready to burn my PIC on the Microwaves!

    A simple silly thing like indexing is not working while direct port access works OK. If anyone see what I don't please reply.

    Pic used is 16F877 with PBP 2.40


    Ioannis
    Attached Files Attached Files
    Last edited by Ioannis; - 25th September 2006 at 11:07.

  2. #2
    Join Date
    Jan 2006
    Location
    Istanbul
    Posts
    1,185


    Did you find this post helpful? Yes | No

    Default

    Hi Ioannis,


    Why do you need to use HIGH and LOW? Any particular reason?

    The code below should work ok!

    Code:
    for i=0 to 3
       port_ix.0[i] = 1
       pause 200
       port_ix.0[i] = 0
       pause 200
    next i
    "If the Earth were a single state, Istanbul would be its capital." Napoleon Bonaparte

  3. #3
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,115


    Did you find this post helpful? Yes | No

    Default Port Indexing

    Yes, that was the problem.

    High and Low are Documented commands.

    The =1 or =0 are Not!

    Well, that kind of port accessing is neither too, but anyway!

    Thanks a lot for the reply.

Similar Threads

  1. Indexing Port Pins
    By Bruce in forum Code Examples
    Replies: 6
    Last Post: - 5th January 2014, 08:31
  2. Indexer not indexing...a basic PBP problem??
    By jellis00 in forum General
    Replies: 8
    Last Post: - 24th March 2009, 16:53
  3. port config.
    By tamertokgoz in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 25th July 2008, 12:25
  4. Another question RE port line indexing
    By muddy0409 in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 7th August 2007, 15:23
  5. Microcontroller with 2 way paging application problem
    By oneohthree in forum mel PIC BASIC Pro
    Replies: 30
    Last Post: - 20th April 2007, 17:27

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