I posted a message yesterday about a syntax battle I am having with gpsim when trying to add a stimulus file. I want to make a square wave on one of the PIC pins, high for so many cycles, low for so many more cycles. After posting the message, I discovered that I had an extra , at the end of the list of events but that only moved the error to a new spot. The stimulus reads as follows: stimulus asynchronous_stimulus initial_state 1 start_cycle 8000000 period 838 #419 cycles low then 419 high. { 419, 0, 838, 1 } name t1 t1 attached to rb0 ________________________________________ This looks similar to the examples for .stc files found in the gpsim source. I simply changed it to fit what I needed here. As it stands, it should deliver the square wave indefinitely but when I try to run it, the error occurs immediately after the } when applying the name. Here is what happens: gpsim - the GNUPIC simulator version: Release 0.26.1 type help for help **gpsim> ***ERROR: syntax error, unexpected SYMBOL_T, expecting EOLN_T whil= e par sing: 't1' It's obviously very confused at this point. gpsim seems otherwise to do exactly what it should be doing. Martin --=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 .