Dean Biddle wrote: > > Hi, > > Is it possible to simulate a P16F87x USART receive interrupt (i.e. set the > RCIF flag) using a Debug stimulus (Debug>Simulator Stimulus>....) under > MPLAB for Windows ver. 4.0. If so, should asynchronous, clock or register > stimulus be used when the following simple code is run? > What I did was use the "modify" option to change the contents of RCREG and set PIR1 whenever I wanted to simulate the reception of data. Note that you have to manually clear the RCIF flag as the simulator DOES NOT simulate the UART itself...(this brought me much frustration last week) hope this helps, D