niklasekstrom / a314

A314 is a family of expansions for Amiga computers that lets a Raspberry Pi (RPi) be used as a co-processor to the Amiga
Creative Commons Zero v1.0 Universal
255 stars 32 forks source link

Automatically detect and use other clock ports than standard 0x00d80001 #79

Closed sq7bti closed 6 months ago

sq7bti commented 2 years ago

It would be convenient for users without the need to modify and recompile their own driver software to make use of their clock-port expanders. For details about the fundamentals of clock port expander's operation, typical available addresses, etc. please refer to this handy tutorial: http://www.robthenerd.com/projects/clockport/how

niklasekstrom commented 6 months ago

It is now possible to change which clockport address is used in a configuration file.

Doing automatic detection is a bit problematic, because the CPLD used is almost completely full, so there aren't enough spare gates to implement a read-only detection register. Using a "write then read" access pattern for probing is problematic because it might mess with the operation of other clockport devices. So for now I think we will have to do with the ability to configure the clockport address manually.