OpenHornet icon indicating copy to clipboard operation
OpenHornet copied to clipboard

AMPCD Controller IRQ PIN not Connected to IRQ Capable PIN on Pro-Micro

Open kbastronomics opened this issue 2 years ago • 6 comments

Summary:

The AMPCD Controller board is designed to use the IRQ pin of the TCA9554PWR to let us know when a switch is pressed, the PIN on the PRO-Micro though it's connected to is not IRQ Capable.

Expected Results/How It Should Work:

IRQ routine would be written so that when the any button is pressed a Interrupt is triggered and the software can read the TCA9554 to see which one it was.

Actual Results/How It Does Work:

Since the D6/A7 Pin is not IRQ capable you can not use a interrupt route and must poll the switches. Swapping PINS D6 with D8 would resolve this issue which also allows use of Pin Change Capture IRQ there would be no impact functionality but is a board change

Screenshots:

From the AMPCD COntroller showing the IRQ Pin.

image

From the PIN OUT of the PRO-Micro show that D6/A7 is not a IRQ capable pin

image

And from the datasheet

image

More Information

Category:

Check one or more items.

  • [X] ECAD (PCB Design or other electrical hardware)

Type:

Check one item.

  • [X] Bug

Applicable End Item:

Check one item.

  • [X] Lower Instrument Panel (LIP)
  • [X] Main Instrument Panel (MIP)

Associated Filename(s):

ddi_ampcd_controller

kbastronomics avatar Jan 02 '23 16:01 kbastronomics

Is this a breaking bug that prevent the AMPCD from working at all, or is it an enhancement to reduce overhead on the AMPCD?

jrsteensen avatar Jan 02 '23 16:01 jrsteensen

This prevents it from working as designed. It can be coded around.

The intent of the IRQ pin was to prevent the need to use polling of the buttons and instead the IRQ pins would let you know a button was pressed then you go check for which one.

Instead we'll have to POLL which means constantly checking for a button press and if found update DCS-BIOS

kbastronomics avatar Jan 02 '23 16:01 kbastronomics

Perfect, thank you. I'll save this one for the next major revision of the PCB in the future then. :)

jrsteensen avatar Jan 02 '23 16:01 jrsteensen