Timer

I/O Ports

0xF00Timer control
0xF80Timer period
0xFC0Timer counter

Register

0xF00   Timer control (Half)

Timer control.

BitsDescription
0Timer interrupt flag 0 = Disable
1 = Enable
1Timer enabled 0 = Disabled
1 = Enabled
2Timer interrupt pending 0 = None pending
1 = IRQ pending/asserting

0xF80   Timer period (Half)

Count 1 per 15 cycles (equivalent to 698.4128ns). Value here should be (time in seconds) / (698.4128*10^-9)

New values will only take place after last timer expired and reloaded (or timer was re-enabled)

0xFC0   Timer counter (Half)

Current value of the counter.


[TOP]