Jason, Use the stimulus input dialog. You can inject values into registers at certain times, or cycle counts. It takes a little bit to get it set up, but it really helps a lot when you simulate. Regards, Jim -----Original Message----- From: piclist-bounces@mit.edu [mailto:piclist-bounces@mit.edu] On Behalf Of Jason Hsu Sent: Tuesday, February 09, 2010 9:59 PM To: Microcontroller discussion list - Public. Subject: [PIC]MPLAB simulation involving A/D converters For simulating a program that involves the use of A/D converters, is there an alternative to adding a break and manually changing values? I've heard that it's possible to have the simulation read a file to get the A/D values. How do I do this? -- Jason Hsu http://www.jasonhsu.com/swrwatt.html http://www.jasonhsu.com/swrwatt-c.txt http://www.jasonhsu.com/swrwatt-asm.txt -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist