Hardware/Starlet Timer

From WiiBrew
Jump to navigation Jump to search
Starlet Timer
Hollywood Registers
Access
BroadwayNone
StarletFull
Registers
Base0x0d800010
Length0x8
Access size32 bits
Byte orderBig Endian
IRQs
Hollywood0
This box: view  talk  edit

The Hollywood includes a simple 32-bit timer running at 1/128th of the Starlet core clock frequency (~243Mhz). This timer can generate an interrupt at a preset alarm point.

Register List

Starlet Timer
Address Bits Name Description
0x0d800010 32 HW_TIMER Timer counter
0x0d800014 32 HW_ALARM Alarm value

Register descriptions

HW_TIMER (0x0d800010)
  310
Access R/W

The timer register is incremented every 1/128th of the core clock frequency, or around every 526.7 nanoseconds. The timer's period is therefore around 37.7 minutes, after which it wraps around. It can be written to to reset it to an arbitrary time.


HW_ALARM (0x0d800014)
  310
Access R/W

This register sets the timer alarm. When the timer register equals the value stored here, Hollywood IRQ #0 is generated.