Cognew - I really should know this by now...
Vega256
Posts: 197
con _clkmode = xtal1 + pll16x _xinfreq = 5_000_000 var byte data long stack pub main data := 10 cognew (startRenderCog, @stack) pub startRenderCog dira [24..27] := %1111 repeat outa [24..27] := dataI have four LEDs connected to I/O pins 24-27. When the code is run, no LEDs are lit (I am aware that 10 would be 1010). Is there something special I should know about cognew? I haven't utilized parallel processing extensively.
Comments
If you declare your varaibles in a DAT section they will not be re-ordered.
why do you use uploading *.bin or *.EEPROM files at all?
Is there a particular reason why you don't just hit F11 in the propellertool to make the propellertool do five things automatically in sequence ?
1.) compile your code
2.) download into propeller-RAM
3.) verifying RAM
4.) download into EEPROM
5.) verifying EEPROM
best regards
Stefan
1.) I compile the code
2.) save the compiled code as an .eeprom file
3.) upload the .eeprom file to my eeprom programmer
4.) burn the .eeprom file into my eeprom
5.) insert the eeprom in my circuit
6.) run the Propeller
It is taken from page 5 of the datasheet of the propeller.
You simply connect pin 30,31 and reset to pin 11 to the circuit and you are done.
You just need a serial port or an USB-Serial-adapter.
Make sure the USB-adapter uses an FTDI-chip that you can use the tested FTDI-driver
best regards
Stefan