SC136, v1.0, User Guide

SC136 is a simple digital input module designed for the RC2014 bus.

The module reads the state of all 8 bits of the selected input port from a pin header. This makes the module useful for interfacing to external electronics.

Port address selection

The port address is set with jumper shunts which are fitted to the header pins indicated below.

The address selection header is a block of 2 rows of 8 pins. These are the 8 address select jumpers and are labelled with their bit numbers.

The module responds to input addresses matching the address set with these jumpers. When a jumper shunt is fitted, that bit must be a 1 (high voltage). When the shunt is not fitted, that bit must be a 0 (low voltage).

The default address for an RC2014 is zero (hexadecimal 00, binary 00000000). This is selected by having no jumper shunts fitted.

If, for example, you wish to set the module to address 32 decimal, which is hexadecimal 20 or binary 00100000, then fit a single jumper shunt to bit 5, as illustrated below.

The least significant address bit (bit 0) does not do anything with this design, but has been included as a place holder for consistency with other modules. You may wish to cut off the pins for bit 0 as a reminder that bit 0 is not used.

As a result of address bit zero being ignored, this module responds to two addresses. The addresses are determined by the 7 upper bits plus bit zero being either high or low. Thus, if the jumper is set to address 32, the module responds to address 32 and 33.

Reading from the digital outputs

The inputs can be read from BASIC or from the Small Computer Monitor. With the module’s address set to zero (no jumper shunts fitted) the input port can be read with the following commands.



From SCM:

I 0

Note: That’s the letter “I” and the number zero.

Homebrew 8-bit retro computing