システム - パワーマネジメント

「システム - パワーマネジメント」の編集履歴(バックアップ)一覧に戻る

システム - パワーマネジメント - (2007/06/18 (月) 08:45:07) のソース

POWER_CR (0x04000304:16) ARM9
bit	name
15	LCD picker
14..10	-
9	Power 2D Core B
8	-
7..3	-
3	Power Geometry Engine
2	Power Rasterizer Engine
1	Power 2D Core A
0	Power screens

Bits marked - read as zero, and have no effect when written.

LCD picker:

    * 0: 2D Core B displays on the top LCD, and 2D Core A on the bottom LCD.
    * 1: 2D Core A displays on the top LCD, and 2D Core B on the bottom LCD. 

Each power bit controls a single device:

    * 0: off
    * 1: on 

POWER_CR (0x04000304:16) ARM7
bit	name
15..2	Read as zero, writes ignored
1	Power Wifi
0	Power Speakers

Each power bit controls a single device:

    * 0: off
    * 1: on 

There is also a power management IC on the ARM7 SPI bus. Commands:
0x00	Write control register
0x80	Read control register

You write the command, then the argument (or 0 for a read).

The format of the control register is:
7	Needs to be tested
6	DS power (0: on, 1: shut down!)
5..4	LED control
3	Top LCD backlight (0: off, 1: on)
2	Bottom LCD backlight (0: off, 1: on)
1	Volume slider (1: enabled, 0: disabled)
0	Power sound hardware (1: on, 0: off)

When the volume slider is disabled, sound output is at full volume.
HALT_CR (0x04000300:16)
bit	name
15	?
14	GBA mode (but aparently can't be set from user code)
1	Dunno
0	First boot bit maybe

Write HALT_CR with the BIOS appropriate bios function.

ARM9: 0003 retained with ffff write, 0001 always (write 0000 and it reads 0001)

ARM7: 8001 retained with ffff or 0000 write, hmm

PROTECTION_CR (0x1204) reads 0x1204, cannot be written to, so sad. (ARM7 bios writes 0x1205 to it, low bit must be latch and never allow to be modified)
ツールボックス

下から選んでください:

新しいページを作成する
ヘルプ / FAQ もご覧ください。