
CHAPTER 4 PORT FUNCTIONS
User’s Manual U15905EJ2V1UD
152
4.3.10 Port CS
Port CS can be set to the input or output mode in 1-bit units.
The number of I/O port bits differs depending on the product.
Commercial Name
Number of I/O Port Bits
V850ES/SA2
4-bit I/O port
V850ES/SA3
8-bit I/O port
(1) Functions of port CS
Input/output data can be specified in 1-bit units by using port register CS (PCS).
Can be set to the input or output mode in 1-bit units by using port mode register CS (PMCS).
Can be set to the port mode or control mode (alternate function) in 1-bit units by using port mode control
register CS (PMCCS).
Port CS has an alternate function as the following pins.
Table 4-14. Alternate-Function Pins of Port CS
Pin Name
Alternate-Function Pin
I/O
PULL
Note 1
Remark
PCS0
CS0
PCS1
CS1
PCS2
CS2
PCS3
CS3
PCS4
Note 2
PCS5
Note 2
PCS6
Note 2
Port CS
PCS7
Note 2
I/O
None
Notes 1. Software pull-up function
2. V850ES/SA3 only