Repository navigation
Data East / Sega support - #3
Merged
Merged
Conversation
mkalkbrenner
requested changes
Nov 4, 2025
|
|
||
| lcd_width = 128; | ||
| lcd_height = 32; | ||
| lcd_bitsperpixel = 4; // data east sega is 2bpp |
| dmd_pio = pio0; | ||
| offset = pio_add_program(dmd_pio, &dmd_reader_desega_program); | ||
| dmd_sm = pio_claim_unused_sm(dmd_pio, true); | ||
| dmd_reader_whitestar_program_init(dmd_pio, dmd_sm, offset); |
Member
There was a problem hiding this comment.
dmd_reader_desega_program_init
| wait 0 gpio DOTCLK ; falling edge | ||
| wait 1 gpio DOTCLK ; raising edge | ||
| in null 2 ; padding | ||
| ;in null 2 ; padding |
| in null 2 ; padding | ||
| ;in null 2 ; padding | ||
| in pins 1 ; read pin data | ||
| in null 1 |
| wait 0 gpio DOTCLK ; falling edge | ||
| wait 1 gpio DOTCLK ; raising edge | ||
| in null 3 ; padding | ||
| in null 1 ; padding |
| dotloop1: | ||
| wait 0 gpio DOTCLK ; falling edge | ||
| wait 1 gpio DOTCLK ; raising edge | ||
| in null 2 ; padding |
| wait 1 gpio DOTCLK ; raising edge | ||
| in null 2 ; padding | ||
| in pins 1 ; read pin data | ||
| in null 1 |
| dotloop2: | ||
| wait 0 gpio DOTCLK ; falling edge | ||
| wait 1 gpio DOTCLK ; raising edge | ||
| in null 3 ; padding |
mkalkbrenner
reviewed
Nov 4, 2025
| lcd_planesperframe = 2; // in Whitestar, there's a MSB and a LSB plane | ||
| lcd_lineoversampling = LINEOVERSAMPLING_WHITESTAR; // in Whitestar each line is sent twice | ||
| lcd_mergeplanes = MERGEPLANES_ADDSHIFT; // required for correct 2bpp merge | ||
| //lcd_mergeplanes = MERGEPLANES_ADDSHIFT; // required for correct 2bpp merge |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Logic is nearly identical to whitestar, except the beginning of a frame detection is different. Looking at the signals there was no clear way to identify the start of a frame. It seems that they fixed this for Whitestar, where ROWDATA clearly shows the beginning of a frame. Unfortunately not the case with DE/Sega.
Display Enable is now used to detect the beginning of a frame instead, but that is measured through checking the length of the GPIO being low.