Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.COM

X  

PXAG49KBBD Datasheet(PDF) 24 Page - NXP Semiconductors

Part # PXAG49KBBD
Description  XA 16-bit microcontroller family
Download  42 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  NXP [NXP Semiconductors]
Direct Link  http://www.nxp.com
Logo NXP - NXP Semiconductors

PXAG49KBBD Datasheet(HTML) 24 Page - NXP Semiconductors

Back Button PXAG49KBBD Datasheet HTML 20Page - NXP Semiconductors PXAG49KBBD Datasheet HTML 21Page - NXP Semiconductors PXAG49KBBD Datasheet HTML 22Page - NXP Semiconductors PXAG49KBBD Datasheet HTML 23Page - NXP Semiconductors PXAG49KBBD Datasheet HTML 24Page - NXP Semiconductors PXAG49KBBD Datasheet HTML 25Page - NXP Semiconductors PXAG49KBBD Datasheet HTML 26Page - NXP Semiconductors PXAG49KBBD Datasheet HTML 27Page - NXP Semiconductors PXAG49KBBD Datasheet HTML 28Page - NXP Semiconductors Next Button
Zoom Inzoom in Zoom Outzoom out
 24 / 42 page
background image
Philips Semiconductors
Preliminary data
XA-G49
XA 16-bit microcontroller family
64K Flash/2K RAM, watchdog, 2 UARTs
2001 Jun 27
24
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 5). 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. Definitions: tOSC
is the oscillator period, N is the selected prescaler tap value, W is
the main counter autoload value, P is the prescaler value from
Table 5, tMIN is the minimum watchdog time-out value (when the
autoload value is 0), tMAX is the maximum time-out value (when the
autoload value is FFH), tD is the design time-out value.
tMIN = tOSC × 4 × 32 (W = 0, N = 4)
tMAX = tOSC × 64 × 4096 × 256 (W = 255, N = 64)
tD = tOSC × N × P × (W + 1)
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:
clr
ea
; disable global interrupts.
mov.b
wfeed1,#A5h ; do watchdog feed part 1
mov.b
wfeed2,#5Ah ; do watchdog feed part 2
setb
ea
; re-enable global interrupts.
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 tD seconds from the last feed operation. Some tradeoffs may
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:
mov.b
wdcon,#0
; set WD control register to clear WDRUN.
mov.b
wfeed1,#A5h ; do watchdog feed part 1
mov.b
wfeed2,#5Ah ; do watchdog feed part 2
This sequence assumes that the watchdog timer is being turned off
at the beginning of 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
× 4096 × tOSC and the
watchdog is running. WDCON can be written by software but the
changes only take effect after executing a valid watchdog feed
sequence.
Table 5. Prescaler Select Values in WDCON
PRE2
PRE1
PRE0
DIVISOR
0
0
0
32
0
0
1
64
0
1
0
128
0
1
1
256
1
0
0
512
1
0
1
1024
1
1
0
2048
1
1
1
4096
Watchdog Detailed Operation
When external RESET is applied, the following takes place:
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.
When coming out of a hardware reset, the software should load the
autoload register and then feed the watchdog (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.


Similar Part No. - PXAG49KBBD

ManufacturerPart #DatasheetDescription
logo
NXP Semiconductors
PXAG49KBA PHILIPS-PXAG49KBA Datasheet
299Kb / 42P
   XA 16-bit microcontroller family 64K FLASH/2K RAM, watchdog, 2 UARTs
2000 Apr 03
More results

Similar Description - PXAG49KBBD

ManufacturerPart #DatasheetDescription
logo
NXP Semiconductors
XA-G39 PHILIPS-XA-G39 Datasheet
217Kb / 42P
   XA 16-bit microcontroller family XA 16-bit microcontroller 32K FLASH/1K RAM, watchdog, 2 UARTs
2002 Mar 13
logo
Macronix International
MX10EXA MCNIX-MX10EXA Datasheet
473Kb / 55P
   XA 16-bit Microcontroller Family 64K Flash/2K RAM, Watchdog, 2UARTs
logo
NXP Semiconductors
XA-G30 PHILIPS-XA-G30 Datasheet
222Kb / 36P
   XA 16-bit microcontroller family 512 B RAM, watchdog, 2 UARTs
2002 Mar 25
XA-G49 PHILIPS-XA-G49 Datasheet
299Kb / 42P
   XA 16-bit microcontroller family 64K FLASH/2K RAM, watchdog, 2 UARTs
2000 Apr 03
XA-G3 PHILIPS-XA-G3 Datasheet
208Kb / 36P
   XA 16-bit microcontroller family 32K/512 OTP/ROM/ROMless, watchdog, 2 UARTs
1999 Apr 07
XA-G37 PHILIPS-XA-G37 Datasheet
226Kb / 37P
   XA 16-bit microcontroller family 32K OTP, 512 B RAM, watchdog, 2 UARTs
2002 Mar 25
logo
Freescale Semiconductor...
MC9S12B FREESCALE-MC9S12B Datasheet
125Kb / 14P
   MC9S12B Family 16-bit Microcontroller
logo
NXP Semiconductors
MC9S12XD NXP-MC9S12XD Datasheet
577Kb / 16P
   NeXt Generation 16-Bit Microcontroller Family
Rev 2.3, 9-Jun-04
logo
Xilinx, Inc
XA2S200E-6FT256Q XILINX-XA2S200E-6FT256Q Datasheet
141Kb / 6P
   Automotive XA Product Family
logo
Texas Instruments
TMS7000 TI-TMS7000 Datasheet
32Mb / 618P
[Old version datasheet]   8·Bit Microcontroller Family
1989
More results


Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42


Datasheet Download

Go To PDF Page


Link URL




Privacy Policy
ALLDATASHEET.COM
Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Datasheet Upload   |   Contact us   |   Privacy Policy   |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com