IRQ of custom parallel port

Re: IRQ of custom parallel port

by René Beuchat -
Number of replies: 0

You said:

So, I would like to set-up a simplest working interrupt logic and generate an interrupt, when '1' is written into the second bit in parallel port.

So, my condition for an interrupt:
IRQ <= '1' when iIRQEn = '1' and iRegDir(2) = '1' and ParPort(2) = '1' else '0';

- You want the bit 2, thus the 3rd.


In general, do not put a printf () in a ISR.

What do you have on bit 2 with the logic analyzer ? a square wave ?