gc80c510 CORERIVER Semiconductor, gc80c510 Datasheet - Page 42

no-image

gc80c510

Manufacturer Part Number
gc80c510
Description
Eprom/rom 8-bit Turbo Microcontrollers
Manufacturer
CORERIVER Semiconductor
Datasheet
[How to control the P2 output type]
type of P2 is push-pull output type. To configure the bit output type of the P2 to open-drain output, set
the bit of the P2TYPE register to “1” (0 = Push-pull output (Default), 1 = Open-drain output).
[How to control the Timer0 Counter from P2[0]]
(TMOD[2]) to “1”. A “1” to “0” transition on this T0 input pin will increment the timer0 counter.
value of C/T bit is 1, timer0 counter uses the external T0 input transition for counter. In more detail,
refer to TMOD register.
several other SFRs.
[About the alternative pins and description]
The initial value of P2TYPE (Port 2 Type Control) register is *0000000h. This means that the output
If user wants to use the timer0 as counter from external input pin (P2[6]; T0 input pin), set the C/T bit
The default value of C/T bit (TMOD[2]) is “0”, timer0 timer uses the system clock for timing. When the
In addition, all the pins have an alternative function listed below. Each of the functions is controlled by
Alternative Pin
ADC11 ~ ADC7
Port 2
CLO
T0
-
Timer0 Input or T0 Input. (Refer to TMOD register)
A “1” to “0” transition on this T0 input pin will increment the timer0 counter.
ADC Analog Input 11 ~ 7
System Clock Output to P2[6]. (Refer to ALTSEL register)
P2[6]
ADC7
CLO
P2[5]
ADC8
Page 42 of 211
P2[4]
ADC9
Description
ADC10
P2[3]
ADC11
P2[2]
Functional Description
P2[1]
P2[0]
T0

Related parts for gc80c510