English
Language : 

SAM4L Datasheet, PDF (1037/1185 Pages) ATMEL Corporation – ATSAM ARM-based Flash MCU
ATSAM4L4/L2
The shifting period is defined by the number of frame in TIM.FCx. The frame counter is selected
by writing its number in CSRCFG.FCS field. If frame rate is 50Hz (20ms) in standard waveform
mode, shifting period is 160ms up to 5.1s.
Initial value of circular shift register must be written in CSRCFG.DATA, the direction is defined
by CSRCFG.DIR bit (0 for left, 1 for right) and circular shift register operation is started by writing
a one to CR.CSTART.
Once enabled, data is shifted every TIM.FCx+1 frames, circular shift register is autonomous and
system can enter any Power Save Mode (only 32kHz must be running).
Figure 39-9. Wheel Animation Example (8 Segments)
circular shift
register
b7 b6 b5 b4 b3 b2 b1 b0
0
0
1
0
0
0
0
0
LCD wheel
39.6.10
ASCII Character Mapping
LCDCA handles up to four ASCII characters tables, configured in Character Mapping Configura-
tion register (CMCFG). Instead of handling each segments in display memory for a selected
digit, user writes ASCII code in Character Mapping Control Register (CMCR) to display the cor-
responding character.
User can then drive several digits with few operations:
1. select the Type of Digit (CMCFG.TDG), see Figure 39-10 on page 1038,
2. write the Start Segment value (CMCFG.STSEG) of the first digit,
3. select Digit Reverse Mode (CMCFG.DREV) if required. If DREV is one, segment index
is decremented,
4. then write ASCII code in CMCR register.
If digit uses contiguous segments, repeat step 4 to update remaining digits. Segment index is
updated automatically according to the number of segment used in the digit and DREV value.
42023C–SAM–02/2013
1037