M306V2 Mitsubishi, M306V2 Datasheet - Page 232

no-image

M306V2

Manufacturer Part Number
M306V2
Description
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER with CLOSED CAPTION DECODER and ON-SCREEN DISPLAY CONTROLLER
Manufacturer
Mitsubishi
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
M306V2EEFP
Manufacturer:
SHARP
Quantity:
102
Part Number:
M306V2EEFP
Manufacturer:
MIT
Quantity:
20 000
Part Number:
M306V2ME-179FP
Manufacturer:
RENESAS
Quantity:
66
Part Number:
M306V2ME-202FP
Manufacturer:
MITSUBISHI
Quantity:
198
Part Number:
M306V2ME-207
Manufacturer:
OREN
Quantity:
92
Part Number:
M306V2ME-207
Manufacturer:
MIT
Quantity:
1 000
Part Number:
M306V2ME-207
Manufacturer:
MIT
Quantity:
20 000
Part Number:
M306V2ME-207FP
Manufacturer:
RENESAS
Quantity:
380
Company:
Part Number:
M306V2ME-212FP
Quantity:
2 830
232
2.17 Programmable I/O Ports
There are 78 programmable I/O ports: P0–P5, P6
Each port can be set independently for input or output using the direction register. A pull-up resistance for
each block of 4 ports can be set.
Figures 2.17.1 to 2.17.4 show the programmable I/O ports.
Each pin functions as a programmable I/O port and as the I/O for the built-in peripheral devices.
To use the pins as the inputs for the built-in peripheral devices, set the direction register of each pin to input
mode. When the pins are used as the outputs for the built-in peripheral devices (other than the D-A con-
verter), they function as outputs regardless of the contents of the direction registers. When pins are to be
used as the outputs for the D-A converter, do not set the direction registers to output mode. See the
descriptions of the respective functions for how to set up the built-in peripheral devices.
2.17.1 Direction Registers
2.17.2 Port Registers
Figures 2.17.6 to 2.17.9 show the direction registers.
These registers are used to choose the direction of the programmable I/O ports. Each bit in these regis-
ters corresponds one for one to each I/O pin.
Figures 2.17.10 to 2.17.13 show the port registers.
These registers are used to write and read data for input and output to and from an external device. A
port register consists of a port latch to hold output data and a circuit to read the status of a pin. Each bit
in port registers corresponds one for one to each I/O pin.
(1) Effect of the protection register
(1) Reading a port register
(2) Writing to a port register
Data written to the direction register of P9 is affected by the protection register. The direction register
of P9 cannot be easily written.
With the direction register set to output, reading a port register takes out the content of the port regis-
ter, not the content of the pin. With the direction register set to input, reading the port register takes out
the content of the pin.
With the direction register set to output, the level of the written values from each relevant pin is output
by writing to a port register. Writing to the port register, with the direction register set to input, inputs a
value to the port register, but nothing is output to the relevant pins. The output level remains floating.
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER with CLOSED CAPTION DECODER
0
–P6
3
, P6
7
, P7, P8
and ON-SCREEN DISPLAY CONTROLLER
2
, P8
MITSUBISHI MICROCOMPUTERS
3
, P8
M306V2ME-XXXFP
6
, P8
7
, P9
M306V2EEFP
0
–P9
4
and P10.
Rev. 1.0

Related parts for M306V2