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

8XC196EA USER’S MANUAL

16.5 SDU INTERFACE CONNECTOR

To standardize the connector interface to the SDU port, we recommend that you use a 10-pin, 2- row I/O expansion connector. This low cost, readily available standard connector can be easily added to any printed-circuit board (PCB) after manufacturing of the module.

Figure 16-11 describes the SDU port connector pinout.

No Connect

CRDCLK

CRBUSY#

CRIN

CROUT

2

4

6

8

10

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1

3

5

7

9

Vcc

RESET#

Vss

Vss

Key (No Connect)

A4306-01

Figure 16-11. SDU Interface Connector

To prevent mis-socketing and ensure proper cable connection, we recommend that you remove the square pin at position #1 (Key) and block the adjoining cable position.

16-14

17

Using the Test-ROM

Routines

CHAPTER 17

USING THE TEST-ROM ROUTINES

Within the memory array of the 8XC196EA resides 1 Kbyte of nonerasable memory, commonly referred to as test-ROM. Embedded in the test-ROM are three software routines: ROM-dump, serial port, and serial debug unit (SDU) RISM execution. These routines enable you to perform the following operations:

Use the ROM-dump routine to write the entire ROM array to an external memory device to verify its contents.

Use the serial port routine to download code and data (usually from a personal computer or workstation) to a microcontroller (the slave) through the serial I/O port.

Use the SDU RISM execution routine to download code and data across a high-speed dedicated serial link.

17.1 SIGNALS AND REGISTERS

Table 17-1 describes the signals used in test-mode entry, and Figure 17-1 describes chip configuration register 0 (CCR0), which controls access to the ROM. Several pins combine to control entry into these modes, and three port 12 pins (P12.2:0) select the desired test-ROM routine. The serial port mode and ROM-dump routines configure additional pins, which are required to execute properly.

Table 17-1. Signal Descriptions

Port

Special-function

Typ

Mode

 

 

 

Description

Pin

Signal

e

 

 

 

 

 

 

 

 

 

 

 

 

 

P12.2:0

I

All

Test-ROM Routine Select

 

 

 

 

Determines the test-ROM routine. These pins are

 

 

 

 

sampled after a device reset and must be static while

 

 

 

 

the part is operating.

 

 

 

 

P12.2

P12.1

P12.0

 

 

 

 

 

0

0

0

Serial port mode

 

 

 

 

1

0

0

ROM-dump

 

 

 

 

1

1

1

SDU RISM execution

 

 

 

 

All other pin combinations are reserved.

P2.0

TXD0

O

Serial

Transmit Serial Data 0

 

 

 

 

During serial port mode, TXD0 transmits data to an

 

 

 

 

external device.

 

 

 

 

 

 

P2.1

RXD0

I

Serial

Receive Serial Data 0

 

 

 

 

During serial port mode, RXD0 receives data from an

 

 

 

 

external device.

 

 

 

 

 

 

 

 

 

17-1

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