14.12.7 SCANCON0
Note:
- Setting SCANEN =
0
(SCANCON0 register) does not affect any other register content. - This bit is cleared when LADR > HADR (and a data cycle is not occurring).
- If INTM =
1
, this bit is overridden (to zero, but not cleared) during an interrupt response. - BUSY =
1
when the NVM is being accessed, or when the CRC sends a ready signal. - See Table 14-1 for more detailed information.
- An invalid address can occur when the entire range of PFM is scanned and the value of LADR rolls over. An invalid address can also occur if the value in the Scan Low address registers points to a location that is not mapped in the memory map of the device.
- CRCEN and CRCGO bits must be set before setting SCANGO bit. Refer to Program Memory Scan Configuration.
Name: | SCANCON0 |
Offset: | 0xF4F |
Bit | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |
SCANEN | SCANGO | BUSY | INVALID | INTM | MODE[1:0] | ||||
Access | R/W | R/W/HC | R | R | R/W | R/W | R/W | ||
Reset | 0 | 0 | 0 | 1 | 0 | 0 | 0 |
Bit 7 – SCANEN Scanner Enable bit(1)
Value | Description |
---|---|
1 | Scanner is enabled |
0 | Scanner is disabled, internal states are reset |
Bit 6 – SCANGO Scanner GO bit(2, 3)
Value | Description |
---|---|
1 | When the CRC sends a ready signal, NVM will be accessed according to MDx and data passed to the client peripheral. |
0 | Scanner operations will not occur |
Bit 5 – BUSY Scanner Busy Indicator bit(4)
Value | Description |
---|---|
1 | Scanner cycle is in process |
0 | Scanner cycle is complete (or never started) |
Bit 4 – INVALID Scanner Abort Signal bit
Value | Description |
---|---|
1 |
SCANLADRL/H/U has incremented to an invalid address(6) or the scanner was not set up correctly(7) |
0 |
SCANLADRL/H/U points to a valid address |
Bit 3 – INTM NVM Scanner Interrupt Management Mode Select bit
Value | Name | Description |
---|---|---|
X | MODE =
10 |
This bit is ignored |
1 | MODE =
01 |
CPU is stalled until all data is transferred. SCANGO is overridden (to zero) during interrupt operation; scanner resumes after returning from interrupt |
0 | MODE =
01 |
CPU is stalled until all data is transferred. SCANGO is not affected by interrupts, the interrupt response will be affected |
1 | MODE = 00 OR
11 |
SCANGO is overridden (to zero) during interrupt operation; scan operations resume after returning from interrupt |
0 | MODE = 00 OR
11 |
Interrupts do not prevent NVM access |
Bits 1:0 – MODE[1:0] Memory Access Mode bits(5)
Value | Description |
---|---|
11 | Triggered mode |
10 | Peek mode |
01 | Burst mode |
00 | Concurrent mode |