Display timing

From NeoGeo Development Wiki
Revision as of 17:42, 26 December 2013 by Furrtek (talk | contribs)
Jump to navigation Jump to search
File:Disp.png
This needs to be redone.

In NTSC mode, the display is 320x224 pixels. In PAL mode, it is 320x256 pixels (16 pixels more at the top and bottom).

Upper 9 bits of register REG_LSPCMODE:

  • $00F8-$00FF : Vertical sync (8px)
  • $0100-$010F : Top border (16px)
  • $0110-$01EF : Active display (224px)
  • $01F0-$01FF : Bottom border (16px)

Corrected from and added on to mvstech.txt (by Charles MacDonald). mclk refers to the 24MHz master clock. A pixel is output every 4 mclk.

Horizontal timing

  • 112 mclks (28px) H-sync
  • 112 mclks (28px) back porch
  • 1280 mclks (320px) active display
  • 32 mclks (8px) front porch
  • 256 mclks (64px) total horizontal blanking
  • 1536 mclks (384px) total per scanline

CHBL tells NEO-B1 to output color 0 of palette 0, which is the reference color.

BNKB (blanking to 0V) changes state 14px after H-sync (middle of the back porch)

Vertical timing

There are 264 scanlines per frame:

  • 8 scanlines vertical sync pulse
  • 16 scanlines top border (visible in PAL)
  • 224 scanlines active display
  • 16 scanlines bottom border (visible in PAL)

Frame timing

The exact framerate is 6 MHz / 384 / 264 = 59.18 Hz