Přejít na obsah
ARCHIVEKArchiv e-mailových konferencí o 8bitových počítačích Archiv Pandory 1999 až 2013

[SharpMZ] Zkouseni pridavnych karet pro MZ-2500

"Michal Medek" <Michal.Bruntal@[doména skryta]> SHARP MZ-800

Ahoj,

zakladam toto vlakno pro sdileni zkusenosti se $subj. Chtel bych diskutovat poznatky/problemy/zkusenosti se stavbou/testovanim/provozem. Proste vse. co by pomohlo k jejich pouziti.
1) K pametovym kartam jsem zjistil
Memory Mapping Register
addressR / WDescription
B4hW
Bit76543210
signal
MRSEL
Select the memory mapping register to be read and written in B5h 
After reading / writing B5h, the value of B4h is autoincremented
MRSELMemory addressMRSELMemory address
00000h - 1FFFh48000h - 9FFFh
12000h - 3FFFh5A000h - BFFFh
24000h - 5FFFh6C000h - DFFFh
36000h - 7FFFh7E000h - FFFFh
B5hR / W
Bit76543210
signal
MB

Memory block number to allocate
MBMemory blockWeight when accessing
00h - 0FhMain RAM (8K × 16 = 128K)On M1 cycle + 1
10 h - 1 FhExtended RAM (8 K × 16 = 128 K)On M1 cycle + 1
20 h - 27 hStandard graphic VRAM (B / R / G / I)+1 (*)
28 h - 2 FhExtended graphic VRAM (B / R / G / I)+1 (*)
30 h - 31 hStandard graphic VRAM (Read Modify Write)+2 (*)
32 h - 33 hExtended graphic VRAM (Read Modify Write)+2 (*)
34h-37hIPL ROMOn M1 cycle + 1
38hText VRAM+1 (*)
39hKanji ROM / PCG+2 (*)
3AhDictionary ROM???
3 Ch-3 FhCommunication ROMOn M1 cycle + 1

(*) M1 cycle impossible · When accessing during the display period, wait until the blanking period separately takes effect

According to the survey of the X1 center , the CPU accessible period of the graphic VRAM is 24 KHz: memory write cycle + 50 clock + memory write cycle 15 KHz: memory write cycle + 91 clock + memory write cycle Normal access · additional weight by the read modify write They are + 1 and + 2, respectively, but the above values ​​do not change


Slo by tedy vyzkouset zapsat na MemoryBlock (cislo bloku), pak na MemorySelect (cislo banky) a zapsat par byte (ne pro ROM) a pak je stejnym zpusobem precist.
Vysledkem by mohlo byt zjisteni, ze to tak funguje a ze pridavne karty funguji. Nasledne otestovat, ze jsme vyrobili repliky dobre a ze funguji.

2) 
Graphics controller internal registers
registerDescription
00hPattern register B
01hPattern register R
02hThe pattern register G
03hPattern register I
04hColor register
Bit76543210
signal
IGRB
05hFunction register / screen selection register
Bit76543210
signalFN
IGRB

FNfunction00: REPLACE 
01: PSET 
10: Clear screen
I / G / R / BDrawing plane selection0: Do not draw 
1: Draw

