An all-trinary rolling code method and system which allow a barrier opener
to generate and transmit trinary rolling codes without entering or
storing any rolling code values as binary words includes obtaining a
stored trinary counter value upon a transmitter being actuated to
remotely control a barrier. A trinary function void of trinary to binary
or binary to trinary conversions is used to transform the trinary counter
value to a trinary rolling code output such that the trinary rolling code
output represents a trinary value that would be produced if the trinary
counter value were converted to binary, mirrored, had its highest ordered
bit set to zero after being mirrored, and converted back to trinary. The
trinary rolling code output is combined with a stored trinary transmitter
identification value to generate a trinary word. The transmitter
transmits the trinary word for receipt by a receiver associated with the
barrier.