Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
8xC196EA microcontroller user's manual.1998.pdf
Скачиваний:
52
Добавлен:
23.08.2013
Размер:
8.29 Mб
Скачать

CHAPTER 14

SPECIAL OPERATING MODES

The 8XC196EA has two power saving modes: idle and powerdown. It also has an on-circuit emulation (ONCE) mode that electrically isolates the microcontroller from the other system components. This chapter describes each mode and explains how to enter and exit them.

14.1 SPECIAL OPERATING MODE SIGNALS AND REGISTERS

Table 14-1 lists the signals and Table 14-2 lists the registers that are mentioned in this chapter.

 

 

Table 14-1. Operating Mode Control Signals

Signal

Type

Description

Name

 

 

 

 

 

CLKOUT

O

Clock Output

 

 

Output of the internal clock generator. You can select one of five frequencies: f, f/2,

 

 

f/4, f/8, or f/16. CLKOUT has a 50% duty cycle.

 

 

CLKOUT shares a package pin with P2.7

 

 

 

EXTINT

I

External Interrupt

 

 

In normal operating mode, a rising edge on EXTINT sets the EXTINT interrupt

 

 

pending bit. EXTINT is sampled during phase 2 (CLKOUT high). The minimum high

 

 

time is one state time.

 

 

In powerdown mode, asserting the EXTINT signal for at least 50 ns causes the

 

 

device to resume normal operation. The interrupt does not need to be enabled, but

 

 

the pin must be configured as a special-function input. If the EXTINT interrupt is

 

 

enabled, the CPU executes the interrupt service routine. Otherwise, the CPU

 

 

executes the instruction that immediately follows the command that invoked the

 

 

power-saving mode.

 

 

In idle mode, asserting any enabled interrupt causes the device to resume normal

 

 

operation.

 

 

EXTINT shares a package pin with P2.2.

 

 

 

ONCE#

I

On-circuit Emulation

 

 

Holding ONCE# low during the rising edge of RESET# places the device into on-

 

 

circuit emulation (ONCE) mode. This mode puts all pins into a high-impedance state,

 

 

thereby isolating the microcontroller from other components in the system. The

 

 

value of ONCE# is latched when the RESET# pin goes inactive. While the device is

 

 

in ONCE mode, you can debug the system using a clip-on emulator.

 

 

To exit ONCE mode, reset the microcontroller by pulling the RESET# signal low. To

 

 

prevent inadvertent entry into ONCE mode, either configure this pin as an output or

 

 

hold it high during reset and ensure that your system meets the VIH specification.

 

 

ONCE# shares a package pin with P2.6 and HLDA#.

 

 

 

PLLEN

I

Phase-locked Loop Enable

 

 

This active-high input pin enables the on-chip clock multiplier.

 

 

 

14-1

8XC196EA USER’S MANUAL

Table 14-1. Operating Mode Control Signals (Continued)

Signal

Type

Description

Name

 

 

 

 

 

RESET#

I/O

Reset

 

 

A level-sensitive reset input to, and an open-drain system reset output from, the

 

 

microcontroller. Either a falling edge on RESET# or an internal reset turns on a pull-

 

 

down transistor connected to the RESET# pin for 16 state times. In the powerdown

 

 

and idle modes, asserting RESET# causes the microcontroller to reset and return to

 

 

normal operating mode. After a reset, the first instruction fetch is from FF2080H (or

 

 

1F2080H in external memory).

 

 

 

RPD

I

Return from Powerdown

 

 

Timing pin for the return-from-powerdown circuit.

 

 

If your application uses powerdown mode, connect a capacitor between RPD and

 

 

VSS if either of the following conditions are true.

 

 

• the internal oscillator is the clock source

 

 

• the phase-locked loop (PLL) circuitry is enabled (see PLLEN signal description)

 

 

The capacitor causes a delay that enables the oscillator and PLL circuitry to stabilize

 

 

before the internal CPU and peripheral clocks are enabled.

 

 

The capacitor is not required if your application uses powerdown mode and if both

 

 

of the following conditions are true.

 

 

• an external clock input is the clock source

 

 

• the phase-locked loop circuitry is disabled

 

 

If your application does not use powerdown mode, leave this pin unconnected.

 

 

RPD shares a package pin with P5.7.

 

 

 

TMODE#

I

Test-Mode Entry

 

 

If this pin is held low during reset, the microcontroller will enter a test mode. The

 

 

