English
Language : 

DS80C390_00 Datasheet, PDF (11/155 Pages) Dallas Semiconductor – High-Speed Microcontroller User’s Guide Supplement
Port 4 (P4)
DS80C390 High-Speed Microcontroller User’s Guide Supplement
SFR 80h
7
6
5
4
A19/P4.7 A18/P4.6 A17/P4.5 A18/P4.4
RW-0 RW-0 RW-0 RW-0
3
CE3 /P4.3
RW-1
2
CE2 /P4.2
RW-1
1
CE1 /P4.1
RW-1
0
CE0 /P4.0
RW-1
R=Unrestricted Read, W=Unrestricted Write, -n=Value after Reset
P4.7-0
A19
Bit 7
A18
Bit 6
A17
Bit 5
A16
Bit 4
CE3
Bit 3
CE2
Bit 2
CE1
Bit 1
CE0
Bit 0
Port 4. This port functions as a general-purpose I/O port. In addition, all the pins
have an alternative function associated with the memory interface described
below. The selection of general I/O or memory interface function for the Port 4
pins is controlled via the P4CNT(92h) register. Port pins configured as I/O will
reflect the state of the corresponding port pin. Port pins assigned to memory
interface functions will appear as 1 when read. The associated SFR bit must be
programmed to a logic one before the pin can be used in its alternate function
capacity. The reset state of this register and the P4CNT register will configure the
device to so that A19-A16 function as address lines and CE0 − CE3 are active.
The first opcode fetch following a reset will therefore be at 00000h with CE0
asserted.
Program/Data Memory Address 19. When this bit is set to a logic one and the
P4CNT register is configured correctly, the corresponding device pin will
represent the A19 memory signal.
Program/Data Memory Address 18. When this bit is set to a logic one and the
P4CNT register is configured correctly, the corresponding device pin will
represent the A18 memory signal.
Program/Data Memory Address 17. When this bit is set to a logic one and the
P4CNT register is configured correctly, the corresponding device pin will
represent the A17 memory signal.
Program/Data Memory Address 16. When this bit is set to a logic one and the
P4CNT register is configured correctly, the corresponding device pin will
represent the A16 memory signal.
Program Memory Chip Enable 3. When this bit is set to a logic one and the
P4CNT register is configured correctly, the corresponding device pin will
represent the CE3 memory signal.
Program Memory Chip Enable 2. When this bit is set to a logic one and the
P4CNT register is configured correctly, the corresponding device pin will
represent the CE2 memory signal.
Program Memory Chip Enable 1. When this bit is set to a logic one and the
P4CNT register is configured correctly, the corresponding device pin will
represent the CE1 memory signal.
Program Memory Chip Enable 0. When this bit is set to a logic one and the
P4CNT register is configured correctly, the corresponding device pin will
represent the CE0 memory signal.
11 of 155