Shop OBEX P1 Docs P2 Docs Learn Events
Has anybody ever... — Parallax Forums

Has anybody ever...

CannibalRoboticsCannibalRobotics Posts: 535
edited 2008-10-25 14:05 in Propeller 1
played with the chip select pins on the EEPROM; A0,A1 & A2. I'm wondering if multiple EEPROMS could be used with a flip flop and the RESET command to cause a prop to initially load a 'survey program' from EEPROM #00. Identify it's environment then select the appropriate software to load from another EERROM #01, #10 or #11. Reset the flip flop after a timeout so that a complete power down would cause it to reinitialize to EEPROM #00.
The application is this. I'm building a prop based board with a Linx transceiver. The mother board has nothing but a prop, EEPROM, radio and power. It connects to daughterboards via a 0.10' pin header. For a controller application it has one daughter board, for the rover/robot, it has a another daughter board. I want it to self identify and load code such that it does not have to carry around extra code from the 'other' environment.
Could I socket program the respective EEPROMS then just plug them in?

Jim-

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Signature space for rent, only $1.
Send cash and signature to CannibalRobotics.

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2008-10-25 14:05
    It's much easier to just use a loader that you can incorporate into your program. FemtoBasic's sdspiFemto.spin object is designed to be added to other programs and includes a loader (bootEEPROM) that will load and start a 32K Spin binary from any 32K "page" of EEPROM. Each pair of I/O pins is a 512K address space with the 16 pairs of I/O pins giving a total of 8MB of potential EEPROM. The normal boot EEPROM on pins 28/29 would start at $700000. The next EEPROM on those I/O pins would start at $710000.

    You can use FemtoBasic or any of its variations to program the additional EEPROM. You'd use the Propeller Tool to load your program to the boot EEPROM, then load FemtoBasic to RAM and use the COPY statement to copy the program from the boot EEPROM to any other 32K "page", then repeat this process for any others. The last step is to load your master program into the boot EEPROM.

    Post Edited (Mike Green) : 10/25/2008 2:11:05 PM GMT
Sign In or Register to comment.