Jean-MarcHarvengt / MCUME

Multi CompUter Machine Emulator for several MCUs
423 stars 60 forks source link

sound on teensy 4.1 (pcm5102) #6

Closed lastclass74 closed 2 years ago

lastclass74 commented 3 years ago

hi .. i dont have sound with uae or any of your emulators .. i checked pin 7 (out1a) no data ?!? .. but have data on pin 20,21 (bclk1) and (lrclk1)

hope you can help me ;) thx

Jean-MarcHarvengt commented 2 years ago

Not sure anymore. I assume you use the teensy41 version on a teensy41. There is an option has sound but it is on by default. May be something with the SDK. I will check this we

lastclass74 commented 2 years ago

Sound great .. love the emulators.. i tested the pcm5102 on a raspberry and works fine .. think this is a software error somewhere .. hope you can check it .. thx for the help

tor. 2. dec. 2021 08.08 skrev Jean-MarcHarvengt @.***>:

Not sure anymore. I assume you use the teensy41 version on a teensy41. There is an option has sound but it is on by default. May be something with the SDK. I will check this we

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Jean-MarcHarvengt/MCUME/issues/6#issuecomment-984349241, or unsubscribe https://github.com/notifications/unsubscribe-auth/AM4SXYPAAJNQIITX4CTMS7DUO4LNPANCNFSM5JCDFWYQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

lastclass74 commented 2 years ago

what sdk version did you use ? thanks for a great project hope you continue it .. love to see a snes emulator and/or a vic 20 emulator claus ..

Den tor. 2. dec. 2021 kl. 09.45 skrev Claus A @.***>:

Sound great .. love the emulators.. i tested the pcm5102 on a raspberry and works fine .. think this is a software error somewhere .. hope you can check it .. thx for the help

tor. 2. dec. 2021 08.08 skrev Jean-MarcHarvengt @.***

:

Not sure anymore. I assume you use the teensy41 version on a teensy41. There is an option has sound but it is on by default. May be something with the SDK. I will check this we

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Jean-MarcHarvengt/MCUME/issues/6#issuecomment-984349241, or unsubscribe https://github.com/notifications/unsubscribe-auth/AM4SXYPAAJNQIITX4CTMS7DUO4LNPANCNFSM5JCDFWYQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

Jean-MarcHarvengt commented 2 years ago

Hi,

I just tested again. Downloaded latest Teensysuino SDK 1.55 (Mac version) I recompiled the Teensyuae41 GIT version also latest GIT VGA library and it is ok, I still have sound. I used this module (price is like 10 times more than 1 year ago !!!) https://www.amazon.nl/PCM5102-Decoder-GY-PCM5102-Interface-PCM5102A/dp/B07VNB54N4/ref=asc_df_B07VNB54N4/?tag=nlshogostdde-21&linkCode=df0&hvadid=517441560399&hvpos=&hvnetw=g&hvrand=2166077023826773566&hvpone=&hvptwo=&hvqmt=&hvdev=c&hvdvcmdl=&hvlocint=&hvlocphy=20054&hvtargid=pla-1406149819862&psc=1

VIN => 3.3 GND to GND LCK to pin 20 (LRCLK1) DIN to pin 9(out1C) BCK to pin 21 (BCLK1) (Arduino SDK is 1.8.13 but I guess it is not the issue)

I know that I do not connect I2C to the PCM5102 module so I assume default initialization. Not sure if that could be the issue. Is it connected differently on the raspberry pi ?

The VIC20 emu runs on the raspberry PICO MCUME. Still have to port it back to the teensy. SNES is tricky. I had started but roms are big. Best I could have was Super Mario world running for 60 secs I think

Regards,

J-M

lastclass74 commented 2 years ago

Hi J-M.

Thanks for checking .. are you sure its pin 9 (out1c) on the schematics on github it say pin 7 (out1a) i try pin 9 still no go ;( .. so i order the same pcm5102 as you have.. and a new teensy v4.1 just to be sure ;) can you share the teensyuae41.ino.hex you compiled .. just to test if the sdk at my end is bad ? thx ..

the teensy64 works great to but usb keyboard dont work (works fine in filemenu) the atari emulator i cant compile .. comes up with a error : expected unqualified-id before 'do' doom works fine ;)

thanks for all the help claus ...

Den tir. 7. dec. 2021 kl. 21.32 skrev Jean-MarcHarvengt < @.***>:

Hi,

I just tested again. Downloaded latest Teensysuino SDK 1.55 (Mac version) I recompiled the Teensyuae41 GIT version also latest GIT VGA library and it is ok, I still have sound. I used this module (price is like 10 times more than 1 year ago !!!)

