Electronic Components Datasheet Search
  English  ▼

X  

GMS77C1001 Datasheet(PDF) 26 Page - Hynix Semiconductor

Part # GMS77C1001
Description  8-BIT SINGLE-CHIP MICROCONTROLLERS
PDF  44 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

GMS77C1001 Datasheet(HTML) 26 Page - Hynix Semiconductor

Back Button GMS77C1001 Datasheet HTML 22Page - Hynix Semiconductor GMS77C1001 Datasheet HTML 23Page - Hynix Semiconductor GMS77C1001 Datasheet HTML 24Page - Hynix Semiconductor GMS77C1001 Datasheet HTML 25Page - Hynix Semiconductor GMS77C1001 Datasheet HTML 26Page - Hynix Semiconductor GMS77C1001 Datasheet HTML 27Page - Hynix Semiconductor GMS77C1001 Datasheet HTML 28Page - Hynix Semiconductor GMS77C1001 Datasheet HTML 29Page - Hynix Semiconductor GMS77C1001 Datasheet HTML 30Page - Hynix Semiconductor Next Button
Zoom Inzoom in Zoom Outzoom out
 26 / 44 page
background image
GMS77C1000/GMS77C1001
July. 2001 Ver. 1.1
23
10. I/O PORTS
The GMS77C1000/1001 has a 4-bit I/O port(RA) and a 8-
bit I/O port(RB).
All pin have data(RA,RB) and direction(TRISA,TRISB)
registers which can assign these ports as output or input.
A “0” in the port direction registers configure the corre-
sponding port pin as output. Conversely, write “1” to the
corresponding bit to specify it as input pin (Hi-Z state).
For example, to use the even numbered bit of RB as output
ports and the odd numbered bits as input ports, write “55H”
to TRISB register during initial setting as shown in Figure
10-1.
All the port direction registers in the GMS77C1000/1001
have “1” written to them by reset function. This causes all
port as input.
10.1 Port RA
RA is a 4-bit I/O register. Each I/O pin can independently
used as an input or an output through the port direction reg-
ister, TRISA. A “0” in the TRISA register configure the
corresponding port pin as output. Conversely, write “1”to
the corresponding bit to specify it as input pin.
Bits 7-4 are unimplemented and read as '0's.
10.2 Port RB
RB is an 8-bit I/O register. Each I/O pin can independently
used as an input or an output through the port direction reg-
ister, TRISB. A “0” in the TRISB register configure the
corresponding port pin as output. Conversely, write “1”to
the corresponding bit to specify it as input pin.
Note: A read of the ports reads the pins, not the output
data latches. That is, if an output driver on a pin is
enabled and driven high, but the external system is
holding it low, a read of the port will indicate that the
pin is low.
10.3 I/O Interfacing
The equivalent circuit for an I/O port pin is shown in Fig-
ure 10-4. All ports may be used for both input and output
operation.
For input operations these ports are non-latching. Any in-
put must be present until read by an input instruction. The
outputs are latched and remain unchanged until the output
latch is rewritten. To use a port pin as output, the corre-
sponding direction control bit (in TRISA, TRISB) must be
cleared (= 0). For use as an input, the corresponding TRIS
bit must be set. Any I/O pin can be programmed individu-
ally as input or output..
10.4 I/O Successive Operations
The actual write to an I/O port happens at the end of an in-
struction cycle, whereas for reading, the data must be valid
at the beginning of the instruction cycle (Figure 10-5).
Therefore, care must be exercised if a write followed by a
read operation is carried out on the same I/O port.
The sequence of instructions should allow the pin voltage
to stabilize (load dependent) before the next instruction,
which causes that file to be read into the CPU, is executed.
FIGURE 10-1 EXAMPLE OF PORT I/O ASSIGNMENT
FIGURE 10-2 RA PORT REGISTERS
0
PORT RB
7
1
6
0
5
1
4
0
3
1
2
0
1
1
0
OUT IN OU T IN OU T IN OUT IN
Write “55H” to port RB direction register
TRISB
RA RA3
3
RA2
2
RA 1
1
RA0
0
RA Data Register
RA Direction Register
TRISA
ADDRESS : 05H
RESET VALUE : Undefined
ADDRESS : N/A
RESET VALUE : 0FH
FIGURE 10-3 RB PORT REGISTERS
RB RB7
7
RB6
6
RB 5
5
RB4
4
RB Data Register
RB Direction Register
TRISB
ADDRESS : 06H
RESET VALUE : Undefined
ADDRESS : N/A
RESET VALUE : FFH
RB3
3
RB 2
2
RB1
1
RB0
0



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


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