LockedXC8 using unimpmimented registers?

Author
sitongia
Super Member
  • Total Posts : 235
  • Reward points : 0
  • Joined: 2005/06/23 18:16:46
  • Location: US
  • Status: offline
2014/07/10 15:22:37 (permalink)
0

XC8 using unimpmimented registers?

Part is PIC16F1509. Problem is when I fill the string buffers near their assigned length, the firmware freezes until a WDT reset. Looking at the map file and also the addresses shows these buffers assigned to addresses in banks 3, 4 and 5. According to the datasheet Table 3.3 the last GP register is at 0x16F. RAM is not implemented in these banks at the addresses assigned. Yet this works half of the time.
 
post edited by sitongia - 2014/07/10 15:33:52
#1

2 Replies Related Threads

    ric
    Super Member
    • Total Posts : 22101
    • Reward points : 0
    • Joined: 2003/11/07 12:41:26
    • Location: Australia, Melbourne
    • Status: offline
    Re: XC8 using unimpmimented registers? 2014/07/10 15:30:29 (permalink)
    +2 (2)
    The datasheet pages 21 and 22 are mis-labelled.
    The PIC16F1508 has RAM in banks 0-2
    The PIC16F1509 has RAM in banks 0-5 and part of 6
     
    (Note, the captions on those pages are wrong too. They say "BANK 1-7" when it is in fact 0-7.
    I guess this was another task delegated to the summer vacation student...)

    I also post at: PicForum
    Links to useful PIC information: http://picforum.ric323.co...opic.php?f=59&t=15
    NEW USERS: Posting images, links and code - workaround for restrictions.
    To get a useful answer, always state which PIC you are using!
    #2
    sitongia
    Super Member
    • Total Posts : 235
    • Reward points : 0
    • Joined: 2005/06/23 18:16:46
    • Location: US
    • Status: offline
    Re: XC8 using unimpmimented registers? 2014/07/10 15:39:24 (permalink)
    +2 (2)
    Thanks. Going along with your explanation, whether summer interns or senior engineers writes it, someone else should always check the work.
    #3
    Jump to:
    © 2018 APG vNext Commercial Version 4.5