22.3.4.2 Flash Memory Chip Erase and Protect Bit Erase
Flash memory chip erase and protect bit erase commands erase the entire blocks of Flash memory and
write/erase protects of all blocks regardless of write/erase protect or security status.
22.3.5 Common Operation regardless of Command
This section describes common operation under the boot program execution.
22.3.5.1 Serial Operation Mode Determination
When the controller communicates via UART, set the 1st byte to 0x86 at the desired baud rate. Figure
22-8shows waveforms .
UART (0x86)
tAB
Point A
Start
bit 0
bit 1
bit 2
bit 3
bit 4
bit 5
bit 6
bit 7
Stop
Point B
Point C
Point D
tCD
Figure 22-8 Serial operation mode determination data
Figure 22-9 shows a flowchart of boot program. Using 16-bit timer (TMRB) with the time of tAB,
tAC and tAD, the 1st byte of serial operation mode determination data (0x86) after reset is provided. In Fig-
ure 22-9, the CPU monitors level of the receive pin, and obtains a timer value at the moment when the re-
ceive pin’s level is changed. Consequently, the timer values of tAB, tAC and tAD have a margin of er-
ror. In addition, note that if the transfer goes at a high baud rate, the CPU may not be able to determine
the level of receive pin.
The flowchart in Figure 22-10 shows the serial operation mode is determined that the time length of
the receive pin is long or short. If the length is tAB ≤ tCD, the serial operation mode is determined as
UART mode. The time of tAD is used whether the automatic baud rate setting is enable or not. Note that
timer values of tAB, tAC and tAD have a margin of error. If the baud rate is high and operation frequen-
cy is low, each timer value becomes small. This may generates unexpected determination occurs. (To pre-
vent this problem, re-set UART within the programming routine.)
For example, When UART mode is utilized, the controller should allow for a time-out period where
the time is expected to receive an echo-back (0x86) from the target board. The controller should give up
the communication if it fails to get that echo-back within the allowed time.
TMPM3V6/M3V4
22.
Flash Memory Operation
22.3 How to Reprogram Flash using Single Boot Mode
Page 466
2019-02-06
Содержание TMPM3V4
Страница 1: ...32 Bit RISC Microcontroller TX03 Series TMPM3V6 M3V4 ...
Страница 2: ... 2019 Toshiba Electronic Devices Storage Corporation ...
Страница 7: ...Revision History Date Revision Comment 2019 02 06 1 First Release ...
Страница 8: ......
Страница 22: ...xiv ...
Страница 52: ...TMPM3V6 M3V4 3 Processor Core 3 6 Exclusive access Page 30 2019 02 06 ...
Страница 148: ...TMPM3V6 M3V4 7 Exceptions 7 6 Exception Interrupt Related Registers Page 126 2019 02 06 ...
Страница 178: ...TMPM3V6 M3V4 9 Input Output port 9 2 Block Diagrams of Ports Page 156 2019 02 06 ...
Страница 206: ...TMPM3V6 M3V4 10 16 bit Timer Event Counters TMRB 10 7 Applications using the Capture Function Page 184 2019 02 06 ...
Страница 232: ...TMPM3V6 M3V4 11 Universal Asynchronous Receiver Transmitter Circuit UART 11 4 Operation Description Page 210 2019 02 06 ...
Страница 354: ...TMPM3V6 M3V4 14 Synchronous Serial Port SSP 14 6 Frame Format Page 332 2019 02 06 ...
Страница 419: ...TMPM3V6 M3V4 Page 397 2019 02 06 ...
Страница 420: ...TMPM3V6 M3V4 16 Analog Digital Converter ADC 16 6 Timing chart of AD conversion Page 398 2019 02 06 ...
Страница 462: ...TMPM3V6 M3V4 21 Watchdog Timer WDT 21 5 Control register Page 440 2019 02 06 ...
Страница 510: ...TMPM3V6 M3V4 22 Flash Memory Operation 22 4 Programming in the User Boot Mode Page 488 2019 02 06 ...
Страница 538: ...TMPM3V6 M3V4 25 Electrical Characteristics 25 7 Recommended Oscillation Circuit Page 516 2019 02 06 ...
Страница 541: ...26 3 TMPM3V4FWUG TMPM3V4FSUG Type LQFP64 P 1010 0 50E LPHQVLRQV TMPM3V6 M3V4 Page 519 2019 02 06 ...
Страница 544: ......