beautypg.com

Chapter 5 port functions – NEC PD78214 User Manual

Page 118

background image

89

Chapter 5 Port Functions

5

Cautions 1. To use P60 through P63 as an output port, it is necessary to reset the PM60 through PM63 bits to 0. If they are not 0, the in-

circuit emulator may not work.

2. To use the P66/WAIT pin as the WAIT pin, it is necessary to put P66 in the input mode using the PM6 register.

Fig. 5-38 Port 6 Mode Register Format

Note When the MM6 bit of the memory expansion mode register (MM) is set to 1, these bits function as a bank specification register used

to execute memory reference instructions without “&”. When the 1M-byte expansion function is not used, reset PM63 through PM60
to all 0s.

Caution To use analog inputs AN6 and AN7, put PM66 and PM67 in the input mode.

Remark The lower four bits (P60 through P63) of port 6 are an output-only port.

PM67

7

PM66

6

PM65

5

PM64

4

PM63

3

PM62

2

PM61

1

PM60

0

PM6

PM63 PM62 PM61 PM60

Memory bank
specification

Note

(F

× H when RESET is input)

0

0

0

0

0

0

0

1

Bank 0

Bank 1

0

0

1

0

Bank 2

0

0

1

1

Bank 3

0

1

0

0

Bank 4

0

1

0

1

Bank 5

0

1

1

0

Bank 6

0

1

1

1

Bank 7

1

0

0

0

Bank 8

1

0

0

1

Bank 9

1

0

1

0

Bank A

1

0

1

1

Bank B

1

1

0

0

Bank C

1

1

0

1

Bank D

1

1

1

0

Bank E

1

1

1

1

Bank F

PM6n

Input mode (output buffer OFF)

Output mode (output buffer ON)

Specifies I/O mode of pin PM6n (n = 4 to 7)

0

1

This manual is related to the following products: