Philips P89LPC907, P89LPC906, P89LPC908 POWER-ON Reset Code Execution, Block Diagram of Reset

Models: P89LPC907 P89LPC908 P89LPC906

1 110
Download 110 pages 25.77 Kb
Page 71
Image 71

Philips Semiconductors

User’s Manual - Preliminary -

 

 

RESET

P89LPC906/907/908

9. RESET

The P1.5/RST pin can function as either an active low reset input or as a digital input, P1.5. The RPE (Reset Pin Enable) bit in UCFG1, when set to 1, enables the external reset input function on P1.5. When cleared, P1.5 may be used as an input pin.

NOTE: During a power-on sequence, The RPE selection is overriden and this pin will always functions as a reset input. An external circuit connected to this pin should not hold this pin low during a Power-on sequence as this will keep the device in reset. After power-on this input will function either as an external reset input or as a digital input as defined by the RPE bit. Only a power- on reset will temporarily override the selection defined by RPE bit. Other sources of reset will not override the RPE bit.

NOTE: During a power cycle, VDD must fall below VPOR (see "DC electrical characteristics" in the datasheet) before pwoer is reapplied, in order to ensure a power-on reset.

Reset can be triggered from the following sources (see Figure 9-1):

External reset pin (during power-on or if user configured via UCFG1);

Power-on Detect;

Brownout Detect;

Watchdog Timer;

Software reset;

UART break-character detect reset. (P89LPC908)

For every reset source, there is a flag in the Reset Register, RSTSRC. The user can read this register to determine the most recent reset source. These flag bits can be cleared in software by writing a ’0’ to the corresponding bit. More than one flag bit may be set:

During a power-on reset, both POF and BOF are set but the other flag bits are cleared.

For any other reset, any previously set flag bits that have not been cleared will remain set.

POWER-ON RESET CODE EXECUTION

The P89LPC906/907/908 contains two special Flash elements: the BOOT VECTOR and the Boot Status Bit. Following reset, the device examines the contents of the Boot Status Bit. If the Boot Status Bit is set to zero, power-up execution starts at loca- tion 0000H, which is the normal start address of the user’s application code. When the Boot Status Bit is set to a one, the con- tents of the Boot Vector is used as the high byte of the execution address and the low byte is set to 00H. The factory default setting is 00H. A UART break-detect reset (P89LPC908) will have the same effect as a non-zero Status Bit.

RPE (UCFG1.6)

RST Pin

WDTE (UCFG1.7)

Watchdog Timer Reset

Software Reset SRST (AUXR1.3)

Power-on Detect

UART Break Detect

EBRR (AUXR1.6)

Brownout Detect Reset

BOPD (PCON.5)

Chip Reset

Figure 9-1: Block Diagram of Reset

2003 Dec 8

71

Page 71
Image 71
Philips P89LPC907, P89LPC906, P89LPC908 user manual POWER-ON Reset Code Execution, Block Diagram of Reset