Skip to content
J. Neuschäfer edited this page Dec 12, 2020 · 10 revisions

Timers in the WPCM450 are split between five general timers and one watchdog timer. Both are controlled by a block of registers at 0xb8001000.

The timer controller is very similar to the one found in the Winbond W90N745. The main difference is that the WPCM450 has five timers, whereas the W90N745 has only two.

The existing mainline timer driver for NPCM7xx uses the set of registers that is documented in the W90N745 datasheet.

TODO: check TISR w.r.t. different timers

Registers

offset name description
00 TCSR0 Timer control and status register 0
04 TCSR1 Timer control and status register 1
08 TICR0 Timer initial control register 0
0c TICR1 Timer initial control register 1
10 TDR0 Timer data register 0
14 TDR1 Timer data register 1
18 TISR Timer interrupt status register
1c WTCR Watchdog timer control register
20 TCSR2 Timer control and status register 2
24 TCSR3 Timer control and status register 3
28 TICR2 Timer initial control register 2
2c TICR3 Timer initial control register 3
30 TDR2 Timer data register 2
34 TDR3 Timer data register 3
40 TCSR4 Timer control and status register 4
48 TICR4 Timer initial control register 4
50 TDR4 Timer data register 4

Watchdog Timer

  • To reset the system, write 0x82 to 0xb800101c.

References

Clone this wiki locally