42 / 132 page

Handshake Solutions
HT80C51 User Manual
Peripheral Modules – General Purpose IOs
Page 42 of 132
© Philips Electronics N.V. 2005
5.4.
General Purpose IOs
This module comprises unidirectional, parallel input and/or output ports to read in signals from the
environment or set signals for the system.
5.4.1.
Options
The number and addresses of output ports can be selected (ordered) by using options
HT80C51_GPIO_POUT_COUNT and HT80C51_GPIO_POUT_ADDRESSES.
The number and addresses of input ports can be selected (ordered) by using options
HT80C51_GPIO_PIN_COUNT and HT80C51_GPIO_PIN_ADDRESSES.
Note: If an output port is placed at an address ending with 0H or 8H, the bits of the port are directly
addressable.
5.4.2.
Special function registers (POUTx PINx)
POUT0
Output Port 0
addr = 80H
(configurable)
reset value = FFH
bits
7
6
5
4
3
2
1
0
POUT0
bit
symbol
Function
POUT0.7
..
POUT0.0
set the output values of output pins gpio_pout0_o[7:0]
POUT1
Output Port 1
addr = 90H
(configurable)
reset value = FFH
bits
7
6
5
4
3
2
1
0
POUT1
bit
symbol
Function
POUT1.7
..
POUT1.0
set the output values of output pins gpio_pout1_o[7:0]
POUT2
Output Port 2
addr = A0H
(configurable)
reset value = FFH
bits
7
6
5
4
3
2
1
0
POUT2
bit
symbol
Function
POUT2.7
..
POUT2.0
set the output values of output pins gpio_pout2_o[7:0]