# Configuration Steps to Enable and Scrolling the Characters in this Mode

• Disable SLCD and disable all the previous running modes as given in xpro_lcd_clear_all()
• Configure the NSEG and DEC values in the Character Mapping Configuration register (CMCFG) and the mask value in the CMDMASK register, as shown in Figure 2
• Write the appropriate configuration for the ACM scrolling mode mentioned in the above section (Automated Character Mapping and Initialization), using the function slcd_automated_char_set_config()
• Disable the frame counter using the function slcd_disable_frame_counter(FCx)
• Write the configurations of the frame counter associated with this mode in FCx.OVF and FCx.PB by using the function slcd_set_frame_counter(FCx,0,0x1), and enable it by using the function slcd_enable_frame_counter(FCx)
• Enable the automated character mapping mode by writing the CTRLC. ACMEN bit using the function slcd_enable_automated_character()
• Configure the DMA resource parameters and allocate the resource using the function configure_dma_resource(&example_resource)
• Configure the DMA descriptor parameters by using the function setup_transfer_descriptor(&example_resource)
• Create the call-back function, register call-back, and enable the call-back if the application requires
• Call the function dma_start_transfer_job(&example_resource). When the ACM peripheral trigger occurs, the DMA transfer will be initiated automatically.
• Since DMA transaction has been configured as linked descriptor, the exit from the continuous transaction, disabling the ACM scrolling mode and free the DMA channel used for this mode are implemented in the function dma_callback() by using the dma_break variable