Configuration Template

This section introduces the Protocol Configuration Template or PCT. The PCT is where the microcontroller peripheral configurations needed to produce the adapted addressable LED protocol functions are brought together. This functional core assembly coding is applied to each adapted protocol project setup prior to entering the display specific protocol assembly coding.

Streamlining Display Project Development

The template coding facilitates the initiation of a display project composition with composing actual display sequence code as opposed to repeatedly entering the PIC16F1509 configuration code for each display project. This template is structured to be all inclusive, such that configuration items needed to compose the display sequences of this guide and those of the programmer are available. The following are the essential elements of the protocol configuration template.

The CONFIG item configurations are specific to setting the PIC16F1509 to function in producing the adapted protocol.

The variables listed in the PCT are selected to be applicable to the display program modes presented in this guide. Not all variables are applied to all display programs and modes. As such, variables which are not needed in the compositions of a display program can be deleted to reduce the program lines without affecting the PCT function.

The required program sections or PSECTS are set in the protocol configuration template.

The configurations of the required PIC16F1509 peripherals are set in the PCT with the data transfer rate change as a selectable item.

Only the Buffer Clear Delay is required in all protocol display program compositions. Application of the short, medium and long node illumination delays are at the discretion of the programmer in modifying the visual presentations of the display program and can be deleted if not used in a composition.

The all nodes ON and all nodes OFF subroutines related to the linear, serial and panel modes can be deleted if not used in a display mode. The color selection of the all nodes ON subroutines is set in the subroutine with attention to the LED color schemes of the respective nodes and pixels.