Copyright © Siemens AG 2010. All rights reserved.
Page
39
ERTEC 400 Manual
Technical data subject to change
Version 1.2.2
4.3.6
Timer 0/1 Register Description
CTRL_STAT0
R/W
Addr.: 0x4000_2000 Default: 0x0000_0000
Description
Control/status register 0. Configuration and control bits for Timer No. 0 .
Bit No.
Name
Description
0
Run/xStop *)
Stop/start of timer:
0: Timer is stopped
1: Timer is running
Note: If this bit = 0, the timer interrupt is inactive (0) and the status bit (Bit 5)
is reset (0).
1
Load
Trigger=Load the timer with the reload register value:
0: Not relevant
1: Timer is loaded with the value of the reload register
(irrespective of Bit 0=Run/xStop)
While this bit can be read back, it only has an effect at the instant of writing.
Writing a value of 1 to this bit is sufficient to trigger the timer; a 0/1 edge is
not needed.
2
Reload mode *)
Reload mode (continuous mode) of the timer.
0: Timer stops at value 00000000h
1: Timer is loaded with the reload register value when the timer value is
00000000h
and the timer continues running
Important note: If timers 0 and 1 are cascaded, the Reload mode setting of
Timer 0 is irrelevant.
3
Reserved
Not relevant (can be read/write-accessed)
4
Reserved
Not relevant (read=0)
5
Status
Timer status (writing is ignored)
0: Timer has not expired
1: Timer has expired (count is 0 and Run/xStop=Bit 0=1)
Note: This bit can only be read as 1 if Run/xStop (Bit 0) is active (1).
31-6
Reserved
Not relevant (read=0)
Important note: The bits designated with *) are not applicable if the timers are cascaded! See
CTRL_STAT1
CTRL_STAT1
R/W
Addr.: 0x4000_2004 Default: 0x0000_0000
Description
Control/status register 1. Configuration and control bits for Timer No. 1.
Bit No.
Name
Description
0
Run/xStop *)
Stop/start of timer:
0: Timer is stopped
1: Timer is running
Note: If this bit = 0, the timer interrupt is inactive (0) and the status bit (Bit 5)
is reset (0).
1
Load
Trigger=Load the timer with the reload register value:
0: Not relevant
1: Timer is loaded with the value of the reload register
(irrespective of Bit 0=Run/xStop)
While this bit can be read back, it only has an effect at the instant of writing.
Writing a value of 1 to this bit is sufficient to trigger the timer; a 0/1 edge is
not needed.
2
Reload mode *)
Reload mode (continuous mode) of the timer.
0: Timer stops at value 00000000h
1: Timer is loaded with the reload register value when the timer value is
00000000h
and the timer continues running
3
Reserved
Not relevant (can be read/write-accessed)
4
Reserved
Not relevant (read=0)