REPLACEFor each plane specified only for the plane specified by the screen selection register (05h) to be rewritten,
  1. AND the VRAM data and the value obtained by inverting the value of the bit mask register
  2. OR ((CPU write data AND pattern register AND bit mask register register value) is ORed only for the plane specified by the color register (04h)
  3. Write results to VRAM
(An image that punctures the VRAM with the bit mask register value and inserts the cut-out pattern with the CPU write value)PSETFor each plane specified only for the plane specified by the screen selection register (05h) to be rewritten,
  1. AND the VRAM data and the inverted value of the CPU write data
  2. Only the plane specified by the color register (04h), OR (CPU write data AND pattern register) is ORed
  3. Write results to VRAM
(Image in which hole is drilled in VRAM with CPU write value and fit pattern fitting there)
06hBit mask register
07hSelect read control register
Bit76543210
signal
0
A

1IGRB

ADirect Read Read Plane00: B 
01: R 
10: G 
11: I
I / G / R / BSelect read specification color
08h, 09hDisplay area vertical direction start line setting
Port09h08h
Bit7654321076543210
signal
GDEVS
Specify the number of rasters in 9 bits 
0 to 190 h (vertical 400 lines) 
0 to C 8 h (length 200 lines) 
0Ah, 0BhDisplay area vertical direction end line setting
Port0 Bh0 Ah
Bit7654321076543210
signal
GDEVE
Like GDEVS
0ChDisplay area horizontal direction start setting
Bit76543210
signal
GDEHS
0 to 50 h 
Horizontal 640 dots 8 dots Unit 320 dots 4 dots unit
0DhDisplay area horizontal direction stop setting
Bit76543210
signal
GDEHE
Same as GDEHS
0EhDisplay mode switching
Bit76543210
signalEX004C256CV200H640PRI

EXStandard VRAM / Extended VRAM Selection0: Standard VRAM 
1: Extended VRAM
4C4 color mode 
(Only in 640 x 400 mode)
0: 4 color mode 
1: 16 color or 256 color mode
256C256 colors (8 planes simultaneous output) mode0: 16 color mode 
1: 256 color mode
V200Number of vertical lines0: 400 line 
1: 200 line
H640Number of horizontal dots0: 320 dots 
1: 640 dots
PRIPriority when overlapping two screens 
(320 x 200 only in 16 color mode · 
Specify 1 in other modes)
0: Young screen with the number at the back 
1: Young number screen is toward you
0FhHorizontal dot scroll amount within the scroll area
Bit76543210
signal
HSCRL
Horizontal scroll amount 0 to 7 in 1 dot unit 
A specified number of white pixels are inserted from the left edge of the screen, and the screen shifts to the right by that amount (scrolls) 
Therefore, it is necessary to hide the left end from the display area 
In 320x200 2 screen mode and 256 color mode, this function can be used only for screens 0 and 2, so it is practically impossible to scroll smoothly
10h, 11hTop left address of screen
Port11h10 h
Bit7654321076543210
signal
SAD 0
12h, 13hScroll wrapping address
Port13h12h
Bit7654321076543210
signal
SAD 1
When the CRTC's VRAM read address counter reaches this address, the address counter returns to 0000h from the next read
14h, 15hDisplay address after scroll end line
Port15 h14h
Bit7654321076543210
signal
SAD 2
When the display raster reaches the scroll end line, display starts from this address
16h, 17hScroll end line
Port17h16h
Bit7654321076543210
signal
SL1
0 to 190 h (vertical 400 lines) 
0 to C 8 h (length 200 lines) 
18hScreen display register
Bit76543210
signalI1G1R1B1I 0G 0R 0B 0
A plane with a bit of 1 is displayed

Zajimavy registr 0Eh pro zmenu rezimu. Chtelo by to vyzkouset s ohledem na vyuzivani pameti a efektu na vystupu

3) PALETE karta/registr.
OPN GPIO
SSG registerR / WDescription
07hWI / O setting of I / O ports A and B
Bit76543210
signalIOBIOAnoisetone

IOBI / O port B input / output0: Input 
1: Output
IOAI / O port A input / output0: Input 
1: Output
For MZ - 2500, set port A as output and port B as input
0EhWI / O port A
Bit76543210
signalVACLVOEVBUSYVDATAMOUSEPLTDRSELREADYA

VACLVoice board reset bit0: Normal operation 
1: Reset the voice board
VOEVoice board ROM specification0: Internal ROM 
1: External ROM
VBUSYVoice board handshake bit
VDATAVoice board transmission data
MOUSESIO B channel function selection0: RS-232C (9 pin) 
1: Mouse
PLT4096 color palette board output selection0: 4096 color Palette board Select output 
1: Select main unit output
The DRSELFDD drive number change0: Built-in FDD is 0, 1 / external FDD is 2, 3 
1: External FDD is 0, 1 / Built-in FDD is 2, 3
READYARS-232C RR signal (D-Sub 25 pin connector No. 11 pin)
0FhRI / O port B
Bit76543210
signalVACKRASTER80B2000ALARMCDBCIACDA

VACKAcknowledge from voice board
RASTERDisplay output mode0: 400 lines (24 kHz) 
1: 200 lines (15 kHz)
80BMZ-80B mode0: 80 B mode
2000MZ-2000 mode0: 2000 mode
ALARMRTC ALARM output
CDBRS-232C CD signal (D-Sub 9 pin connector 9 pin)
CIARS-232C CI signal (D-Sub 25 pin connector No. 22 pin)
CDARS-232C CD signal (D-Sub 25 pin connector No. 8 pin)


Zajimavy registr 0Eh bit PLT, ktery zapina podporu 4096 barev

4096 color palette board16 bit I / O access required
addressR / WDescription
AEhW4096 color palette

Address [15: 8]

Bit1514131211Ten98
signal
PALNOG / R B

G / RB0: DATA [3: 0] is written in the blue component of the pallet number PALNO, and DATA [7: 4] is written in the red component 
1: Write DATA [3: 0] to the green component of the pallet number PALNO

The validity / invalidity of the pallet board is controlled by the OPO IOA [2]

A pak tady zapisovat do registru PALNO cislo barvy G a RB a pak jeji hodnotu

4) Mel by nekdo schema a/nebo fotky teto pridavne karty? Ze by se mohla casem pripravit a vyrobit replika. samozrejme by to chtelo mit v MZ-2500 ten pridavny domecek, ktery by se mohl taky replikovat.
MZ-1 R 37 640 K EMM16 bit I / O access required
addressR / WDescription
AChWWrite address latch 
EMM address [19: 16] = {A15 - A8}, EMM address [15: 8] = {D7 - D0}
ADhRReading data 
EMM address [7: 0] = {A15 - A8}, data = {D7 - D0}
WWrite data 
EMM address [7: 0] = {A15 - A8}, data = {D7 - D0}
* There is no auto increment of the address

Tak to bylo pro definovani par takovych bodu, kterymi by jsme se mohli zabyvat a urceni mista, kde je sdilet.

Mikes


Zobrazit původní podobu