885
SAM4CP [DATASHEET]
43051E–ATPL–08/14
Programming is straightforward in this mode but it prevents flexibility of use of the digital peripheral multiplexed on
SEG0:49
especially when the number of segments to drive is close to the maximum (50).
For example, if the SEGSEL is set to 48, only the digital peripheral associated to SEG49 can be used and none of the
other digital peripherals multiplexed on SEG0:48 I/O can be used.
To offer a flexible selection of digital peripherals multiplexed on SEG0:49 the user can manually configure the SEG I/O
pins to be driven by the SLCDC.
This is done by programming the SLCDC_SMR0/1 registers. As soon as their values differ from 0 the segment
remapping mode is used.
When configuring a logic 1 at index n (n = 0..49) in SLCDC_SMR0/1 registers, the SLCDC forces the SEGn I/O pin to be
driven by a segment waveform. In this mode the SEGSEL field configuration value in SLCDC_MR is ignored.
In remapping mode the software dispatches the pixels into SLCDC_LMEMRx or SLCDC_MMEMRx according to what is
programmed in SLCDC_SMR0/1 registers.
Figure 39-13. Segments Remapping Example
co
m
0
co
m
1
seg0
seg1
seg2
seg3
LCD Displa
y
Panel
MICROCONTROLLER
COM0 COM1
COM5
SEG0 SEG1 SEG2 SEG3 SEG4
SEG28 SEG29 SEG30
Dig0
Dig1
Dig5
Dig6
Dig7
Dig8
Dig9
Dig10
Dig11 Dig12 Dig13
COMSEL=1
SEGSEL=3
SLCDC_SMR0=0
SLCDC_SMR1=0
SLCDC_LMEMR0=0
x
5
SLCDC_LMEMR1=0
x
A
co
m
0
co
m
1
seg0
seg1
seg2
seg3
LCD Displa
y
Panel
MICROCONTROLLER
COM0 COM1
COM5
SEG0 SEG1 SEG2 SEG3 SEG4
SEG28 SEG29 SEG30
Dig0
Dig1
Dig5
Dig6
Dig7
Dig8
Dig9
Dig10
Dig11 Dig12 Dig13
COMSEL=1
SEGSEL=3
SLCDC_SMR0=0
x
8000_0002
SLCDC_SMR1=0
x
0000_0003
SLCDC_LMEMR0=0
x
2,
SLCDC_MMEMR0=0
x
1
SLCDC_LMEMR1=0
x
8000_0000
SLCDC_MMEMR1=0
x
0000_0002
DEFAULT SEGMENT
PINS ASSIGMENTS
USER REMAPPED
SEGMENT PINS
ASSIGMENTS
User Config.
Default Config.
Unusable Digital Functions.
Dig10
Dig11 Dig12 Dig13
LCD Panel Config.
Direct I
m
age Buffer.
Pre-processed I
m
age Buffer.
Dig6
Dig8
Dig9
Dig10