1996 Jun 27 67
Philips Semiconductors Product specification
8-bit microcontroller with on-chip CAN P8xC592
14.2 Interrupt Vectors
The vector indicates the Program Memory location where
the appropriate interrupt service routine starts
(see Table 79).
Table 79 Interrupt vectors
SOURCE BIT VECTOR
External 0 X0 0003H
Timer 0 overflow T0 000BH
External 1 X1 0013H
Timer 1 overflow T1 001BH
Serial I/O 0 (UART) S0 0023H
Serial I/O 1 (CAN) S1 002BH
T2 capture 0 CT0 0033H
T2 capture 1 CT1 003BH
T2 capture 2 CT2 0043H
T2 capture 3 CT3 004BH
ADC completion ADC 0053H
T2 compare 0 CM0 005BH
T2 compare 1 CM1 0063H
T2 compare 2 CM2 006BH
T2 overflow T2 0073H
14.3 Interrupt Priority
Each interrupt source can be either high priority or low
priority. If both priorities are requested simultaneously, the
processor will branch to the high priority vector. If there are
simultaneous requests from sources of the same priority,
then interrupts will be serviced in the following order:
X0, S1, ADC, T0, CT0, CM0, X1, CT1, CM1, T1, CT2,
CM2, S0, CT3, T2.
A low priority interrupt routine can only be interrupted by a
high priority interrupt. A high priority interrupt routine can
not be interrupted.
15 POWER REDUCTION MODES
The P8xC592 has three software-selectable modes to
reduce power consumption. These are:
Sleep mode, affecting the CAN-controller only
Idle mode, affecting the
CPU (halted)
Timer 2 (stopped and reset)
PWM0, PWM1 (reset, output = HIGH)
ADC (aborted if in progress)
Power-down mode, affecting the whole P8xC592
device.
handbook, full pagewidth
MGA167
OSCILLATOR
CLOCK
GENERATOR
interrupts
serial ports
timer blocks
CPU
T2
PWM
ADC
IDL
PD
XTAL1XTAL2
CAN
sleep
Fig.22 Internal Sleep, Idle and Power-down clock configuration.
1996 Jun 27 68
Philips Semiconductors Product specification
8-bit microcontroller with on-chip CAN P8xC592
15.1 Power Control Register (PCON)
Table 80 Power Control Register (address 87H)
Table 81 Description of the PCON bits
Note
1. If PD and IDL are set to HIGH at the same time, PD takes precedence. The reset value of PCON is 0XX00000B.
76543210
SMOD −−WLE GF1 GF0 PD IDL
BIT SYMBOL FUNCTION
7 SMOD Double baud rate bit. When set to logic 1 the baud rate is doubled when the serial port
SIO0 is being used in Modes 1, 2 and 3.
6 Reserved.
5
4 WLE Watchdog Load Enable. This flag must be set by software prior to loading T3
(Watchdog timer). It is cleared when T3 is loaded.
3 GF1 General purpose flag bits.
2 GF0
1PD Power-down bit. Setting this bit activates Power-down mode (note 1). It can only be set
if input
EW is HIGH.
0 IDL Idle mode bit. Setting this bit activates the Idle mode (note 1).
15.2 CAN Sleep Mode
In order to reduce power consumption of the P8xC592 the
CAN-controller may be switched off (disconnecting the
internal clock) by setting the CAN Command Register bit 4
(Sleep) HIGH. The CAN-controller leaves this Sleep mode
by detecting either activity on the CAN-bus (dominant
bit-level on CRX0/CRX1; see Chapter 5, Table 1) or by
setting the Sleep bit to LOW. As the CPU can not only write
to the Sleep bit, but can also read it, the CAN-controller
status can be determined directly.
15.3 Idle Mode
The instruction that sets bit PCON.0 to HIGH is the last
one executed in the normal operating mode before Idle
mode is activated.
Once in the Idle mode, the CPU status is preserved in its
entirety: the Stack Pointer, Program Counter, Program
Status Word, Accumulator, RAM and all other registers
maintain their data during Idle mode. The status of the
external pins during Idle mode is shown in see Table 82.
There are three ways to terminate the Idle mode:
Activation of any enabled interrupt will cause PCON.0 to
be cleared by hardware, provided that the interrupt
source is active during Idle mode. After the interrupt is
serviced, the program continues with the instruction
immediately after the one, at which the interrupt request
was detected.
The flag bits GF0 and GF1 may be used to determine
whether the interrupt was received during normal
execution or during the Idle mode. For example, the
instruction that writes to PCON.0 can also set or clear
one or both flag bits. When Idle mode is terminated by
an interrupt, the service routine can examine the status
of the flag bits.
Another way of terminating the Idle mode is an external
hardware reset. Since the oscillator is still running, the
reset signal is required to be active only for two machine
cycles (24 oscillator periods) to complete the reset
operation.
The third way is the internally generated watchdog reset
after an overflow of Timer 3.
1996 Jun 27 69
Philips Semiconductors Product specification
8-bit microcontroller with on-chip CAN P8xC592
15.4 Power-down Mode
The instruction that sets bit PCON.1 to HIGH, is the last
one executed before entering the Power-down mode. In
Power-down mode the oscillator of the P8xC592 is
stopped. If the CAN-controller is in use, it is recommended
to set it into Sleep mode before entering Power-down
mode. However, setting PCON.1 to HIGH also sets the
Sleep bit (CAN-controller Command Register bit 4) to
HIGH.
The P8xC592 leaves Power-down mode either by a
hardware reset or by a CAN Wake-Up interrupt
(due to activity on the CAN-bus),
if the SIO1 (CAN) interrupt source is enabled
(contents of register IEN0 = 1X1XXXXXB).
A hardware reset affects the whole P8xC592, but leaves
the contents of the on-chip RAM unchanged
(CAN-controller-and CPU's SFRs are reset, see
Section 13.5.2, Chapter 17 and Table 40). A CAN
Wake-Up interrupt during Power-down mode causes a
reset output pulse with a width of 6144 machine cycles
(4.6 ms with f
CLK
= 16 MHz). All hardware except that for
the CAN-controller of the P8xC592 is reset (i.e. the
contents of all CAN-controller registers are preserved).
A capacitance connected to the RST pin can be used to
lengthen the internally generated reset pulse. If the pulse
exceeds 8192 machine cycles, the CAN-controller part is
reset too.
Table 82 Status of external pins during Idle and Power-down modes
Note
1. If the port pins P1.6 and P1.7 are used as the CAN transmitter outputs (CTX0 and CTX1), then during Sleep and
Power-down mode these pins output a ‘recessive’ level (see Sections 13.5.2 and 13.5.11).
MODE PROGRAM ALE
PSEN PORT0 PORT1
(1)
PORT2 PORT3 PORT4
PWM0/
PWM1
Idle internal 1 1 port data port data port data port data port data 1
external 1 1 floating port data address port data port data 1
Power-down internal 0 0 port data port data port data port data port data 1
external 0 0 floating port data port data port data port data 1

P80C592FFA/00,512

Mfr. #:
Manufacturer:
NXP Semiconductors
Description:
IC MCU 8BIT ROMLESS 68PLCC
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union

Products related to this Datasheet