Conversation

Nothing says UART like... video sync signals?

4
1
1

I'm taking apart a "Mini DVD Player HDMI, DESOBRY 1080P HD Small Compact DVD Player for Smart TV with All Region Free, DVD CD Player with AV Output, USB/TF Card Input, Remote Control, Support PAL/NTSC"

It's a tiny DVD player (discman sized!) with USB/SD card slots, cause it can play the usual media formats

1
0
0

It's powered by a Sunplus SPHE8203R.

3
0
0

Sunplus calls this a "DVD Single Chip MPEG A/V Processor"

https://w3.sunplus.com/products/sphe8203.asp

1
0
0

@foone this image is somehow powerful

truth coming out of her p-well to shame mankind

0
0
0

Naturally for a Single Chip system, it has four chips.
Here's the next one, the SA5888: Silan Microelectronics, 5-channel BTL driver IC.
This drives the motors and actuators of the optical drive.

2
1
0

And an AiP1628: This is an LED driver, which used to drive the front panel 7-segment display.

2
0
0

And here's a Winbond W25Q16JV: a 3v 2-megabytes SPI flash

1
0
0

@snowfox nah, that's the result of adhesive thermal paste

0
0
0

@mgjetson me, apparently

0
0
0

The documentation of this is, of course, lacking. gotta keep your 2008 DVD decoder chip secret.

But one of the interesting docs that have leaks mentions it has game controller support?

2
0
0

@foone
Oh god it's got a NES emulator doesn't it

1
0
0

@foone
Maybe even a famiclone cause who knows, they might have had space on that die and nothing better to do with it!

0
0
0

And the board design schematic lists pins GAME_D0, GAME_D1, GAME_LATCH, and GAME_DATA

1
0
0

And Sunplus never seems to give any more detail on what this chip is powered by, but they do say it's "32-bit RISC".

so... MIPS, maybe?

3
0
0

@foone
If we had better docs, could it run 9front?!

0
0
0
@foone IIRC Sunplus had their own ISA
0
0
0

I found some source on verysource, and while I can't download the whole thing, I can get enough to confirm it's MIPS

1
0
0

They've got a tetris game in the source and also mentions of NES games?

2
0
0

@foone I'm gonna ask something stupid. How do you know all this stuff? Are you graduated in electrical engineering or something like it?

1
0
0

@yuriaugustus I'm mostly self-taught for EE, I went to school for comp-sci

0
0
0

man this thing has a lot of registers. They put a lot in this chip, it's a real SoC. There's a DSP on here, and a "GAME16" core.

Probably they just stuffed one of their famicom-plus-on-a-chip cores on it

2
0
0

@foone
Does the "16" mean 16-bit? Surely not. Surely they don't have a genesis in there...

0
0
0

@foone *looks at pricing* are they charging... ten cents for this?

1
0
0

@foone at that point I wonder why they even bother paywalling it!

d'you have an account with them?

0
0
0

@foone I have the source code for the firmware for this SOC, if you are interested

1
0
0

okay I've got a copy. Some fun stuff in here:
void generate_registration_code(BYTE code[8+1]);
void drm_rental_count_update();
void drm_save_rental_file(int drm_enable, int nRet);

1
0
0

there's code here to support PS2 mice? ON A DVD PLAYER?

3
0
0

@foone they were anticipating BD-Java before it was even a twinkle in Sony’s eye.

1
0
0

@foone
I was very confoozled as I just purchased my approximately billionth playstation 2

0
0
0

apparently you activate the UART by sending it "uart"

1
0
0

and these programmers were clearly paid by the IFDEF

2
0
0

that's how you know it's embedded as fuck

2
0
0
Israel, crummy pun
Show content

@foone
Better than getting paid by the IDF

0
0
0

there's code here to score karaoke results. it mainly works via rand()

or, to be accurate, robert_random()

1
0
0

SUPPORT_GAME_TETRIS
TerisPolling(diff);

TERIS? FUCKING TERIS?

4
0
0

@foone that makes total sense to me

0
0
0

@foone
Apparently it was always meant to be Terith.

0
0
0

@foone a friend who has worked at <huge embedded megacorp which makes silicon which you use> once mentioned that said company's codebase managed to ifdef out _just_ the keyword else. not the whole else block, just `else`

1
0
0

there's a hardcoded "super password".

It's 5168. What's it do? No fucking idea

2
0
0

@foone Sorry I thought Tetris was like default. we need some games for this thing, why is it shocking that it has tetris in it?

1
0
0

// Developed at SunPro, a Sun Microsystems, Inc. business.

wait what?

1
0
0

this is a SunPlus device, not SunPro. And SunPlus has nothing to do with Sun Microsystems as far as I know

1
0
0

okay, that's because they're using a sun-derived math library.

1
0
0

There's code here to copy a CD to a hard drive. So I guess you could use this in a set top box with an internal HDD

0
0
0

@amsomniac yeah! some motor drivers do that, because they make a lot of heat. big grounds make it able to better dissipate the heat into the PCB's groundplane

0
0
0

@foone If it's a DVD player it could be to unbrick after changing region code too many times.

0
0
0