36.5.1 I/O Lines

The pins used for interfacing the SLCDC may be multiplexed with PIO lines. Refer to the section “Block Diagram”.

If I/O lines of the SLCDC are not used by the application, they can be used for other purposes by the PIO Controller.

By default (SLCDC_SMR0 cleared), the assignment of the segment controls and commons are automatically done depending on COMSEL and SEGSEL in the Mode register (SLCDC_MR). For example, if 10 segments are programmed in the SEGSEL field, they are automatically assigned to SEG[9:0] whereas the remaining SEG pins are automatically selected to be driven by the multiplexed digital functions.

In any case, the user can define a new layout pattern for the segment assignment by programming SLCDC_SMR0 in order to optimize the usage of multiplexed digital function. If at least one bit is set in SLCDC_SMR0, the corresponding I/O line is driven by an LCD segment, whereas any cleared bit of this register selects the corresponding multiplexed digital function.