gc80c510 CORERIVER Semiconductor, gc80c510 Datasheet - Page 29

no-image

gc80c510

Manufacturer Part Number
gc80c510
Description
Eprom/rom 8-bit Turbo Microcontrollers
Manufacturer
CORERIVER Semiconductor
Datasheet
MiDAS1.1 Family
[How to control the P0 input / output mode]
P0 is input mode. To configure the bit of the P0 to output mode, set to the bit of the P0DIR register to
“0” (0 = Output, 1 = Input (Default)).
[How to control the P0 pull-up ON/OFF]
ON. To disable the pull-up resistor control, set to the bit of the P0SEL register to “1” (0 = Pull-up ON
(Default), 1=Pull-up OFF).
[How to control the P0 output type]
Figure 6-3 Configuration of PORT 0
Note: Read-Modify-Write instructions do not read port pin but SFR register.
P0 is push-pull output type. To configure the bit output type of the P0 to open-drain output, set the bit
of the P0TYPE register to “1” (0 = Push-pull output (Default), 1 = Open-drain output).
The initial value of P0DIR (Port 0 Input/Output Control) register is FFh. This means that the mode of
The initial value of P0SEL (Port 0 Pull-up Control) register is 00h. This means that the pull-up of P0 is
The initial value of P0TYPE (Port 0 Type Control) register is 00h. This means that the output type of
CPU BUS
Alternative Output
Alternative Enable
Digital Input
ADC0 Input
P0.1
SFR
QB
Q
P0DIR.1
0
1
ADC0B
Page 29 of 211
P0TYPE.1
Pull-
up
P0SEL.1
P0.1

Related parts for gc80c510