Re: [hatari-devel] Fixed Stocasto and H2O music

[ Thread Index | Date Index | More lists.tuxfamily.org/hatari-devel Archives ]


OK, I think I see the problem with host interrupts.

I coded this a few years ago, but it semms to be bugged (the interrupt test ocures too late).

I'll try to fix it.

I've written a little program to test it. If you have one too, this would make 2 programs to test the fix, and I'd be interrested.

Regards

Laurent



Le 02/12/2020 à 21:15, Laurent Sallafranque a écrit :
I'll look at the timer, this sounds interresting ;)


Le 02/12/2020 à 21:08, Laurent Sallafranque a écrit :
From what I can read in the DSP code, Host port interrupts are taken into account.

Maybe you could send me a little program (DSP part + 68030 part) that does exactly what you described (like this, I'll have the DSP inits for the registers, ... and I'll be able to see what the problem is).


Thanks in advance.

Regards

Laurent



Le 02/12/2020 à 19:46, Mariusz Buras a écrit :
Hello

Port C (section 11 of the DSP56000/1 User's Manual) contains a UART
circuitry which isn't wired anywhere on Falcon (In fact the chip
package doesn't have the pins as it's much smaller than the regular
chip). However, you can still use the bad rate generator as a timer to
trigger DSP interrupts (org p:$1C). I use it in my demo Lockup to
drive my music playback routine.

As for the host port interrupts you can do:
                     org     p:$22
                     movep   x:(r5)+,x:<<M_HTX
                     nop

                     ...
                     move   #some_data,r5
                     bset    #1,x:<<M_HCR    ; enable transmit interrupt


And then you can go and do whatever with the DSP while $22 interrupt
will be fired every time 030 empties the M_HTX register. This is
almost like a DMA ;) I believe this doesn't work in Hatari.

Let me know if you need more info.

Regards
Mariusz




On Wed, 2 Dec 2020 at 18:00, Laurent Sallafranque
<laurent.sallafranque@xxxxxxx> wrote:
Hi,


Can you give me some examples ?

Or documentation source ?

I thought everything was implemented into the DSP.

Regards

Laurent


Le 02/12/2020 à 16:33, Mariusz Buras a écrit :
On Wed, 2 Dec 2020 at 15:26, Nicolas Pomarède <npomarede@xxxxxxxxxxxx> wrote:

thanks, now you can work on the Videl stuffs ;-)

While you're there, it would be nice to get DSP timer implemented and
host port interrupts to drive the transfer on the DSP side :P

Regards
Mariusz







Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/