gc80c510 CORERIVER Semiconductor, gc80c510 Datasheet - Page 28

no-image

gc80c510

Manufacturer Part Number
gc80c510
Description
Eprom/rom 8-bit Turbo Microcontrollers
Manufacturer
CORERIVER Semiconductor
Datasheet
6.2 Peripheral Description
6.2.1 I/O Ports
6.2.1.1 PORT 0
is to control the registers: input/output direction control (PXDIR), output type control to determine the
push-pull or open-drain output type (PXTYPE), and pull-up control (PXSEL).
ADC input and port 2 has 5-channel ADC input.
pull output type and pull-up register is ON. And ADC input channels of port 0 and port 2 are disabled.
The port 1 is configured as crystal input/output and reset signal input.
ADCSEL, ADCON, and ADCSELH register.
ADC input channels are disabled. Note that the port 0[7:1] (= P0[7:1]) is configurable as an ADC input
pins. The ADC0 ~ ADC6 input channels of the port 0 are selected by ADCSEL and ADCSELH register.
[How to control the ADC input channel enable / disable for P0]
any effect of port 0 state. Namely, ADC input channel is valid by ADC selection registers (ADCSEL,
ADCSELH) even if port 0 is operating on the output mode (bit value of P0DIR = 0). If ADC input
channel is disabled, port configuration will be back to the state before entering the ADC input channel
enable mode. To select the ADC channel input, set the bit of the ADCSEL or ADCSELH register to “0”
(0 = ADC channel bit enable, 1 = disable (Default)). In more detail about ADC, refer to “6.2.7 ADC” part.
The MiDAS1.1 Family has the port 0 (8 bits), port 1 (3 bits), and port 2 (7 bits). The port configuration
The ADC (Analog-to-Digital Converter) is 12 channels and 10-bit resolution. The port 0 has 7-channel
The ADC configuration for port is to control the register: ADCSEL, ADCSELH, ADCON, and ADCR.
After reset, the port 0 and port 2 are configured as general I/O ports which is input mode with push-
Port 0 has the following configuration modes in according to P0DIR, P0SEL, P0TYPE, ALTSEL,
After reset, port 0 is configured as input mode with push-pull output type and pull-up is turn-on. Also,
If an ADC input of port 0 is enabled, port 0 is automatically configured as ADC input channel without
Input / Output mode controlled by P0DIR (Default = FFh, Input mode)
Push-pull / Open-drain output type controlled by P0TYPE (Default = 00h, Push-pull output type)
Pull-up ON / OFF controlled by P0SEL (Default = FFh, Pull-up ON)
ADC input enable & digital input disable, or ADC input disable & digital input enable by ADCSEL
and ADCSELH (Default = FFh is ADC input disable & digital input enable.)
AV
REF
(ADC reference voltage) using P0[4] enabled by ADCON
Page 28 of 211
Functional Description

Related parts for gc80c510