value of several other pins defines the actual test mode. All test modes, except

 

 

TROM execution, are reserved for Intel factory use. If you choose to configure this

 

 

signal as an input, always hold it high during reset and ensure that your system

 

 

meets the VIH specification to prevent inadvertent entry into test mode.

 

 

TMODE# shares a package pin with P5.4 and BREQ#.

 

 

 

14-2

 

 

SPECIAL OPERATING MODES

 

Table 14-2. Operating Mode Control and Status Registers

 

 

 

Mnemonic

Address

Description

 

 

 

CCR0

2018H

Chip Configuration 0

 

 

Enables or disables the IDLPD #1 and IDLPD #2 instructions.

 

 

When enabled, the IDLPD #1 instruction causes the microcontrol-

 

 

ler to enter idle mode and the IDLPD #2 instruction causes the

 

 

microcontroller to enter powerdown mode. This register also

 

 

selects the write-control mode and contains the bus-control

 

 

parameters for fetching chip configuration byte 1.

INT_MASK

0008H

Interrupt Mask

 

 

Bit 6 of this register enables and disables (masks) external

 

 

interrupt EXTINT.

INT_PEND

0009H

Interrupt Pending

 

 

Bit 6 of this register is set to indicate pending external interrupt

 

 

EXTINT.

P2_DIR

1FD2H

Port Direction Register

 

 

Each bit controls the configuration of the corresponding pin.

 

 

Clearing a bit configures a pin as a complementary output; setting

 

 

a bit configures a pin as a high-impedance input or an open-drain

 

 

output.

 

 

 

P2_MODE

1FD0H

Port Mode Register

 

 

Each bit controls the mode of the corresponding pin. Setting a bit

 

 

configures a pin as a special-function signal; clearing a bit

 

 

configures a pin as a general-purpose I/O signal.

 

 

 

P2_PIN

1FD6H

Port Pin Register

 

 

Each bit reflects the current state of the corresponding pin,

 

 

regardless of the pin’s mode and configuration.

 

 

 

P2_REG

1FD4H

Port Data Output Register

 

 

For I/O Mode (Px_MODE.x = 0)

 

 

When a port pin is configured as a complementary output

 

 

(Px_DIR.x = 0), setting the corresponding port data bit drives a

 

 

one on the pin, and clearing the corresponding port data bit

 

 

drives a zero on the pin.

 

 

When a port pin is configured as a high-impedance input or an

 

 

open-drain output (Px_DIR.x = 1), clearing the corresponding

 

 

port data bit drives a zero on the pin, and setting the corre-

 

 

sponding port data bit floats the pin, making it available as a

 

 

high-impedance input.

 

 

For Special-function Mode (Px_MODE.x = 1)

 

 

When a port pin is configured as an output (either comple-

 

 

mentary or open-drain), the corresponding port data bit value

 

 

is immaterial because the corresponding on-chip peripheral or

 

 

system function controls the pin.

 

 

To configure a pin as a high-impedance input, set both the

 

 

Px_DIR and Px_REG bits.

 

 

 

14-3

8XC196EA USER’S MANUAL

14.2 REDUCING POWER CONSUMPTION

Both power-saving modes conserve power by disabling portions of the internal clock circuitry (Figure 14-1). The remainder of this section describes both power-saving modes in detail.

FXTAL1

XTAL1

XTAL2

Disable Oscillator (Powerdown)

 

 

 

Disable

Phase

 

 

Filter

 

 

 

PLL

 

 

 

 

 

Comparator

 

 

 

 

(Powerdown)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Phase-locked

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Oscillator

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

XTAL1

XTAL1

 

 

PLLEN

 

Phase-locked Loop

 

 

 

 

 

 

 

Clock Multiplier

F

2F

1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

f

Disable Clock Input (Powerdown)

Divide by two

Circuit

f/2

 

To reset logic

 

 

Disable Clocks (Idle, Powerdown)

Clock

Clock

CPU Clocks (PH1, PH2)

Failure

 

Generators

 

Detection

Peripheral Clocks (PH1, PH2)

 

 

 

f/2

 

 

Programmable

 

OSC

Divider

 

 

(CLK1:0)

 

 

 

 

0

 

f

CLKOUT

 

1

 

 

 

 

Disable Clocks (Powerdown)

 

 

A3378-01

Figure 14-1. Clock Control During Power-saving Modes

14-4

Соседние файлы в предмете Электротехника