Procedure For Setting A Register - Fujitsu FR60 Hardware Manual

32-bit microcontroller mb91301 series
Hide thumbs Also See for FR60:
Table of Contents

Advertisement

CHAPTER 4 EXTERNAL BUS INTERFACE

4.12 Procedure for Setting a Register

This section explains the procedure for setting a register.
■ Procedure for Setting a Register
Using the following procedures to make external bus interface settings:
1. Before rewriting the contents of a register, be sure to set the CSER register so that the
corresponding area is not used (0). If you change the settings while "1" is set, access before
and after the change cannot be guaranteed.
2. Use the following procedure to change a register:
1) Set "0" for the CSER bit corresponding to the applicable area.
2) Set both ASR and ACR at the same time using word access.
Set ACR after setting ASR if ASR and ACR are accessed by halfword.
3) Set AWR.
4) Set the CHER bit corresponding to the applicable area.
5) Set the CSER bit corresponding to the applicable area.
3. The CS0 area is enabled after a reset is released. If the area is used as a program area, the
register contents need to be rewritten while the CSER bit is "1". In this case, make the
settings described in 2) to 4) above in the initial state with a low-speed internal clock. Then,
switch the clock to a high-speed clock.
4. Use the following procedure to change the register value in an area for which prefetch:
1) Set "0" for the bit of CSER corresponding to the applicable area.
2) Set "1" for both the PSUS bit and PCLR bit of the TCR register.
3) Set both ASR and ACR at the same time using word access.
Set ACR after setting ASR if ASR and ACR are accessed by halfword.
4) Set AWR.
5) Set the CHER bit corresponding to the applicable area.
6) Set "0" for both the PSUS bit and PCLR bit of the TCR register.
7) Set "1" for the bit of CSER corresponding to the applicable area.
254

Advertisement

Table of Contents
loading

Table of Contents