
СРС308 Processor Module
CPC308 Programming
C P C 3 0 8 U s e r M a n u a l
© 2 0 1 3 F a s t w e l V e r . 0 0 1 b E
60
Register 1 - Output buffer register
This register is intended for setting the output levels of the discrete input/output port channels.
Address
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
01h
Input 7
Input 6
Input 5
Input 4
Input 3
Input 2
Input 1
Input 0
If any bit of this register has been set, the respective port channel has a high level, if the bit has
been reset, the channel level is low.
By default, all the port bits are set.
Register 2 - Inversion register
Permits to invert the input buffer status.
Address
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
02h
Input 7
Input 6
Input 5
Input 4
Input 3
Input 2
Input 1
Input 0
If any bit of this register has been set, the respective bit of the input register will be inverted, if the
bit has been reset, there is no inversion.
By default, all the port bits are reset.
Register 3 - Configuration register.
This register is intended for setting the direction of each input/output port channel.
Address
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
03h
Input 7
Input 6
Input 5
Input 4
Input 3
Input 2
Input 1
Input 0
If any bit of this register has been set, the respective port channel is configured as "input", if the bit
has been reset, the channel is configured as "output".
By default, all the port bits are set.