26.6.12 ECC Control

Note: This Register is only available on PIC32CM5164 and PIC32CM2532 variants.
Name: ECCCTRL
Offset: 0x80
Reset: 0x00000000
Property: PAC Write-Protection

Bit 3130292827262524 
          
Access  
Reset  
Bit 2322212019181716 
          
Access  
Reset  
Bit 15141312111098 
 SECCNT[7:0] 
Access R/WR/WR/WR/WR/WR/WR/WR/W 
Reset 00000000 
Bit 76543210 
       ECCDFDISECCDIS 
Access R/WR/W 
Reset 00 

Bits 15:8 – SECCNT[7:0] Flash SEC Count

SECCNT is the start value of an internal counter that decrements (by 1) its count value each time an SEC event occurs. The internal counter stops decrementing at zero. If an SEC error occurs when the internal counter is zero, the INTFLAG.SERR flag bit is set. The set value is not automatically reloaded when the counter reaches 0.

Bit 1 – ECCDFDIS Data Flash section ECC Disable

Writing '0' will have no effect.

Writing '1' will disable the ECC for the Data Flash.

Once disabled, it cannot be re-enabled manually, and will only be re-enabled automatically after the next reset.

ValueDescription
0 Data Flash ECC is enabled
1 Data Flash ECC is disabled

Bit 0 – ECCDIS Flash Main array ECC Disable

Writing '0' will have no effect.

Writing '1' will disable the ECC for the main array.

Once disabled, it cannot be re-enabled manually, and will only be re-enabled automatically after the next reset.

ValueDescription
0 Flash main array ECC is enabled
1 Flash main array ECC is disabled