Specifications
PL 3120/PL 3150/ PL 3170 Power Line Smart Transceiver Data Book 53
Parallel Input/Output
Pins IO0 – IO10 can be configured as a bidirectional 8-bit data and 3-bit control port for connecting to an external
processor. The other processor can be a computer, microcontroller, or another PL Smart Transceiver (for gateway
applications). The parallel interface can be configured in master, slave A, or slave B mode. Typically, two PL Smart
Transceivers interface in master/slave A mode and a PL Smart Transceiver
interfaces with another microprocessor in the
slave B configuration, with the other microprocessor
as the master. Handshaking is used in both modes to control the
instruction execution, and application processing is suspended for the duration of the transfer (up to 255 bytes/transfer).
Consult the Neuron C Reference Guide for detailed programming instructions.
Upon a reset condition, the master processor monitors the low transition of the handshake (HS) line from the slave, then
passes a CMD_RESYNC (0x5A) for synchronization purposes. This must be done within 0.84 seconds after reset goes
high with a PL Smart Transceiver slave running at 10MHz, to avoid a watchdog reset error condition (see the Neuron C
Programmer’s Guide). The CMD_RESYNC is followed by the slave acknowledging with a CMD_ACKSYNC (0x07).
This synchronization ensures that both processors are properly reset before data transfer occurs. When interfacing two
PL Smart Transceivers, these characters are passed automatically (refer to the flow table illustrated later in this section).
However, when using parallel I/O to interface the PL Smart Transceiver to another microprocessor, that microprocessor
must duplicate the interface signals and characters that are automatically generated by the parallel I/O function of the PL
Smart Transceiver.
For additional information, see the Parallel I/O Interface to the Neuron Chip engineering bulletin.
The timing numbers shown in this section are valid for both an explicit I/O call or an implicit I/O call through a when
clause, and are assumed to be for a PL Smart Transceiver running at 10MHz.
Master/Slave A Mode
This mode is recommended when interfacing two PL Smart Transceivers. In a master/slave A configuration, the master
drives IO8 as a chip select and IO9 to specify a read or write cycle, and the slave drives IO10 as a handshake (HS)
acknowledgment (see Figure 3.16). The maximum data transfer rate is 1 byte per 4 processor instruction cycles, or 2.4
µs per byte at a 10MHz input clock rate. The data transfer rate scales proportionally to the input clock rate (a master
write is a slave read). Timing for the case where the PL Smart Transceiver is the master (Figure 3.17), refers to
measured output timing at 10MHz. After every byte write or byte read, the HS line is monitored by the master, to verify
the slave has completed processing (when HS = 0) and the slave is ready for the next byte transfer. This is done
automatically in PL Smart Transceiver-to-PL Smart Transceiver (master/slave A mode) data transfers. The HS line
should be pulled up (inactive) with a 10kΩ resistor to ensure proper resynch behavior after the slave resets. Slave
A timing is shown in Figure 3.18.










