29.9.1 CLB Automatic Configuration

The CLB can automatically be configured during microcontroller start-up. The CLB Configuration on Start-up (CLBSU) Configuration bit determines how the CLB will be configured.

When CLBSU is set (CLBSU = 1), the CLB will be configured during normal code execution.

Important: If CLBSU is set and the CPU Halt (CPUHALT) bit is clear, the CLB, as well as any other desired peripherals, will not be configured since no software execution takes place.

When CLBSU is clear (CLBSU = 0), the CLB will be configured by the NVM Scanner during device start-up and before software execution. The CLB Configuration Start Address (CLBSA) Configuration bits determine the NVM address (high byte) location of the CLB image. If CPUHALT is set (CPUHALT = 1), normal software execution occurs once the NVM Scanner configures the device. If CPUHALT is clear (CPUHALT = 0), the CPU will halt after the NVM Scanner completes the loading of the CLB image, and no software execution will occur. This allows the CLB module to operate without CPU intervention.