Bob, I have seen this section in mplab, but to get to this section of code would require that certain conditions, ie high signals be seen on my pic on some pic pins, I don't know how to set these conditions on the simulator. It would be a great help if I could get the simutator to run the code loop that I'am trying to figure out. This way I could see what the registers are doing. Can someone enlighten me on pin stimulas in the simulator? Regards, Steve -----Original Message----- From: pic microcontroller discussion list [mailto:PICLIST@MITVMA.MIT.EDU] On Behalf Of Bob Barr Sent: Sunday, January 27, 2002 2:23 PM To: PICLIST@MITVMA.MIT.EDU Subject: Re: [PIC]:Checking a register for a value On Sun, 27 Jan 2002 13:13:12 -0500, Steve Kasm wrote: >I do know how to do it in the mplab code, >If you refer to my posting re:pic :code help needed? posted on Saturday >I posted a snippet of code on what I'am trying to do, my problem is that >The bit test and register test that I was trying to perform does not >seem to >Want to work and without having the emulation system it is really hard >to watch the code run to see why the bit test are not working the only >thing I can do is make some changes program the chip and drop it in the >proto. > Have you tried running the code snippet with the simulator in MPLAB? It allows you to step through the code and see what's going on. No emulator needed and no repetitive burn and test. Regards, Bob -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads