Shop OBEX P1 Docs P2 Docs Learn Events
Decode the first 16 bytes of the EEPROM on the propeller — Parallax Forums

Decode the first 16 bytes of the EEPROM on the propeller

dr hydradr hydra Posts: 212
edited 2015-06-04 16:30 in Propeller 1
From address 0000 thr 0010 on the eeprom what do you first 16 bytes mean? Do they set the PLL or CLK?

Comments

  • Dave HeinDave Hein Posts: 6,347
    edited 2015-06-04 13:43
    0-3 clkfreq
    4   clkmode
    5   checksum
    6-7 pbase
    8-9 vbase
    a-b dbase
    c-d pcurr
    e-f dcurr
    
  • Cluso99Cluso99 Posts: 18,069
    edited 2015-06-04 16:08
    pbase, vbase, dbase, pcurr and dcurr are used to launch the user's spin program in cog0.

    pbase = program base address in hub ram
    vbase = variables base address in hub ram
    dbase = stack base address in hub ram
    pcurr = current program address being executed in hub ram
    dcurr = current stack address in hub ram
  • JonnyMacJonnyMac Posts: 9,105
    edited 2015-06-04 16:30
    Knowing the layout of these 16 bytes allows you to load a .binary file from an SD card into the EEPROM -- I'm doing this now on a customer project that is too big to fit into 32K, and has logical sections.
Sign In or Register to comment.