English
Language : 

UPD784938 Datasheet, PDF (199/733 Pages) NEC – 16-Bit Single-Chip Microcontrollers
CHAPTER 6 PORT FUNCTIONS
6.13 Cautions
(1) All port pins become high-impedance after RESET signal input (on-chip pull-up resistors are disconnected from the
pins).
If there is a problem with pins becoming high-impedance during RESET input, this should be handled with external
circuitry.
(2) Bit 7 of the pull-up resistor option register (PUO) that sets the on-chip pull-up resistor connection is fixed at 0, but if “1”
is written to bit 7 of the PUO in the in-circuit emulator, “1” will be read.
(3) Output latch contents are not initialized by RESET input. When a port is used as an output port, the output latch must
be initialized without fail before turning on the output buffer. If the output latch is not initialized before turning on the output
buffer, unexpected data will be output to the output port.
Similarly, for pins used as control pins, internal peripheral hardware initialization must be performed before performing
the control pin specification.
(4) As P22 to P26 are not pulled up immediately after a reset, an interrupt request flag may be set depending on the function
of the alternate-function pins (INTP1 to INTP5). Therefore, the interrupt request flags should be cleared after specifying
pull-up in the initialization routine.
(5) When P40 to P47 and P50 to P57 are used as the address/data bus and address bus respectively in the µPD784938,
bits PUO4 and PUO5 of the pull-up resistor option register (PUO) must be set to “0” so that on-chip pull-up resistor
connection is not performed.
(6) A voltage outside the range AVSS to AVREF must not be applied to pins for which P70 to P77 are used as ANI0 to ANI7.
See 16.6 Cautions in CHAPTER 16 A/D CONVERTER for details.
(7) A bit manipulation instruction manipulates one bit as the result, but accesses the port in 8-bit units. Therefore, if a bit
manipulation instruction is used on a port with a mixture of input and output pins or port mode and control mode, the
contents of the output latch of pins specified as inputs or pins specified as in control mode will be undefined (excluding
bits manipulated with a SET1 or CLR1 instruction, etc.). Particular care is required when there are bits which are
switched between input and output.
Caution is also required when manipulating the port with other 8-bit arithmetic instructions.
(8) If each port is set to input mode, a comparison of the pin status with the output latch contents (or control output level)
using the CHKL or CHKLA instruction will always show a match whether the individual pins of the port are port pins or
control pins. Therefore, executing these instructions on a port set to input mode is actually ineffective.
(9) If the output levels of a port in which control outputs and port outputs are mixed in a single port are checked with the
CHKL or CHKLA instruction, the input/output mode of control output pins should be set to input mode before executing
these instructions (as the output levels of control outputs vary asynchronously, the output level cannot be checked with
the CHKL or CHKLA instruction).
(10) As port 2 is an input-only port, a comparison of the pin status with the output latch contents using the CHKL or CHKLA
instruction will always show a match. Therefore, executing these instructions on port 2 is actually ineffective.
Preliminary User’s Manual U13987EJ1V0UM00
199