How to read ID locations of PIC 18F4550??


Results 1 to 3 of 3

Threaded View

  1. #2
    Join Date
    Nov 2005
    Location
    Perth, Australia
    Posts
    429


    Did you find this post helpful? Yes | No

    Default

    why not just use the TBLRD and TBLWT instructions?

    for example: (note: untested)

    Code:
    VAR i BYTE
    VAR ID BYTE[8]
    
    TBLPTRU=$20 ' Address $200000
    TBLPTRH=$00
    TBLPTRL=$00
    
    FOR i=0 TO 7
    @TBLRD*+  ; Get value and increment the address
    ID[i]=TABLAT  ' Store the ID
    NEXT i
    *edit* changed so it saves all 8 IDs
    Last edited by Kamikaze47; - 10th January 2010 at 07:29.
    "I think fish is nice, but then I think that rain is wet, so who am I to judge?" - Douglas Adams

Similar Threads

  1. Q: using MCLR for Input on 12F683
    By picster in forum mel PIC BASIC Pro
    Replies: 46
    Last Post: - 31st January 2009, 15:25
  2. 18F4550 Bootloader enter via eeprom setting
    By bradb in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 22nd November 2008, 23:51
  3. Replies: 16
    Last Post: - 3rd November 2008, 19:58
  4. Can a PIC PIC a PIC?
    By afbecker in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 22nd January 2008, 19:55
  5. Write and Read from eeprom
    By savnik in forum mel PIC BASIC Pro
    Replies: 23
    Last Post: - 9th June 2007, 14:56

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