Skip to content

RZ Processor Digital I/O

The RZ Processors include 24 bits of programmable digital I/O, two word addressable bytes and eight bit addressible bits. Direction of bytes and bits (in/out) can be set in the corresponding device specific control macro for the device, RZ2_Control, RZ5_Control, RZ5D_Control, RZ6_Control. See below for components/bitmasks to address bytes/bits.

RZ2_Control macro

Byte Addressable Digital I/O

Bitmasks to use for accessing byte addressable digital I/O with the WordIn, WordOut components.

Port Byte/Bits Bitmask (Integer)
Port A Byte A (bits 0 - 7) M = 255
Port B Byte B (bits 0 - 7) M = 65280

Reading Bytes A and B

Reading Bytes A and B

Writing to Bytes A and B

Writing to Bytes A and B

Reading Bits from a Byte

Reading Bits from a Byte

Bit Addressable Digital I/O

Bitmasks to use for accessing bit addressable digital I/O with the BitIn, BitOut components.

Bit Bitmask (Integer)
0 M = 1
1 M = 2
2 M = 4
3 M = 8
4 M = 16
5 M = 32
6 M = 64
7 M = 128

Port C As Inputs

Port C as inputs

Port C As Outputs

Port C as outputs