=->Scott wrote: =->>I want to simulate the reception of 4 bytes (rs232 format 9600 baud with 1 =->>stop, and 1 start bit) by a 16C84 in MPSIM. snip Myke wrote: snip =->Actually, youv'e done all the hard stuff. =->The Stimulus file is pretty easy. The first part is defining the pins to be =->used, followed by the actual data. ie to send "A" (0x041) to the PIC pin =->RBO, I would use the format: =-> =-> =->STEP RB0 ! Define the Port Registers =-> 1 1 ! Start with everything high =-> ! =->1000 0 ! Start Bit after 1000 cycle delay to allow =-> ! Program to Start up =->1104 1 ! Bit 0 =->1208 0 ! Bit 1 =->1312 0 ! Bit 2 snip Myke, What if I want the pins to be high for the duration of the bit? Do the commands above "toggle" the pin's state or would I have to do something like: . . 1104 1 1105 1 1106 1 . etc. . 1206 1 1207 1 1208 0 <- Next bit 1209 0 etc... ??? TIA, Scott