PPU: Difference between revisions

From NESdev Wiki
Jump to navigationJump to search
mNo edit summary
mNo edit summary
Line 5: Line 5:


* [[PPU_REGISTERS|Registers]]
* [[PPU_REGISTERS|Registers]]
** [[PPU_REGISTER_CONTROLLER|Controller ($2000)]]
** [[PPU_REGISTER_MASK|Mask ($2001)]]
** [[PPU_REGISTER_STATUS|Status ($2002)]]
** [[PPU_REGISTER_OAM_ADDRESS|OAM address ($2003)]]
** [[PPU_REGISTER_OAM_DATA|OAM data ($2004)]]
** [[PPU_REGISTER_SCROLL|Scroll ($2005)]]
** [[PPU_REGISTER_ADDRESS|Address ($2006)]]
** [[PPU_REGISTER_DATA|Data ($2007)]]
* [[PPU_PATTERNTABLES|Pattern tables]]
* [[PPU_PATTERNTABLES|Pattern tables]]
* [[PPU_OAM|OAM]]
* [[PPU_OAM|OAM]]
Line 22: Line 14:




=== Notes ===
== Notes ==
* The NTSC video signal is made up of 262 scanlines, and 20 of those are spent in vblank state. After the program has received an NMI, it has about 2270 cycles to update the palette, sprites, and nametables as necessary before rendering begins.
* The NTSC video signal is made up of 262 scanlines, and 20 of those are spent in vblank state. After the program has received an NMI, it has about 2270 cycles to update the palette, sprites, and nametables as necessary before rendering begins.

Revision as of 09:50, 20 April 2009

The NES PPU, or Picture Processing Unit, generates a composite video signal with 240 lines of pixels, designed to be received by a television. When the Famicom chipset was designed in the early 1980s, it was considered quite an advanced 2D picture generator for video games.

It has its own address space, which typically contains 10 kilobytes of memory: 8 kilobytes of ROM or RAM on the Game Pak (possibly more with one of the common Mappers) to store the shapes of background and sprite tiles, plus 2 kilobytes of RAM in the console to store a map or two. Two separate, smaller address spaces hold a palette, which controls which colors are associated to various indices, and OAM (Object Attribute Memory), which stores the position, orientation, shape, and color of the sprites, or independent moving objects. These are internal to the PPU itself and use dynamic memory (which will slowly decay if the PPU is not rendering data).



Notes

  • The NTSC video signal is made up of 262 scanlines, and 20 of those are spent in vblank state. After the program has received an NMI, it has about 2270 cycles to update the palette, sprites, and nametables as necessary before rendering begins.