ETC EM61-0001E-V2

Application Notes
EM61000 RAM & Register DEFINE
TITLE:
Notes number :
REVISED DATE
:
REVISED VERSION
:
APPLY TO CHIPS
:
APPLY TO SOFTWARE :
AP-EM61-0001E-V2
8,FEB, 2002
2.0
(See Notes)
2.0
EM61000 RAM DEFINE TABLE :
RAM register :
b7
b6
b5
b4
R0
IAR
Indirect RAM data
R1
TCC
Timer up Counter
R2
PC
Program Counter, 13bit 8K ROM max.
R3
SF
R4
RSR
R5
INTC
R6
MTC
Melody Time down Counter
R7
TCC2
Timer 2 up Counter
R8
WDT
-
PL1
PL2H
R9
Mapping
-
-
-
RA
MODE
Speech Melody interface Register
RB
Port 1
Port 1 Read data
RC
Port 2
Port 2 R/W data
RD
Port 3
Port 3 R/W data
RE
Port 4
Port 4 R/W data
RF
Port 5
Port 5 Write data
R10
MULT
Multiplier
R11
PRODL
Multiplication result Low
R12
PRODH
Multiplication result High
PS2
PS1
PS0
T
RAM Bank 0-7
ENI
-
b3
b2
b1
b0
P
Z
DC
C
Indirect RAM address 0x20-0x3F for R0
TC2IE
TC2IF-
MIE
PL2L
-
DA SEL DA SET
TCIE
MIF
WAKEH WAKEL
CH2
CH1
TCIF
WTE
CH0
RAM register :
R13
Acc_Buf
R14
SF_Buf
R15
RSR_Buf
R16
R9_Buf
R17
Ch_Flag
b7
b6
b5
b4
b3
b2
b1
b0
FMch8
FMch7
FMch6
FMch5
FMch4
FMch3
FMch2
FMch1
R18
R19
R1A
R1B
R1C
R1D
R1E
R1F
Notes:
EM61001 not support Port4 & port5.
EM61002 not support Port1 , Port3, Port4 & Port5.
EM61100, EM61200, EM61300 not support Port5.
Notes:
Red Name = initial is HIGH after RESET
Blue name = initial is LOW after RESET
Black name = initial is Un-Know after RESET.
Bank 0 (RSR=000x-xxxx)
Bank 1 (RSR=001x-xxxx)
R20
R21
R22
R23
R24
R25
R26
R27
R28
R29
R2A
R2B
R2C
R2D
R2E
R2F
R30
MchStatus for MCH1
MchStatus for MCH2
FPaus FNote FEnv1 Fenv0 F1ton directio1Tstr FTone FPaus FNote FEnv1 Fenv0 F1ton directio1Tstr FTone
R31
R32
R33
R34
R35
R36
R37
Inst = 0III III ,
Inst = 0III III ,
Beat0
Beat0
Beat1
Beat1
Envelope
Envelope
Volum = 0VVV VVVV
Volum = 0VVV VVVV
Env_Type = 000E EEEE
Env_Type = 000E EEEE
Env_Index
Env_Index
R38
R39
R3A
R3B
R3C
R3D
R3E
R3F
Env_M1
Env_M1
Env_N1
Env_N1
Env_Dest
Env_Dest
Env_Count
Env_Count
Note_buf
Note_buf
Bank 2 (RSR=010x-xxxx)
Bank 3 (RSR=011x-xxxx)
R20
R21
R22
R23
R24
R25
R26
R27
R28
R29
R2A
R2B
R2C
R2D
R2E
R2F
R30
MchStatus for MCH3
MchStatus for MCH4
FPaus FNote FEnv1 Fenv0 F1ton directio1Tstr FTone FPaus FNote FEnv1 Fenv0 F1ton directio1Tstr FTone
R31
R32
R33
R34
R35
R36
R37
Inst = 0III III ,
Inst = 0III III ,
Beat0
Beat0
Beat1
Beat1
Envelope
Envelope
Volum = 0VVV VVVV
Volum = 0VVV VVVV
Env_Type = 000E EEEE
Env_Type = 000E EEEE
Env_Index
Env_Index
R38
R39
R3A
R3B
R3C
R3D
R3E
R3F
Env_M1
Env_M1
Env_N1
Env_N1
Env_Dest
Env_Dest
Env_Count
Env_Count
Note_buf
Note_buf
Bank 4 (RSR=100x-xxxx)
Bank 5 (RSR=101x-xxxx)
R20
R21
R22
R23
R24
R25
R26
R27
R28
R29
R2A
R2B
R2C
R2D
R2E
R2F
R30
MchStatus for MCH5
MchStatus for MCH6
FPaus FNote FEnv1 Fenv0 F1ton directio1Tstr FTone FPaus FNote FEnv1 Fenv0 F1ton directio1Tstr FTone
R31
R32
R33
R34
R35
R36
R37
Inst = 0III III ,
Inst = 0III III ,
Beat0
Beat0
Beat1
Beat1
Envelope
Envelope
Volum = 0VVV VVVV
Volum = 0VVV VVVV
Env_Type = 000E EEEE
Env_Type = 000E EEEE
Env_Index
Env_Index
R38
R39
R3A
R3B
R3C
R3D
R3E
R3F
Env_M1
Env_M1
Env_N1
Env_N1
Env_Dest
Env_Dest
Env_Count
Env_Count
Note_buf
Note_buf
Bank 6 (RSR=110x-xxxx)
Bank 7 (RSR=111x-xxxx)
MchCtrl
R20
FchInst
MchNumber
Bank-No
Temp0
Temp1
Temp2
Freq1
Freq2
DataPtrL
DataPtrM
DataPtrH
R21
R22
R23
R24
R25
R26
R27
R28
R29
R2A
R2B
R2C
R2D
R2E
R2F
R30
Fstop
MchStatus for MCH7
DAC_Status
MchStatus for MCH8
FPaus FNote FEnv1 Fenv0 F1ton directio1Tstr FTone FPaus
FNote FEnv1 Fenv0 F1ton directio1Tstr FTone
R31
R32
R33
R34
R35
R36
R37
Inst = 0III III ,
Inst = 0III III ,
Beat0
Beat0
Beat1
Beat1
Envelope
Envelope
Volum = 0VVV VVVV
Volum = 0VVV VVVV
Env_Type = 000E EEEE
Env_Type = 000E EEEE
Env_Index
Env_Index
R38
R39
R3A
R3B
R3C
R3D
R3E
R3F
Env_M1
Env_M1
Env_N1
Env_N1
Env_Dest
Env_Dest
Env_Count
Env_Count
Note_buf
Note_buf
EM61000 I/O Register List :
b7
IOC 5
Prescaler
IOC 6…IOC C
IOC D
IOC E
IOC F
P2 I/O
P3 I/O
P4 I/O
b6
b5
b4
b3
b2
TCC2 Prescaler 1/8- 1/1024
TCC Prescaler 1/2- 1/256
P2S2
P2S1
P2S0
TSR2
TSR1
TSR0
Melody interface Register
Port 2 Input/Output set. 1=input, 0=output (init = 0xFFh)
Port 3 Input/Output set. 1=input, 0=output (init = 0xFFh)
Port 4 Input/Output set. 1=input, 0=output (init = 0xFFh)
Notes:
EM61001 not support IOCF
EM61002 not support IOCE & IOCF .
Notes:
Red Name = initial is HIGH after RESET
Blue name = initial is LOW after RESET
Black name = initial is Un-Know after RESET.
b1
b0
WDT rate 1:1-1:8
WSR1
WSR0
EM61000 Melody Register List :
R9
Mapped
Type
0
read
ROM
data
RA
b7
-
M ch1 MSB
M ch2
M ch3
M ch4
M ch5
M ch6
M ch7
M ch8
9 DAC 1
1
2
3
4
5
6
7
8
A DAC 2
b6
-
-
b5
-
b4
-
MODE
b3
-
INLOOP WTADR PENV
IOC 6
b2
-
b1
-
LENA LOOPB
In Loop Write
Pass
Load Loop
Area Address Envelope Enable Disable
type
Volume
0-7 step
DA range
0=b7-b0
1=b8-b1
2=b9-b2
3=b7-b0
-
b0
-
ADD L
MENA
ADD L
Melody
Enable
Active
IOC 7
ADD M
IOC 8
IOC 9
IOC A
IOC B
IOC C
IOC F
ROM
Melody
Port4 I/O
DATA
Precaler
(IOR only) 1/2- 1/256
(b2-b0)
ADD M ADD H
LBIT
LBIT
ENV
F1
F2
(4bit 1M) Start Loop Envelop
Frequency Frequency Start Loop
Addr -Mid (b6-b0)
Fractional Integer
Addr -Hi
(b7-b2)
(b7-b0)
DAC_ON DA mixer
Ch En
b0=Mch1
b1=Mch2
…
b7=Mch8
Notes:
EM61001 & EM61002 not support Mch5 ~ Mch8 & DAC2
EM61001 ~ EM61100 not support IOC8 ( Voice Rom size below 64Kbyte)
Notes:
Red Name = initial is HIGH after RESET,
ADD H
(4bit 1M)
-
Blue name = initial is LOW after RESET,
-
-
-
-
Black name = initial is Un-Know after RESET.
Port 4 I/O