Interrupt on startup
Posted: Tue Dec 15, 2009 4:47 pm
I have written a flowcode program in Flowcode for an 18F72 PIC.
I am testing it using the eBlocks system - so I assume all pins are terminated correctly and not floating.
Port A is not used, Port B is inputs, Port C is outputs.
It works a treat in simulation, with the RBchange interrupt working perfectly.
However when I compile it to chip, it goes immediately into interrupt.
The INT Enable flowcode block is the first entry after 'Begin'.
If I write a dummy loop sitting waiting for all the switches to be zero before enabling the interrupt it seems to fix it - however this shouldn't be necessary should it????
I am testing it using the eBlocks system - so I assume all pins are terminated correctly and not floating.
Port A is not used, Port B is inputs, Port C is outputs.
It works a treat in simulation, with the RBchange interrupt working perfectly.
However when I compile it to chip, it goes immediately into interrupt.
The INT Enable flowcode block is the first entry after 'Begin'.
If I write a dummy loop sitting waiting for all the switches to be zero before enabling the interrupt it seems to fix it - however this shouldn't be necessary should it????