Driver Development Kit (DDK)

cancel
Showing results for 
Search instead for 
Did you mean: 

interrupt programming on 6509

Are there any examples of how to configure the 6509 for rising edge interrupts using filtering ?

 

I am inserting a pulse onto the 8th pin of the 12th port.

I have configured the interrupt as defined below.

I can see the pulse coming into the card by periodically reading the 12th port.

But I am not yet able to see any interrupts.

 

this is how I configure the interrupt:

 

1) set up rising edge sensitivity configuration register for particular port/bit

2) set up the filter interval register to desired pulse width

3) set up filter enable register for particular port/bit

4) set up the following bits in the master interrupt control register: rising edge int enable, overflow enable, edge int enable, master int enable

 

Then inside my ISR, I plan on doing the following to see if it was my interrupt that was triggered:

 

1) read change status register and look for the following bits to be set: riding edge, master interrupt, edge status.

2) check overflow bit to see if I missed one.

 

Question: Is there any interrupt masking that I must do while reading the interrupt status and processing the bits in the change status reg?

 

Does the above sequence look OK?

 

0 Kudos
Message 1 of 1
(5,677 Views)