Accessing SFRs by number


Closed Thread
Results 1 to 2 of 2

Hybrid View

  1. #1
    Join Date
    Sep 2005
    Location
    Campbell, CA
    Posts
    1,107

    Default Accessing SFRs by number

    I am familiar with writing to PORTB.0 with the statement
    PORTA.0(8) = X, and I know the TRIS registers work the same way.

    My question is, can I access ALL the SFRs this way? For example
    can I read the TOSU register with the statement
    X = PORTA.0(127) ?
    Charles Linquist

  2. #2
    Join Date
    Sep 2005
    Location
    Campbell, CA
    Posts
    1,107


    Did you find this post helpful? Yes | No

    Default

    I realized that I'm reading bits, not bytes. Ignore the post.
    Charles Linquist

Similar Threads

  1. Dynamic USB Serial Number (PIC18F4550)
    By awmt102 in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 16th July 2009, 17:03
  2. Working with the random number generator
    By kwelna in forum mel PIC BASIC
    Replies: 9
    Last Post: - 16th January 2007, 17:50
  3. Accessing a 9 bit number from two bytes
    By Radiance in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 9th June 2005, 17:35
  4. Random number results
    By bartman in forum mel PIC BASIC
    Replies: 3
    Last Post: - 9th March 2005, 17:39
  5. more random number questions
    By bartman in forum mel PIC BASIC
    Replies: 1
    Last Post: - 14th November 2004, 17:55

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