Running Spin code on the Micromite Companion v1.2
dvanaria
Posts: 13
in Propeller 1
I'm trying to figure out how to run native Spin code directly on the Propeller chip of the MMC (Micromite Companion).
I'm actually reading through Andre LaMothe's book "Game Programming for the Propeller Powered HYDRA" and I'd like to try running some of the demo programs (.spin files) on the MMC, if possible.
I know the HYDRA runs entirely off the Propeller chip, and that on booting it reads whatever program is stored on the 128K external EEPROM chip. To run one of the demo programs on a real HYDRA, you would write the .spin program directly to the EEPROM and then reboot.
But on the MMC, which has a 32K EEPROM chip, this chip holds the critical firmware of the terminal emulator, the serial connection to the Micromite chip, etc, so this can't be over-written obvoiusly.
Is there a way to run the .spin files directly on the regular MMC setup?
Thanks for any help you can give me on this.
I'm actually reading through Andre LaMothe's book "Game Programming for the Propeller Powered HYDRA" and I'd like to try running some of the demo programs (.spin files) on the MMC, if possible.
I know the HYDRA runs entirely off the Propeller chip, and that on booting it reads whatever program is stored on the 128K external EEPROM chip. To run one of the demo programs on a real HYDRA, you would write the .spin program directly to the EEPROM and then reboot.
But on the MMC, which has a 32K EEPROM chip, this chip holds the critical firmware of the terminal emulator, the serial connection to the Micromite chip, etc, so this can't be over-written obvoiusly.
Is there a way to run the .spin files directly on the regular MMC setup?
Thanks for any help you can give me on this.
Comments
The MMC doesn't have exactly the same hardware as the Hydra, so a lot of the demo programs need to be changed at least slightly to work on the MMC. What particularly do you want to run?
Thanks for the instructions on how to get the spin code onto the MMC. I have a PropPlug to get the file onto the Propeller's RAM (RAM only, and not RAM to EEPROM).
I will test it out and see if I can get a simple spin program to run.
MMC uses 5MHz crystal multiplied by 16 to get 80MHz system clock. Hydra uses 10MHz crystal multiplied by 8 to get 80MHz system clock. _clkmode and _xinfreq statements in Hydra programs may need to get changed. MMC probably uses
_clkmode = xtal1
_xinfreq = 5000000.
I/O compatibility
MMC and Hydra use same I/O pins (16-23) for VGA. Code written for Hydra VGA should work with MMC.
Hydra uses I/O pins 24-27 for NTSC video output. Any group of 4 I/O pins starting with multiple of 4 can be used if source code is changed to match.
Hydra uses I/O pin 7 for mono audio output. Most Propeller boards use a pair of I/O pins for stereo audio output. Software should work on non-Hydra boards with I/O pin change.
Hydra keyboard and mouse uses 4 I/O pins for each and hookup (and driver) are incompatible with other boards which use 2 I/O pins for each. There is a driver (comboKey) in the Propeller Object Exchange which can work with either setup.