Interrupt routine testing.

ukmxer

New Member
Can anyone tell me if an interupt routine can be tested without having to blow a chip and have it in circuit.

I am new to this and have just about finished my first draft of my prog and was wondering whether I had to put an additional routine to simulate what would be seen on ra0 or rb0 when interrupt detecting.
 

If you're programming for the PIC it's possible to write a stimulus for your pins in MPLAB - you will find it in the "Debbuger" menu if you set MPLAB SIM as your debugger. However, for simple projects it's easier to just build a circuit and debug it "live". Also, some simple looking signals ( like mechanical pushbuttons and rotary encoders) are not easy to simulate accurately.
 

Just a thought - you most micro's are re-programmable - not sure if you new?

Personally I would simulate it with a some sort of interface to display the pics status/etc.. I'm a big fan of using UART - single wire comms that is quick and efficient, but for interrupt testing I simply make single pins high/low when conditions were met/performed.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…