Renesas R8C/Tiny Series Manuel Page 160

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 199
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 159
R8C/10 Group
Rev.1.20 Jan 27, 2006 page 150 of 180
REJ09B0019-0120
17.4.3 Software Commands
Software commands are described below. The command code and data must be read and written in
8-bit units.
Table 17.4 Software Commands
Read Array Command
This command reads the flash memory.
Writing FF16 in the first bus cycle places the microcomputer in read array mode. Enter the read
address in the next or subsequent bus cycles, and the content of the specified address can be read
in 8-bit units.
Because the microcomputer remains in read array mode until another command is written, the con-
tents of multiple addresses can be read in succession.
Read Status Register Command
This command reads the status register.
Write 7016 in the first bus cycle, and the status register can be read in the second bus cycle. (Refer
to Section 17.4.4, Status Register.) When reading the status register too, specify an address in the
user ROM area.
Avoid executing this command in EW1 mode.
Clear Status Register Command
This command sets the status register to 0.
Write 5016 in the first bus cycle, and the FMR06 to FMR07 bits in the FMR0 register and SR4 to SR5
in the status register will be set to 0.
Command
Program
Clear status register
Read array
Read status register
First bus cycle Second bus cycle
Block erase
Write
Write
Write
Write
Write
Mode
Read
Write
Write
Mode
X
WA
BA
Address
SRD
WD
D0
16
Data
(D
7
to D
0
)
FF
16
70
16
50
16
40
16
20
16
Data
(D
7
to D
0
)
X
X
X
WA
X
Address
SRD: Status register data (D
7
to D
0
)
WA: Write address (Make sure the address value specified in the the first bus cycle is the same address
as the write address specified in the second bus cycle.)
WD: Write data (8 bits)
BA: Given block address
X: Any address in the user ROM area
17.4 CPU Rewrite Mode
Vue de la page 159
1 2 ... 155 156 157 158 159 160 161 162 163 164 165 ... 198 199

Commentaires sur ces manuels

Pas de commentaire