>myke predko wrote: >> >> >Morning/Evening everyone ! >> > >> >I have some periodical signal at pin (RC7 for example) >> >Signal is described by following electrical diagram: >> > >> > +----+ +------------+ +-------------+ +--- >> > | | T2 | | T4 | | T6 | >> >--+ T1 +-------+ T3 +----+ T5 +-------------+ >> > >> > | <--- F U L L S I G N A L P E R I O D ---> | >> > >> > >> >I.e. at T1, T3, T5 - signal are logical "high" and at T2, T4, T6 - >> >logical "low" >> >T1 .. T6 durations are equal the quantities of instruction cycles. >> >For example: T1=5 T2=7 T3=12 T4=3 T5=12 T6=15 >> >> You'll have to use a Stimulus File. >> >> For the example above, it would be: >> >> Step RC7 ! Define the Pins >> 1 0 ! Start Low >> 5 1 ! T1 >> 7 0 ! T2 >> 12 1 ! T3 >> . >> : - And So on >> > >So Step parameter mean points of time when RC7 parameter take next >value, for >example above at start moment (time=1) RC7=0 , at time=5 RC7=1 , at >time=7 RC7=0 , >i.e. parameter Step means absolute value when pin take next value ? > >Or maybe parameter Step mean relative value - i.e after start pin RC7=0 >during >step=1 , RC7=1 during step=5 and so on ... It's absolute, not relative. And, the values change at the start of the clock. You can also do a time based measurement (but I haven't tried that yet) - it was posted on the list a few days/week ago. >P.S. If someone have detailed documentation about internal format of >stimulus file The best place to get the documentation is to get the MPSIM document from the Microchip Web Page. myke Today, the commercial sector is advancing computer and communication technology at a breakneck pace. In 1992, optical fiber was being installed within the continental U.S. at rates approaching the speed of sound (if computed as total miles of fiber divided by the number of seconds in the year). Aviation Week and Space Technology, October 28, 1996