HARDWARE ManualVDP1 User's Manual
BackForward
VDP1 User's Manual / Chapter 4 System Registers

■ 4.4 Erase Light

Before starting drawing, the sprite IC erases the contents of the frame buffer. This erasure is called erase light, and the fill area to be erased and the fill data to be written to that area are specified. There are three registers related to erase light: the erase light data register , the erase light upper left coordinate register , and the erase light lower right coordinate register.

■ Erase light data register

The erase write data register (EWDR) defines the fill data for erase write. This is a write-only 16-bit register located at address 100006H. After turning on the power or resetting, the value will be undefined, so be sure to set the fill data.

At 16bit / pixel
 EWDR
100006H
(W)
 bit15
 bit14
 bit13
 bit12
 bit11
 bit10
 bit9
 bit8
 bit7
 bit6
 bit5
 bit4
 bit3
 bit2
 bit1
 bit0
Erase light data

At 8bit / pixel
 EWDR
100006H
(W)
 bit15
 bit14
 bit13
 bit12
 bit11
 bit10
 bit9
 bit8
 bit7
 bit6
 bit5
 bit4
 bit3
 bit2
 bit1
 bit0
Even X coordinate erase light data Odd X coordinate erase light data

Erase write data: erase write data, bit15 ~ 0
When drawing a part in the framebuffer, VDP1 automatically clears the framebuffer. At the time of this erase (erase write), the 16-bit data set in the erase write data register is filled (filled) in the frame buffer.

When drawing to the frame buffer is 8bit / pixel (high resolution or rotation 8), it will be erased by 2 pixels.
The area to be erased is set by the upper left coordinate register of the erased light and the lower right coordinate register of the erased light.

■ Erase light upper left coordinate register

The Erase write left coordinate register (EWLR) sets the upper left coordinate of the erase light area. This is a write-only 16-bit register located at address 100008H. After turning on the power or resetting, the value will be undefined, so be sure to set the coordinates. Set the unused bit to 0.

 EWLR
100008H
(W)
 bit15
 bit14
 bit13
 bit12
 bit11
 bit10
 bit9
 bit8
 bit7
 bit6
 bit5
 bit4
 bit3
 bit2
 bit1
 bit0
0 Upper left coordinate X1 Upper left coordinate Y1

Erase light upper left coordinates X1: bit14-9
Erase light upper left coordinates Y1: bit8 ~ 0

■ Erase light lower right coordinate register

The Erase write right coordinate register (EWRR) sets the lower right coordinates of the erase light area. A write-only 16-bit register located at address 10000AH. After turning on the power or resetting, the value will be undefined, so be sure to set the coordinates.

 EWRR
10000AH
(W)
 bit15
 bit14
 bit13
 bit12
 bit11
 bit10
 bit9
 bit8
 bit7
 bit6
 bit5
 bit4
 bit3
 bit2
 bit1
 bit0
Lower right coordinate X3 Lower right coordinate Y3

Erase light lower right coordinates X3: bit15-9
Erase light lower right coordinates Y3: bit8 ~ 0

At 16bit / pixel
Upper left coordinate X1 = register set value x 8
Lower right coordinate X3 = Register set value x 8-1

At 8bit / pixel
Upper left coordinate X1 = register set value x 16
Lower right coordinate X3 = Register set value x 16-1

Therefore, the possible values of the upper left coordinate X1 and the lower right coordinate X3 are as follows.

 System register value
 16bit / pixel
 8bit / pixel
 High resolution
 Rotation 8
 Upper left coordinate X1
 Lower right coordinate X3
 Upper left coordinate X1
 Lower right coordinate X3
 Upper left coordinate X1
 Lower right coordinate X3
 0
 0
 Setting prohibited
 0
 Setting prohibited
 0
 Setting prohibited
 1
 8
 7
 16
 15
 16
 15
 2
 16
 15
 32
 31
 32
 31
 :
 :
 :
 :
 :
 :
 :
 31
 248
 247
 496
 495
 496
 495
 32
 256
 255
 512
 511
 Setting prohibited
 511
 33
 264
 263
 528
 527
 Setting prohibited
 Setting prohibited
 :
 :
 :
 :
 :
 :
 :
 40
 320
 319
 640
 639
 :
 :
 :
 :
 :
 :
 :
 :
 :
 43
 344
 343
 688
 687
 :
 :
 44
 352
 351
 704
 703
 :
 :
 :
 :
 :
 :
 :
 :
 :
 62
 496
 495
 992
 991
 :
 :
 63
 504
 503
 1008
 1007
 :
 :
 64
 Setting prohibited
 511
 Setting prohibited
 1023
 :
 :
 65 ~
 Setting prohibited
 Setting prohibited
 Setting prohibited
 Setting prohibited
 Setting prohibited
 Setting prohibited

Figure 4.2 Erase light area

Table 4.4 Number of rasters and pixels
 Screen mode
 Number of horizontal pixels
 Number of pixels in one raster
 Number of rasters in one field
 NTSC
 320
 1708
 263
 PAL
 352
 1820
 313
 31KC
 852
 525
 HDTV
 848
 562

Table 4.5 V Number of pixels that can be used for blank erase (when non-interlaced)
 Screen mode
 Resolution (horizontal x vertical)
 Number of pixels available
 NTSC
 320 x 224
 58812
 320 x 240
 34684
 352 x 224
 63180
 352 x 240
 37260
 PAL
 320 x 224
 134212
 320 x 240
 110084
 320 x 256
 85956
 352 x 224
 144180
 352 x 240
 118260
 352 x 256
 92340
 31KC
 320 x 480
 29340
 HDTV
 352 x 480
 53136


BackForward
HARDWARE ManualVDP1 User's Manual
Copyright SEGA ENTERPRISES, LTD., 1997