@TheMogMiner I've encountered an issue with the SPG ADC hookup,if you leave any of the Star Wars games until it shows the high score table (or get a high score) they stop reading the analog inputs. Pretty sure this didn't happen when it was first hooked up. Could you take a look?
-
Näytä tämä ketju
-
Vastauksena käyttäjälle @MameHaze
Probably not this week, no. This weekend, possibly.
1 vastaus 0 uudelleentwiittausta 1 tykkäys -
Vastauksena käyttäjälle @TheMogMiner
My own tests indicate it doesn't like if (BIT(m_io_regs[REG_ADC_CTRL], 0)) { if (!BIT(old_ctrl, 0)) { It writes the request when the bit is still 1, then obviously 0x2000 is never set, so it never reads the inputs again. Not sure how it should clear it.
1 vastaus 0 uudelleentwiittausta 1 tykkäys -
Vastauksena käyttäjille @MameHaze ja @TheMogMiner
if you comment out "if (!BIT(old_ctrl, 0))" so writing a 1 always triggers, it does of course work fine. Maybe bit 1 isn't actually read/write, and a write of 1 always triggers?
2 vastausta 0 uudelleentwiittausta 1 tykkäys -
Vastauksena käyttäjille @MameHaze ja @TheMogMiner
anyway, I've commented out that line in https://github.com/mamedev/mame/pull/8100 … and pu a note there. If you can remember if there was something that actually requires that it might help further the research, but I see no other solution from the Star Wars code.
1 vastaus 1 uudelleentwiittaus 1 tykkäys -
Vastauksena käyttäjälle @MameHaze
An acquaintance pointed out an SPG270 manual that he sent me, which makes the ADC functionality much clearer than the other manual (SPG288). There's quite a bit missing, I'll see what I can do.
2 vastausta 0 uudelleentwiittausta 1 tykkäys -
Vastauksena käyttäjille @TheMogMiner ja @MameHaze
Also, the SPG270 has a sprite limit of 128 sprites, so I'm pretty sure that the hacked SPG2XX_128 that's used by spg2xx_game_swclone_state can just be renamed to SPG270.
2 vastausta 0 uudelleentwiittausta 2 tykkäystä -
Vastauksena käyttäjälle @TheMogMiner
Also does any of this new info shed further light on other IRQ related areas? "mame smartvad amuseprk" still turns off the main interrupt, then never turns it back on (although I guess I could have missed a security check or something, as a few other WinFun ones do have checks)
2 vastausta 0 uudelleentwiittausta 1 tykkäys
No, though it's also not exactly new info. Simer sent me the SPG270 manual ages ago, I simply forgot that it was there. It's also worth taking all of the manuals with a grain of salt: Bit 13 of the ADC supposedly flags that converted data is ready to read.
-
-
Vastauksena käyttäjille @TheMogMiner ja @MameHaze
It also generates an ADC interrupt if and only if the IRQ is enabled in the ADC control register. Thing is, jak_sith expects bit 13 to be set as soon as the ADC is enabled. What I suspect is that it might actually mean "ADC *can* convert", not "ADC conversion is done".
0 vastausta 0 uudelleentwiittausta 2 tykkäystäKiitos. Käytämme tätä aikajanasi parantamiseen. KumoaKumoa
-
Lataaminen näyttää kestävän hetken.
Twitter saattaa olla ruuhkautunut tai ongelma on muuten hetkellinen. Yritä uudelleen tai käy Twitterin tilasivulla saadaksesi lisätietoja.