espressif/esp31-smsemu

语言: C

git: https://github.com/espressif/esp31-smsemu

README.md (中文)

这是什么?

这是SMSPlus到Espressif ESP31芯片的一个端口。它会运行 大多数世嘉主系统全速运行,禁用视频。 (但是,由于速度慢 所使用的SPI LCD和推动像素的开销,目前帧速率限制在15-20FPS。)

我需要用什么?

你会需要:  包含ESP31芯片和至少2MB(16Mbit)SPI闪存的电路板,以及对其进行编程的工具。  Sega Master System ROM游戏卡带的备份  320x240 ILI9341显示屏,可通过4线SPI接口控制。您可以通过此LCD找到模块 在eBay或其他购物网站上寻找'2.2英寸SPI 320 240 ILI9341'。我们用的是红色PCB和 SD卡在底部。  可选,用于声音:I2S编解码器,以及一些硬件,使其输出的声音被听到。我们使用了PCM5102 这里有板,但只要它们只需要BCLK,DATA和LRCLK信号,其他I2S编解码板也是可用的 上班。 *可选,但强烈推荐:Playstation 1(PSX)或Playstation 2控制器实际玩游戏

我如何连接我的主板?

LCD:

Reset - GPIO18
/CS   - GPIO19
CLK   - GPIO20
MOSI  - GPIO21
D/C   - GPIO22

(确保还要连接背光和电源引脚。)

I2S编解码器

LRCLK - GPIO32 (also called 'WS')
DATA  - GPIO33
BCK   - GPIO27

(显然,还要连接电源引脚并将声音输出连接到放大器或耳机等。)

PSX / PS2控制器

DATA  - GPIO25
CLOCK - GPIO14
ATT   - GPIO16
CMD   - GPIO17

(引脚排列可以在这里找到。挂钩VCC高达3.3V。 9伏线(引脚3)和ACK引脚可以保持未连接状态。)

我该如何编程芯片?

使用能够闪烁连接到ESP31的SPI闪存的工具,将以下文件编程为以下文件 地址:

bin/boot.bin        -> 0x000000
bin/irom1.bin       -> 0x004000
bin/irom0_flash.bin -> 0x040000
(SMS game ROM image)-> 0x140000

由于版权原因,您必须自己提供游戏rom图像。

许可/法律

SMSPlus根据GPL2获得许可。 Espressif支持代码根据MIT许可证授权。所有 这些文件中出现的商标,服务标记,商品名称和产品名称属于 他们各自的所有者。

本文使用googletrans自动翻译,仅供参考, 原文来自github.com

en_README.md

What is this?

This is a port of SMSPlus to the Espressif ESP31 chip. It will run
most Sega Master System roms at full speed with video disabled. (However, because of the low speed
of the SPI LCD used and the overhead of pushing pixels to it, the framerate is limited to 15-20FPS for now.)

What do I need to use this?

You will need:
A board containg an ESP31 chip and at least 2MB (16Mbit) of SPI flash, plus the tools to program it.
A backup of a Sega Master System ROM game cartridge
A 320x240 ILI9341 display, controllable by a 4-wire SPI interface. You can find modules with this LCD by
looking for '2.2 inch SPI 320 240 ILI9341' on eBay or other shopping sites. We used the one with the red PCB and the
SD-card on the bottom.
Optional, for sound: A I2S codec, plus some hardware to make the sound it outputs be heard. We used a PCM5102
board here, but other I2S codec boards are also capable as long as they only require BCLK, DATA and LRCLK signals
to work.
* Optional, but highly recommended: A Playstation 1 (PSX) or Playstation 2 controller to actually play the game

How do I hoop up my board?

LCD:

Reset - GPIO18
/CS   - GPIO19
CLK   - GPIO20
MOSI  - GPIO21
D/C   - GPIO22

(Make sure to also wire up the backlight and power pins.)

I2S codec

LRCLK - GPIO32 (also called 'WS')
DATA  - GPIO33
BCK   - GPIO27

(Obviously, also hook up the power pins and connect the sound output to an amp or headphones or so.)

PSX/PS2 controller

DATA  - GPIO25
CLOCK - GPIO14
ATT   - GPIO16
CMD   - GPIO17

(Pinouts can be found here. Hook VCC up to 3.3V.
The 9 volt line (pin 3) and the ACK pin can be left unconnected.)

How do I program the chip?

Using a tool capable of flashing the SPI flash connected to the ESP31, program the following files to the following
addresses:

bin/boot.bin        -> 0x000000
bin/irom1.bin       -> 0x004000
bin/irom0_flash.bin -> 0x040000
(SMS game ROM image)-> 0x140000

Because of copyright reasons, you will have to supply the game rom image yourself.

License/legal

SMSPlus is licensed under the GPL2. The Espressif support code is licensed under the MIT license. All
trademarks, service marks, trade names and product names appearing in these files are the property of
their respective owner(s).