Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New driver for Brother wordprocessor/typewriter LW-30 #10996

Merged
merged 6 commits into from
Mar 19, 2023

Conversation

BartmanAbyss
Copy link
Contributor

split off of PR#8202

src/mame/brother/lw30.cpp Outdated Show resolved Hide resolved

const lw30_format FLOPPY_LW30_FORMAT;

class brother_beep_device : public device_t, public device_sound_interface
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this beeper used by other Brother machines? If it is, it should be moved out to a separate file in mame/brother so it can be shared.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This custom beeper device doesn't make much sense to me, almost all of it is a copy of sound/beep.*
Looking at the comments below (where it calls beeper_w), isn't the hardware just a 1bit dac?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nope, looking further, it's like a dac_2bit_ones_complement_device, where one bit is software controlled and the other is 4khz(can use clock_device for that)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unfortunately it's about 5 years since I reverse-engineered this hardware. As I remember, it uses a fixed 4 kHz beeper, but the Tetris game uses CPU-waitloop-controlled PWM to achieve different frequencies to play a melody. That didn't work with the original MAME beep device, so I modified it. Was something about restarting the oscillator or sth like this. Don't know about other Brother machines because I couldn't find any software on them to use it like the LW-30 Tetris.

src/mame/brother/lw30.cpp Outdated Show resolved Hide resolved
src/mame/brother/lw30.cpp Outdated Show resolved Hide resolved
src/mame/brother/lw30.cpp Outdated Show resolved Hide resolved
src/mame/brother/lw30.cpp Outdated Show resolved Hide resolved
src/mame/brother/lw30.cpp Outdated Show resolved Hide resolved
src/mame/brother/lw30.cpp Outdated Show resolved Hide resolved
src/mame/brother/lw30.cpp Outdated Show resolved Hide resolved
src/mame/brother/lw30.cpp Outdated Show resolved Hide resolved
src/mame/brother/lw30.cpp Outdated Show resolved Hide resolved
src/mame/brother/lw30.cpp Outdated Show resolved Hide resolved
src/lib/formats/lw30_dsk.cpp Outdated Show resolved Hide resolved
src/mame/brother/lw30.cpp Outdated Show resolved Hide resolved
src/mame/brother/lw30.cpp Show resolved Hide resolved
src/mame/brother/lw30.cpp Outdated Show resolved Hide resolved
src/mame/brother/lw30.cpp Outdated Show resolved Hide resolved
src/mame/brother/lw30.cpp Outdated Show resolved Hide resolved
src/mame/brother/lw30.cpp Outdated Show resolved Hide resolved
@cuavas cuavas requested a review from galibert March 19, 2023 15:01
@cuavas
Copy link
Member

cuavas commented Mar 19, 2023

@galibert could you please review the floppy format in this pull request?

@cuavas
Copy link
Member

cuavas commented Mar 19, 2023

We can worry about the sound device later – it may be possible to implement it some other way (e.g. DAC with volume control input or something).

@cuavas cuavas merged commit 4ff301b into mamedev:master Mar 19, 2023
@BartmanAbyss
Copy link
Contributor Author

oh just wanted to commit the addressed comments, and just saw you already did the source cleanup. thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants