PXAC37KFBD/00,157 NXP Semiconductors, PXAC37KFBD/00,157 Datasheet - Page 25

no-image

PXAC37KFBD/00,157

Manufacturer Part Number
PXAC37KFBD/00,157
Description
IC XA MCU 16BIT 32K OTP 44LQFP
Manufacturer
NXP Semiconductors
Series
XAr
Datasheet

Specifications of PXAC37KFBD/00,157

Core Processor
XA
Core Size
16-Bit
Speed
32MHz
Connectivity
CAN, EBI/EMI, SPI, UART/USART
Peripherals
DMA, POR, PWM, WDT
Number Of I /o
32
Program Memory Size
32KB (32K x 8)
Program Memory Type
OTP
Eeprom Size
-
Ram Size
1K x 8
Voltage - Supply (vcc/vdd)
4.5 V ~ 5.5 V
Data Converters
-
Oscillator Type
External
Operating Temperature
-40°C ~ 85°C
Package / Case
44-LQFP
Lead Free Status / Rohs Status
Lead free / RoHS Compliant

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PXAC37KFBD/00,157
Manufacturer:
NXP Semiconductors
Quantity:
10 000
Philips Semiconductors
WATCHDOG TIMER
The watchdog timer subsystem protects the system from incorrect
code execution by causing a system Reset when the watchdog
timer underflows as a result of a failure of software to feed the timer
prior to the timer reaching its terminal count. It is important to note
that the watchdog timer is running after any type of Reset and must
be turned off by user software if the application does not use the
watchdog function.
Watchdog Function
The watchdog consists of a programmable prescaler and the main
timer. The prescaler derives its clock from the TCLK source that also
drives timers 0, 1, and 2. The watchdog timer subsystem consists of
a programmable 13–bit prescaler, and an 8–bit main timer. The main
timer is clocked (decremented) by a tap taken from one of the top
8–bits of the prescaler as shown in Figure 14.
The clock source for the prescaler is the same as TCLK (same as
the clock source for the timers). Thus the main counter can be
clocked as often as once every 32 TCLKs (see Table 8). The
watchdog generates an underflow signal (and is autoloaded from
WDL) when the watchdog is at count 0 and the clock to decrement
the watchdog occurs. The watchdog is 8 bits wide and the autoload
value can range from 0 to FFh. (The autoload value of 0 is
permissible since the prescaler is cleared upon autoload).
This leads to the following user design equations:
where
The watchdog timer is not directly loadable by the user. Instead, the
value to be loaded into the main timer is held in an autoload register.
In order to cause the main timer to be loaded with the appropriate
value, a special sequence of software action must take place. This
operation is referred to as feeding the watchdog timer.
To feed the watchdog, two instructions must be sequentially
executed successfully. No intervening SFR accesses are allowed,
so interrupts should be disabled before feeding the watchdog. The
instructions should move A5h to the WFEED1 register and then 5Ah
to the WFEED2 register. If WFEED1 is correctly loaded and
WFEED2 is not correctly loaded, then an immediate watchdog
Reset will occur. The program sequence to feed the watchdog timer
or cause new WDCON settings to take effect is as follows:
2000 Jan 25
t
t
t
t
N
W
P
t
t
t
clr
mov.b
mov.b
setb
XA 16-bit microcontroller family
32K/1024 OTP CAN transport layer controller
1 UART, 1 SPI Port, CAN 2.0B, 32 CAN ID filters, transport layer co-processor
MIN
MAX
D
OSC
MIN
MAX
D
= t
= t
= t
OSC
is the oscillator period
OSC
OSC
autoload value is 0)
is FFh)
is the selected prescaler tap value
is the main counter autoload value
is the prescaler value from Table 8
is the minimum watchdog time–out value (when the
is the maximum time–out value (when the autoload value
is the design time–out value.
ea
wfeed1,#A5h
wfeed2,#5Ah
ea
N
4
64
P
32 (W = 0, N = 4)
4096
(W + 1)
256 (W = 255, N = 64)
; disable global interrupts.
; do watchdog feed part 1
; do watchdog feed part 2
; re–enable global interrupts.
18
This sequence assumes that the XA interrupt system is enabled and
there is a possibility of an interrupt request occurring during the feed
sequence. If an interrupt was allowed to be serviced and the service
routine contained any SFR access, it would trigger a watchdog
Reset. If it is known that no interrupt could occur during the feed
sequence, the instructions to disable and re–enable interrupts may
be removed.
The software must be written so that a feed operation takes place
every t
need to be made. It is not advisable to include feed operations in
minor loops or in subroutines unless the feed operation is a specific
subroutine.
To turn the watchdog timer completely off, the following code
sequence should be used:
This sequence assumes that the watchdog timer is being turned off
at the beginning of the User’s initialization code and that the XA
interrupt system has not yet been enabled. If the watchdog timer is
to be turned off at a point when interrupts may be enabled,
instructions to disable and re–enable interrupts should be added to
this sequence.
Watchdog Control Register (WDCON)
The Reset values of the WDCON and WDL registers will be such
that the watchdog timer has a timeout period of 4
the watchdog is running. WDCON can be written by software but the
changes only take effect after executing a valid watchdog feed
sequence.
Table 8. Prescalar Select Values in WDCON
Watchdog Detailed Operation
When External Reset is applied, the following takes place:
When coming out of a hardware Reset, the software should load the
autoload register and then feed the watchdog (i.e., cause an
autoload).
If the watchdog is running and happens to underflow at the time the
External Reset is applied, the watchdog time–out flag will be
cleared.
mov.b
mov.b
mov.b
Watchdog run control bit set to ON (1).
Autoload register WDL set to 00 (min. count).
Watchdog time–out flag cleared.
Prescaler is cleared.
Prescaler tap set to the highest divide.
Autoload takes place.
PRE2
D
0
0
0
0
1
1
1
1
seconds from the last feed operation. Some tradeoffs may
wdcon,#0
wfeed1,#A5h
wfeed2,#5Ah
PRE1
0
0
1
1
0
0
1
1
; set WD control register to clear
; do watchdog feed part 1
; do watchdog feed part 2
WDRUN.
PRE0
0
1
0
1
0
1
0
1
Preliminary specification
4096
XA-C3
DIVISOR
1024
2048
4096
128
256
512
32
64
t
OSC
and

Related parts for PXAC37KFBD/00,157