https://www.amazon.nl/PCM5102-Decoder-GY-PCM5102-Interface-PCM5102A/dp/B07VNB54N4/ref=asc_df_B07VNB54N4/?tag=nlshogostdde-21&linkCode=df0&hvadid=517441560399&hvpos=&hvnetw=g&hvrand=2166077023826773566&hvpone=&hvptwo=&hvqmt=&hvdev=c&hvdvcmdl=&hvlocint=&hvlocphy=20054&hvtargid=pla-1406149819862&psc=1

VIN => 3.3 GND to GND LCK to pin 20 (LRCLK1) DIN to pin 9(out1C) BCK to pin 21 (BCLK1) (Arduino SDK is 1.8.13 but I guess it is not the issue)

I know that I do not connect I2C to the PCM5102 module so I assume default initialization. Not sure if that could be the issue. Is it connected differently on the raspberry pi ?

The VIC20 emu runs on the raspberry PICO MCUME. Still have to port it back to the teensy. SNES is tricky. I had started but roms are big. Best I could have was Super Mario world running for 60 secs I think

Regards,

J-M

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Jean-MarcHarvengt/MCUME/issues/6#issuecomment-988244159, or unsubscribe https://github.com/notifications/unsubscribe-auth/AM4SXYI4WACUT5S4A7Z7UI3UPZVNPANCNFSM5JCDFWYQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

Jean-MarcHarvengt commented 2 years ago

Hi,

You are right, this is GPIO 7 (OUT1A!!), it is the 9th pin if you count from the ground at USB connector.

Here are the HEXs for UAE and CASTAWAY ST emulator

J-M

lastclass74 commented 2 years ago

Thanks, I'll check it out.

ons. 8. dec. 2021 20.39 skrev Jean-MarcHarvengt @.***>:

Hi,

You are right, this is GPIO 7 (OUT1A!!), it is the 9th pin if you count from the ground at USB connector.

Here are the HEXs for UAE and CASTAWAY ST emulator

J-M

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Jean-MarcHarvengt/MCUME/issues/6#issuecomment-989136701, or unsubscribe https://github.com/notifications/unsubscribe-auth/AM4SXYJ5QHCSBMQQLTKVYQLUP6X5ZANCNFSM5JCDFWYQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

lastclass74 commented 2 years ago

Hi j-m.. still no go .. i have order new teensy and pcm5102 .. just have to wait and see then .. thanks for the help

just checked the c64 emulator.. but usb keyboard dont work on c64 emulator .. works in filemenu .. is this normal ?

claus ..

Den tor. 9. dec. 2021 kl. 06.16 skrev Claus A @.***>:

Thanks, I'll check it out.

ons. 8. dec. 2021 20.39 skrev Jean-MarcHarvengt @.***

:

Hi,

You are right, this is GPIO 7 (OUT1A!!), it is the 9th pin if you count from the ground at USB connector.

Here are the HEXs for UAE and CASTAWAY ST emulator

J-M

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Jean-MarcHarvengt/MCUME/issues/6#issuecomment-989136701, or unsubscribe https://github.com/notifications/unsubscribe-auth/AM4SXYJ5QHCSBMQQLTKVYQLUP6X5ZANCNFSM5JCDFWYQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

lastclass74 commented 2 years ago

Hi j-m got a new teensy v4.1 today now sound works 100% !! ;) thanks for all the help you can close this now

claus ...

Den fre. 10. dec. 2021 kl. 18.19 skrev Claus A @.***>:

Hi j-m.. still no go .. i have order new teensy and pcm5102 .. just have to wait and see then .. thanks for the help

just checked the c64 emulator.. but usb keyboard dont work on c64 emulator .. works in filemenu .. is this normal ?

claus ..

Den tor. 9. dec. 2021 kl. 06.16 skrev Claus A @.***>:

Thanks, I'll check it out.

ons. 8. dec. 2021 20.39 skrev Jean-MarcHarvengt @.***

:

Hi,

You are right, this is GPIO 7 (OUT1A!!), it is the 9th pin if you count from the ground at USB connector.

Here are the HEXs for UAE and CASTAWAY ST emulator

J-M

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Jean-MarcHarvengt/MCUME/issues/6#issuecomment-989136701, or unsubscribe https://github.com/notifications/unsubscribe-auth/AM4SXYJ5QHCSBMQQLTKVYQLUP6X5ZANCNFSM5JCDFWYQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.