I have some code called td.asm which assembles under gpasm and produces td.cod and td.cod runs under gpsim so it is time, how, to feed test signals using stimulus files. I shamelessly stole an example .stc file from the gpsim distribution as it is much like what I need to do. Here it is along with the original comments modified for this situation: stimulus asynchronous_stimulus # The initial state AND the state the stimulus is when # it rolls over initial_state 1 start_cycle 8000000 # the asynchronous stimulus will roll over in 'period' # cycles. Delete this line if you don't want a roll over. period 838 #419 cycles low then 419 high. #Here's where things go wrong. { 419, 0, 838, 1,=20 } #gpsim chokes on the } as a syntax error. # Give the stimulus a name: name t1 t1 attached to rb0 So far, I have tried: gpsim -c td.stc I have also added=20 load td.cod in to td.stc and it does so but it always hits those braces and the party is over. I am actually trying to simulate a square wave signal on RB0 so the numbers in the braces represent one cycle. Is there a better way to produce several thousand cycles of the square wave such that it just loops until done? If I run gpsim td.cod, it lets me step through the program and things look reasonable so the system appears to be sane. As always, thank you. Martin McCormick WB5AGZ --=20 http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist --=20 http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .