UJA1066_2 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2010. All rights reserved.
Product data sheet Rev. 03 — 17 March 2010 27 of 70
NXP Semiconductors
UJA1066
High-speed CAN fail-safe system basis chip
6.12.3 Mode register
The Mode register is used to define and re-trigger the watchdog and to select the SBC
operating mode. The Mode register also contains the global enable output bit (EN) and
the Software Development Mode (SDM) control bit. Cyclic access to the Mode register is
required during system operation to serve the watchdog. This register can be written to in
all modes.
At system start-up, the Mode register must be written to within t
WD(init)
of pin RSTN being
released (HIGH-level on pin RSTN). Any write access is checked for proper watchdog and
system mode coding. If an illegal code is detected, access is ignored by the SBC and a
system reset is forced in accordance with the state diagram of the system controller; see
Figure 3
.
[1] Flash mode can be entered only with the watchdog service sequence ‘Normal mode to Flash mode to Normal mode to Flash mode’,
while observing the watchdog trigger rules. With the last command of this sequence the SBC forces a system reset, and enters Start-up
mode to prepare the microcontroller for flash memory download. The four RSS bits in the System Status register reflect the reset source
information, confirming the Flash entry sequence. By using the Initializing Flash mode (within t
WD(init)
after system reset) the SBC will
now successfully enter Flash mode.
[2] See Section 6.13.1
.
Table 5. Mode register bit description (bits 15 to 12 and 5 to 0)
Bit Symbol Description Value Function
15 and 14 A1, A0 register address 00 select Mode register
13 RRS Read Register
Select
1 read System Diagnosis register
0 read System Status register
12 RO Read Only 1 read selected register without writing to Mode register
0 read selected register and write to Mode register
11 to 6 NWP[5:0] see Table 6
5 to 3 OM[2:0] Operating Mode 001 Normal mode
010 Standby mode
011 initialize Flash mode
[1]
100 Sleep mode
101 initialize Normal mode
110 leave Flash mode
111 Flash mode
[1]
2 SDM Software
Development
Mode
1 Software development mode enabled
[2]
0 normal watchdog, interrupt, reset monitoring and fail-safe
behavior
1 EN Enable 1 EN output pin HIGH
0 EN output pin LOW
0 - reserved 0 reserved for future use; should remain cleared to ensure
compatibility with future functions which might use this bit