chili-chips-ba / openCologne

Spicing up the first and only EU FPGA chip with a flashy new board, loaded with a suite of engaging demos and examples. https://www.chili-chips.xyz/open-cologne
https://nlnet.nl/project/openCologne
BSD 3-Clause "New" or "Revised" License
44 stars 2 forks source link

PCB PMOD Request: Unique I/O expander #6

Open chili-chips-ba opened 5 months ago

chili-chips-ba commented 5 months ago

While working with Olimex GateMateA1-EVB, we realized that there was only one push-button at user disposal, whereas our TetriSaraj game needed five. Similarly the number of user LEDs is inadequate for debugging (@TsvetanUsunov, take note).

We believe that many other examples would also benefit from a richer complement of LEDs and buttons, and recommend providing a PMOD with an 8-bit bank of each.

Given that this problem is due to GateMate somewhat lower I/O count compared to FPGAs in the same category (@DadoCCAG, take note), these 16 additional lines should come from a GPIO expander based on 1-Wire protocol, and would therefore consume only one FPGA I/O pin for the gain of 16 (or more) slow user I/Os.

To enable this new PMOD hardware, we shall within this project develop RTL for 1-Wire Controller.

chili-chips-ba commented 2 days ago

@goran-mahovlic, the 1-Wire Controller Example is now available:

goran-mahovlic commented 1 day ago

Do you maybe have some chip on your mind that we could use? I have only used I2C ones with IRQ capabilities.

chili-chips-ba commented 1 day ago

There are also Real-Time Clock devices with 1-wire interface such as DS2417.

We are certain that the Far-Eastern silicon suppliers have their own equivalents at lower price points. If that option is open, we can also list some from their portfolio.

goran-mahovlic commented 1 day ago

DS2408 is really overpriced - on Mouser it is more then 10€

We are certain that the Far-Eastern silicon suppliers have their own equivalents as a lower price points. If that option is open, we can also list some from their portfolio.

Sure! I am just preparing orders from LCSC so if something is available there it would be perfect!

chili-chips-ba commented 22 hours ago

As 1-Wire GPIO expanders seem rather scarce, we could amend the plan and build an I/O expander that's truly different from the rest of the crowd. Here are some options:

---1--- Differentiate by capacity, such as by offering a large number of I/O

---2--- Differentiate by extra functionality, such as by offering GPIO with built-in FIFOs, UARTs, PWM, Keypad, PowerWakeup, etc.

goran-mahovlic commented 16 hours ago

Would it be ok if we start with something simple like PCA9535

I have that one at home as we have used it in MegaPhone project...

We could use it with few LEDs and Keypad Matrice as a PoC - then if needed per project we could add any of the complex ones?

PCA9505 is also fine but I will need to order it, and we need to check what would it be connected to...

I also do not know if it is better for you that we use PMOD form factor for this one or we could use one of Olimex top 3 connectors?

chili-chips-ba commented 8 hours ago

PCA9535 is very popular and also available on LCSC. It does the job, but it does not add the uniqueness.

For the latter, we are proposing to add a ULN2003 into the mix. That would also justify the use of top Olimex connector, which has more pins than a PMOD -- We would now not be blocking them without adding value.