cp3ub17 National Semiconductor Corporation, cp3ub17 Datasheet - Page 37

no-image

cp3ub17

Manufacturer Part Number
cp3ub17
Description
Reprogrammable Connectivity Processor With Usb Interface
Manufacturer
National Semiconductor Corporation
Datasheet
8.5.6
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.
LOWPRW
CWD
DISVRF
IENPROG
PE
MER PER PE IENPROG DISVRF Res. CWD LOWPRW
7
6
FSMCTRL)
Flash Memory Control Register (FMCTRL/
5
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
busy being programmed or erased.
0
1
The CPU Write Disable bit controls whether
the CPU has write access to flash memory.
This bit must not be changed while FMBUSY
is set.
0
1
The Disable Verify bit controls the automatic
verification feature. This bit must not be
changed while the flash program memory is
busy being programmed or erased.
0
1
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.
0
1
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
1
Normal mode.
Low-power mode.
The CPU has write access to the flash
memory
An external debugging tool is the current
“owner” of the flash memory interface, so
write accesses by the CPU are inhibited.
New flash program memory contents are
automatically verified after programming.
Automatic verification is disabled.
No interrupt request is asserted to the
ICU when the FMFULL bit is cleared.
An interrupt request is made when the
FMFULL bit is cleared and new data can
be written into the write buffer.
Programming the flash program memory
by the CPU is disabled.
Programming the flash program memory
is enabled.
4
3
2
1
0
37
PER
MER
8.5.7
This register reports the currents status of the on-chip Flash
memory. The FLSR register is clear after device reset. The
CPU bus master has read/write access to this register.
EERR
7
Reserved
Flash Memory Status Register (FMSTAT/
FSMSTAT)
5
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
1
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
bit must not be changed while the flash pro-
gram memory is busy being programmed or
erased.
0
1
The Erase Error bit indicates whether an error
has occurred during a page erase or module
(block) erase. After an erase error occurs,
software can clear the EERR bit by writing a 1
to it. Writing a 0 to the EERR bit has no effect.
Software must not change this bit while the
flash program memory is busy being pro-
grammed or erased.
0
1
DERR FMFULL FMBUSY PERR EERR
4
Page erase mode disabled. Write opera-
tions are performed normally.
A valid write operation to a word location
in program memory erases the page that
contains the word.
Module erase mode disabled. Write oper-
ations are performed normally.
A valid write operation to a word location
in a main block erases the block that con-
tains the word. A valid write operation to a
word location in an information block
erases the block that contains the word
and its associated main block.
The erase operation was successful.
An erase error occurred.
3
2
www.national.com
1
0

Related parts for cp3ub17