Memory Check Function - Epson S1C31D50 Technical Manual

Cmos 32-bit single chip
Hide thumbs Also See for S1C31D50:
Table of Contents

Advertisement

21.4.2 Memory Check Function

Initialization
Before using the memory check function, initialize the HWP as shown below.
1. Configure the HWP operating clock as necessary. (Refer to "Clock Settings.")
2. Set the HWPCTL.HWPEN bit to 0.
3. Set the following HWP internal register bits (memory check function register bits):
- Set the FUNCTION.ID[7:0] bits to 0x03.
- INTMASK.TO_PROCESSING bit
- INTMASK.TO_IDLE bit
4. Set the following bits when using the interrupt:
- Write 1 to the interrupt flags in the HWPINTF register.
- Set the HWPINTE.HWPIE bit to 1.
5. Set the HWPCTL.HWPEN bit to 1.
6. Wait until the HWPINTF.HWP0IF bit is set to 1 and the STATE.STATE[15:0] bits are set to 0x0001 (mc_
state_idle = memory check function idle state).
Initialize the HWP again if the HWPINTF.HWP1IF bit = 1.
Once the memory check function register bits have been set in Step 3, it is not necessary to set again until they
need to be altered. When altering these register bits, perform the above processing from Step 2.
Memory check state transition
Figure 21.4.2.1 shows the memory check state transition diagram.
HWPCTL.HWPEN bit = 0
Memory check function
mc_state
_ram_rw
As shown in the figure above, there are seven operating states in the memory check function.
S1C31D50/D51 TECHNICAL MANUAL
(Rev. 2.00)
MCU boot up
hwp_sleep
mc_state_init
mc_state_idle
mc_state
_ram_march_c
Figure 21.4.2.1 Memory check State Transition Diagram
Seiko Epson Corporation
21 HW Processor (HWP) and Sound Output
(Disable HWP)
(Select memory check function)
(Set check start interrupt mask)
(Set check completed/idle state interrupt mask)
(Clear interrupt flags)
(Enable interrupts)
(Enable HWP)
FUNCTION.ID[7:0] bits = 0x03 (memory check),
HWPCTL.HWPEN bit = 1
mc_state
_checksum
mc_state
_crc
21-13

Advertisement

Table of Contents
loading

This manual is also suitable for:

S1c31d51

Table of Contents