Configuration Steps to Enable ABM mode
- Disable SLCD and disable all the
previous running modes as given in
xpro_lcd_clear_all()
- Write the appropriate configuration
for the ABM mode mentioned in the above section (Automated Bit Mapping Mode Initialization) using the function
slcd_set_automated_bit()
- Disable the frame counter by 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. ABMEN bit using the function
slcd_enable_automated_bit()
- Configure DMA resource parameters and
allocate resource using the function
configure_dma_resource(&example_resource)
- Configure the DMA descriptor
parameters using the function
setup_transfer_descriptor(&example_resource)
- Create the call back function,
Register call back, and enable the callback if the application requires
- Call the function
dma_start_transfer_job(&example_resource)
. After that upon
the ABM peripheral trigger occurs the DMA transfer will be initiated automatically.
- Since DMA transaction has configured
as linked descriptor, the exit from the continuous transaction is implemented in the
function
dma_callback()
by using dma_break
variable. This step includes disabling the ABM mode and freeing the DMA channel used
for ABM mode.