Hi Pavel, Could you attach the SCL file, so that it might show us what could be the problem. BTW: SCL is a quite powerful language actually that is not documented by Microchip. Usually I found easier to write the SCL file by a text editor or even better, convert a WAV file into an SCL using a small dirty tool I wrote -- it looks something like this: // // PWM_strait_1.5.SCL // Generated by WAV2SCL.PL // Thu Jan 1 00:00:00 1970 // configuration for "pic12f675" is end configuration; testbench for "pic12f675" is begin process is begin report "Stimulus actions INIT GP3 to LOW for 2ms"; GP3 <=3D '0'; wait for 2 ms; loop // overall of 22 ms frame rate report "STATE:HIGH for 1.5ms"; GP3 <=3D '1'; wait for 1.5 ms; report "STATE:LOW for 20.5ms"; GP3 <=3D '0'; wait for 20.5 ms; end loop; end process; end testbench; Change the processor type for that you have, and pin names etc to whatever that processor uses, then 'ms' to 's' or 'us' accordingly, basically that's it... Tamas On 20/09/06, Pavel Ko=F8ensk=FD wrote: > > Hello, > > I have a problem with stimulus file in MPLAB 7.30. > > I am debugging software where PIC is receiving packets from simple > radiomodem (868 MHz, AM, OOK). The transmitting side works OK, and I am > trying to debug the receiver. > I used the SCL generator in MPLAB and I created the stimulus file which > should drive the receiving pin of the PIC in MPSIM. > In the SCL generator, the whole thing looks like: > > Time units us > > Time RB0 > > 0 0 > 5000000 1 > 5004000 0 > > and so on > > It means that at time 0, the RB0 pin is low. After 5 seconds, the RB0 > goes high (start of the transmittion), after 4 ms, RB0 goes low (first > start bit) etc. > > But, when I generate the SCL file and when I attach it to the > simulation, MPLAB react correctly to the first event (RB0 going high > after 5 seconds), but the simulator ignore the rest of the file. RB0 > never goes low after 4 ms and the rest of the file (the whole simulated > transmittion) is ignored. > > Anyone have some idea where I am wrong ? > > Thx for your help > > Best regards > > PavelK > > -- > http://www.piclist.com PIC/SX FAQ & list archive > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist > -- = unPIC -- The PIC Disassembler http://unpic.sourceforge.net -- = http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist