Specifications

PL 3120/PL 3150/ PL 3170 Power Line Smart Transceiver Data Book 103
Notes
Various combinations of I/O pins can be configured as basic inputs or outputs. The application program can optionally
specify the initial values of basic outputs. Pins configured as outputs can also be read as inputs, returning the value last
written.
The gradient behavior of the timing numbers for different PL Smart Transceiver pins for some of the I/O objects is due
to the shift-and-mask operation performed by the Neuron firmware.
For dualslope input, edgelog input, ontime input, and period input, the timer/counter returns a value (or a table of values,
in the case of edgelog input) in the range 0 to 65,535, representing elapsed times from 0 up to the maximum range given
in Table 3.8.
For ontime input, period input, dualslope, edgelog, and infrared; the timer/counter returns a number in the range 0 to
65,535, representing elapsed times from 0 up to the maximum range given in Table 3.8.
For oneshot output, frequency output, and triac output; the timer/counter can be programmed with a number in the range
0 to 65,535. This number represents the waveform ontime for oneshot output, the waveform period for frequency output,
and the control period from sync input to pulse/level output for the triac output. Table 3.8 gives the range and resolution
for these timer/counter objects at 10MHz. The clock select value is specified in the declaration of the I/O object in the
Neuron C application program, and can be modified at runtime.
Table 3.8 Timer/Counter Resolution and Maximum Range
Oneshot and Triac Outputs;
Dualslope, Edgelog, Ontime,
and Period Inputs
Frequency Output
Clock Select
Resolution
(µs)
Maximum
Range
(ms)
Resolution
(µs)
Maximum
Range
(ms)
0 0.2 13.1 0.4 26.2
1 0.4 26.2 0.8 52.4
2 0.8 52.4 1.6 105
3 1.6 105 3.2 210
4 3.2 210 6.4 419
5 6.4 419 12.8 838
6 12.8 839 25.6 1,678
7 25.6 1,678 51.2 3,355
Note: This table is for a 10MHz input clock. Scale appropriately for other clock rates:
Resolution (µs) = 2
(Clock Select + n)
/(Input Clock in MHz)
Maximum Range (µs) = 65535 x Resolution (µs) x n
n = 1 for oneshot and triac output, and dualslope, edgelog, ontime, and period input
n = 2 for frequency output.
For pulsewidth short output and pulsecount output, Table 3.9 gives the possible choices for pulsetrain repetition
frequencies. Pulsecount can not be used with clock select 0.