Download KS32C6400

Transcript
KS32C6400 RISC MICROCONTROLLER
SHIFT CONTROL
SHIFT WORD DATA REGISTER
The shift control block in KS32C6400 has seven serially connected Shift Word Data Registers (SFTDATA0-6).
These serially connected registers form 208-bit bidirectional shift register block. The shift operation mode can be
manipulated by the SFTCON register. The SFTCON[0] bit controls the shift mode such as fill-with-0 mode or
rotate (wrap) mode and the SFTCON[1] bit controls shift direction, left or right.
Registers
Offset Address
R/W
Description
Reset Value
SFTDATA0
0x700C
R/W
Shift word data 0 register, 32bits
Undef.
SFTDATA1
0x7010
R/W
Shift word data 1 register, 32bits
Undef.
....
....
....
SFTDATA5
0x7020
R/W
Shift word data 5 register, 32bits
Undef.
SFTDATA6
0x7024
R/W
Shift word data 6 register, 16bits
Undef.
....
....
Example 1: Shift Right Mode (when SFTCON[1]=’0’)
1
31
0
31
SFTDATA0
0
0
0
15
0
SFTDATA6
SFTDATA1
208-bit bidirectional shifter
SFTCON[0]
Example 2: Shift Left Mode (when SFTCON[1]=’1’)
31
0
SFTDATA0
31
0
SFTDATA1
15
0
1
SFTDATA6
0
208-bit bidirectional shifter
0
SFTCON[0]
When programming:
1. Load values into SFTDATA0-SFDATA6 (Shift Word Data Registers)
2. Set the value of SFTCON (Shift Control Register)
3. Set the value of SFTCNT (Shift Counter Register)
PRILIMINARY SPECIFICATION (REV 0.2)
7-3