Electronic Components Datasheet Search
  New Zealand  ▼
ALLDATASHEET.CO.NZ

X  

HMS87C1202A Datasheet(PDF) 37 Page - Hynix Semiconductor

Part # HMS87C1202A
Description  8-BIT SINGLE-CHIP MICROCONTROLLERS
PDF  88 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  HYNIX [Hynix Semiconductor]
Direct Link  http://www.skhynix.com/kor/main.do
Logo HYNIX - Hynix Semiconductor

HMS87C1202A Datasheet(HTML) 37 Page - Hynix Semiconductor

Back Button HMS87C1202A Datasheet HTML 33Page - Hynix Semiconductor HMS87C1202A Datasheet HTML 34Page - Hynix Semiconductor HMS87C1202A Datasheet HTML 35Page - Hynix Semiconductor HMS87C1202A Datasheet HTML 36Page - Hynix Semiconductor HMS87C1202A Datasheet HTML 37Page - Hynix Semiconductor HMS87C1202A Datasheet HTML 38Page - Hynix Semiconductor HMS87C1202A Datasheet HTML 39Page - Hynix Semiconductor HMS87C1202A Datasheet HTML 40Page - Hynix Semiconductor HMS87C1202A Datasheet HTML 41Page - Hynix Semiconductor Next Button
Zoom Inzoom in Zoom Outzoom out
 37 / 88 page
background image
34
Apr. 2001 ver 1.0
HMS87C130XA/120XA/110XA
9. I/O PORTS
The HMS87C1X0XA has four ports, RA, RB, RC and RD.
These ports pins may be multiplexed with an alternate
function for the peripheral features on the device. In gen-
eral, when a initial reset state, all ports are used as a general
purpose input port.
All pins have data direction registers which can set these
ports as output or input. An “1” in the port direction regis-
ter defines the corresponding port pin as output. Converse-
ly, write “0” to the corresponding bit to specify as an input
pin. For example, to use the even numbered bit of RA as
output ports and the odd numbered bits as input ports, write
“55H” to address C1H (RA direction register) during initial
setting as shown in Figure 9-1.
Reading data register reads the status of the pins whereas
writing to it will write to the port latch.
Figure 9-1 Example of port I/O assignment
9.1 RA and RAIO registers
RA is an 8-bit bidirectional I/O port (address C0H). Each
port can be set individually as input and output through the
RAIO register (address C1H).
RA1~RA7 ports are multiplexed with Analog Input Port
(AN1~AN7) and RA0 port is multiplexed with Event
Counter Input Port (EC0).
Figure 9-2 Registers of Port RA
The control register RAFUNC (address CAH) controls to
select alternate function. After reset, this value is “0”, port
may be used as general I/O ports. To select alternate func-
tion such as Analog Input or External Event Counter Input,
write “1” to the corresponding bit of RAFUNC.Regardless
of the direction register RAIO, RAFUNC is selected to use
as alternate functions, port pin can be used as a correspond-
ing alternate features (RA0/EC0 is controlled by RB-
FUNC)
I: INPUT PORT
WRITE “55H” TO PORT RA DIRECTION REGISTER
0
1
0
1
0
1
0
1
I
O
I
O
I
O
I
O
RA DATA
RB DATA
RA DIRECTION
RB DIRECTION
C0H
C1H
C2H
C3H
76543210
BIT
76543210 PORT
O: OUTPUT PORT
RA7 RA6 RA5 RA4 RA3 RA2 RA1 RA0
INPUT / OUTPUT DATA
0 : INPUT PORT
1 : OUTPUT PORT
DIRECTION SELECT
RA Data Register
RA
ADDRESS : C0H
RESET VALUE : Undefined
RA Direction Register
RAIO
ADDRESS : C1H
RESET VALUE : 00000000
ANSEL0
RA Function Selection Register
RAFUNC
ADDRESS : CAH
RESET VALUE : 00000000
ANSEL7
ANSEL1
ANSEL2
ANSEL3
ANSEL4
ANSEL5
ANSEL6
0 : RB0
1 : AN0
0 : RA1
1 : AN1
0 : RA2
1 : AN2
0 : RA3
1 : AN3
0 : RA4
1 : AN4
0 : RA5
1 : AN5
0 : RA6
1 : AN6
0 : RA7
1 : AN7
PORT
RAFUNC.7~0
Description
RA7/AN7
0
RA7 (Normal I/O Port)
1
AN7 (ADS2~0=111)
RA6/AN6
0
RA6 (Normal I/O Port)
1
AN6 (ADS2~0=110)
RA5/AN5
0
RA5 (Normal I/O Port)
1
AN5 (ADS2~0=101)
RA4/AN4
0
RA4 (Normal I/O Port)
1
AN4 (ADS2~0=100)
RA3/AN3
0
RA3 (Normal I/O Port)
1
AN3 (ADS2~0=011)
RA2/AN2
0
RA2 (Normal I/O Port)
1
AN2 (ADS2~0=010)
RA1/AN1
0
RA1 (Normal I/O Port)
1
AN1 (ADS2~0=001)
RA0/EC01
1. This port is not an Analog Input port, but Event Counter clock
source input port. EC0 is controlled by setting TOCK2~0 = 111.
The bit RAFUNC.0 (ANSEL0) controls the RB0/AN0/AVref port
(Refer to Port RB).
RA0 (Normal I/O Port)
EC0 (T0CK2~0=111)



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com