Can all registered uses please login, even just for a few minutes..
It helps build a picture where our "good traffic" is coming from..
Thanks :)

Input stops working until reset for some software

Problems with your machine in general.
User avatar
exxos
Site Admin
Site Admin
Posts: 28671
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Re: Input stops working until reset for some software

Post by exxos »

Cwiiis wrote: Fri Oct 13, 2023 11:09 am Well, this may be indicative of some other issue that could be solved, but I've found that if I disconnect the MIDI cables, the issue goes away! They are quite long, I guess that interferes with things somehow? If anyone knows a fix that would allow me to keep the cables connected, I'm all ears...
Midi has opto isolates and buffers on it, so not sure how that can cause any issues with the ACIA.

Capture.PNG
Capture.PNG (151.07 KiB) Viewed 1276 times

Have you checked out singles like E-clock from the CPU to the ACIA ?
Cwiiis
Posts: 59
Joined: Fri Aug 11, 2023 12:26 am

Re: Input stops working until reset for some software

Post by Cwiiis »

exxos wrote: Fri Oct 13, 2023 11:23 am
Cwiiis wrote: Fri Oct 13, 2023 11:09 am Well, this may be indicative of some other issue that could be solved, but I've found that if I disconnect the MIDI cables, the issue goes away! They are quite long, I guess that interferes with things somehow? If anyone knows a fix that would allow me to keep the cables connected, I'm all ears...
Midi has opto isolates and buffers on it, so not sure how that can cause any issues with the ACIA.


Capture.PNG


Have you checked out singles like E-clock from the CPU to the ACIA ?
I've no idea what that even means, so no, afraid not :?
User avatar
exxos
Site Admin
Site Admin
Posts: 28671
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Re: Input stops working until reset for some software

Post by exxos »

Cwiiis wrote: Fri Oct 13, 2023 11:44 am I've no idea what that even means, so no, afraid not :?
Scope pin 14 of the ACIA (E). It comes from the CPU. It's the Enable signal for the ACIA. If that's "bad" it may cause odd problems. Though that be a new fault to me if so. But knowing how screwy these machines are...
User avatar
Badwolf
Site sponsor
Site sponsor
Posts: 3060
Joined: Tue Nov 19, 2019 12:09 pm

Re: Input stops working until reset for some software

Post by Badwolf »

exxos wrote: Fri Oct 13, 2023 11:23 am
Cwiiis wrote: Fri Oct 13, 2023 11:09 am Well, this may be indicative of some other issue that could be solved, but I've found that if I disconnect the MIDI cables, the issue goes away! They are quite long, I guess that interferes with things somehow? If anyone knows a fix that would allow me to keep the cables connected, I'm all ears...
Midi has opto isolates and buffers on it, so not sure how that can cause any issues with the ACIA.
I don't know that area of the ST series at all but IIRC the MIDI and keyboard share an interrupt. Can one 'drown out' the other?

BW
DFB1 Open source 50MHz 030 and TT-RAM accelerator for the Falcon
Smalliermouse ST-optimised USB mouse adapter based on SmallyMouse2
FrontBench The Frontier: Elite 2 intro as a benchmark
User avatar
exxos
Site Admin
Site Admin
Posts: 28671
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Re: Input stops working until reset for some software

Post by exxos »

Badwolf wrote: Fri Oct 13, 2023 12:31 pm I don't know that area of the ST series at all but IIRC the MIDI and keyboard share an interrupt. Can one 'drown out' the other?
It is certainly a interesting question as both the ACIA share the same datalines, CS and IRQ line. Like if the keyboard and midi interrupt happened at the same time which one would "win" :shrug:

Maybe @ijor can shed some light on it?
User avatar
exxos
Site Admin
Site Admin
Posts: 28671
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Re: Input stops working until reset for some software

Post by exxos »

ah no there are 2 CS lines. So each ACIA is on its own address.

Capture.PNG
Capture.PNG (225.17 KiB) Viewed 1250 times

I don't know how TOS processes it interrupts though. Does not seem to be any way to know which chip issued the IRQ.

I can only assume TOS reads the KB one first, and if it gets back "11111111" it assumes no KB input, and further then assumes it is a MIDI IRQ :shrug:
ijor
Posts: 836
Joined: Fri Nov 30, 2018 8:45 pm

Re: Input stops working until reset for some software

Post by ijor »

exxos wrote: Fri Oct 13, 2023 12:58 pm It is certainly a interesting question as both the ACIA share the same datalines, CS and IRQ line. Like if the keyboard and midi interrupt happened at the same time which one would "win" :shrug:

Maybe @ijor can shed some light on it?
Simultaneous interrupts shouldn't be a problem. Software, either TOS or a custom interrupt routine, should be able to deal with that. You can even have multiple simultaneous interrupts triggering on the same ACIA, like one transmit and one receive interrupt. Shouldn't be a problem.
http://github.com/ijor/fx68k 68000 cycle exact FPGA core
FX CAST Cycle Accurate Atari ST core
http://pasti.fxatari.com
ijor
Posts: 836
Joined: Fri Nov 30, 2018 8:45 pm

Re: Input stops working until reset for some software

Post by ijor »

exxos wrote: Fri Oct 13, 2023 1:01 pm I don't know how TOS processes it interrupts though. Does not seem to be any way to know which chip issued the IRQ.
I can only assume TOS reads the KB one first, and if it gets back "11111111" it assumes no KB input, and further then assumes it is a MIDI IRQ :shrug:
Each ACIA has a status registers that indicates if any interrupt is pending, and if so, which ones.
http://github.com/ijor/fx68k 68000 cycle exact FPGA core
FX CAST Cycle Accurate Atari ST core
http://pasti.fxatari.com
Cwiiis
Posts: 59
Joined: Fri Aug 11, 2023 12:26 am

Re: Input stops working until reset for some software

Post by Cwiiis »

So, an interesting discovery - recent Atari STE problems have me using the MiSTer instead so I don't just end up spending all my time debugging/fixing/breaking things - turns out this issue with MIDI killing inputs in some games happens on the MiSTer too! So whatever defect it is, it would appear to be software in nature (or something inherent to the hardware design?) and not specific to just my particular STEs. Bit annoying in that I have to fiddle with settings or physically unplug my midi board/cables to circumvent this, but very interesting that the behaviour isn't limited to just original hardware.
User avatar
Badwolf
Site sponsor
Site sponsor
Posts: 3060
Joined: Tue Nov 19, 2019 12:09 pm

Re: Input stops working until reset for some software

Post by Badwolf »

ijor wrote: Sat Oct 14, 2023 4:17 pm Each ACIA has a status registers that indicates if any interrupt is pending, and if so, which ones.
What might happen if the higher priority interrupt is constantly firing? I'm thinking, for example, of severe noise on MIDI ports causing it to think its buffer is full?

(Completely hand-waving, I know)

BW
DFB1 Open source 50MHz 030 and TT-RAM accelerator for the Falcon
Smalliermouse ST-optimised USB mouse adapter based on SmallyMouse2
FrontBench The Frontier: Elite 2 intro as a benchmark
Post Reply

Return to “HARDWARE ISSUES”