English
Language : 

CP3BT23 Datasheet, PDF (38/260 Pages) Texas Instruments – CP3BT23 Reprogrammable Connectivity Processor with Bluetooth and Dual CAN Interfaces
8.5.5 Flash Data Memory 0 Write Enable Register DISVRF The Disable Verify bit controls the automatic
(FSM0WER)
verification feature. This bit must not be
The FSM0WER register controls write protection for the
flash data memory. The data block is divided into 16 512-
byte sections. Each bit in the FSM0WER register controls
write protection for one of these sections. The FSM0WER
register is cleared after device reset, so the flash memory is
write protected after reset. The CPU bus master has read/
write access to this registers.
IENPROG
changed while the flash program memory is
busy being programmed or erased.
0 – New flash program memory contents are
automatically verified after programming.
1 – Automatic verification is disabled.
The Interrupt Enable for Program bit is clear
after reset. The flash program and data mem-
ories share a single interrupt channel but have
independent interrupt enable control bits.
15
0
0 – No interrupt request is asserted to the
FSM0WE
ICU when the FMFULL bit is cleared.
1 – An interrupt request is made when the
FMFULL bit is cleared and new data can
FSM0WEn The Flash Data Memory 0 Write Enable n bits
control write protection for a section of a flash PE
memory data block. The address mapping of
the register bits is shown below.
Bit
Logical Address Range
te 0
1–14
0D 0000h–0D 01FFh
...
15
0D 1E00h–0D 1FFFh
PER
8.5.6 Flash Memory Control Register (FMCTRL/
le FSMCTRL)
This register controls the basic functions of the Flash pro-
gram memory. The register is clear after device reset. The
CPU bus master has read/write access to this register.
7 65
4
3
21
0
o MER PER PE IENPROG DISVRF Res. CWD LOWPRW
Obs LOWPRW
The Low Power Mode controls whether flash
program memory is operated in low-power
mode, which draws less current when data is
read. This is accomplished be only accessing
the flash program memory during the first half
of the clock period. The low-power mode must
not be used at System Clock frequencies
above 25 MHz, otherwise a read access may
return undefined data. This bit must not be
changed while the flash program memory is
MER
be written into the write buffer.
The Program Enable bit controls write access
of the CPU to the flash program memory. This
bit must not be altered while the flash program
memory is busy being programmed or erased.
The PER and MER bits must be clear when
this bit is set.
0 – Programming the flash program memory
by the CPU is disabled.
1 – Programming the flash program memory
is enabled.
The Page Erase Enable bit controls whether a
a valid write operation triggers an erase oper-
ation on a 1024-byte page of flash memory.
Page erase operations are only supported for
the main blocks, not the information blocks. A
page erase operation on an information block
is ignored and does not alter the information
block. When the PER bit is set, the PE and
MER bits must be clear. This bit must not be
changed while the flash program memory is
busy being programmed or erased.
0 – Page erase mode disabled. Write opera-
tions are performed normally.
1 – A valid write operation to a word location
in program memory erases the page that
contains the word.
The Module Erase Enable bit controls wheth-
er a valid write operation triggers an erase op-
eration on an entire block of flash memory. If
an information block is written in this mode,
both the information block and its correspond-
ing main block are erased. When the MER bit
is set, the PE and PER bits must be clear. This
busy being programmed or erased.
bit must not be changed while the flash pro-
0 – Normal mode.
gram memory is busy being programmed or
1 – Low-power mode.
erased.
CWD
The CPU Write Disable bit controls whether
0 – Module erase mode disabled. Write oper-
the CPU has write access to flash memory.
ations are performed normally.
This bit must not be changed while FMBUSY
1 – A valid write operation to a word location
is set.
in a main block erases the block that con-
0 – The CPU has write access to the flash
tains the word. A valid write operation to a
memory
word location in an information block
1 – An external debugging tool is the current
erases the block that contains the word
“owner” of the flash memory interface, so
and its associated main block.
write accesses by the CPU are inhibited.
37
www.national.com