LS-221-BL Technical Reference
Doc. #710220125
8
4.1. Memory Map
L S -2 2 1 -B L is d e s ig n e d a s a s ta n d a rd IS A b u s p e rip h e ra l d e v ic e . T o s a v e I/O s p a c e , L S -2 2 1 -
B L u s e s o n ly 1 6 b yte s fro m th e lo w e s t 1 0 2 4 I/O a d d re s s e s ra n g e . T h e re s t o f L S -2 2 1 -B L
re g is te rs o c c u p y th e s p a c e lo c a te d a t o ffs e t 0 x 4 0 0 , 0 x 8 0 0 a n d 0 x C 0 0 . F o r in s ta n c e , if L S -2 2 1 -
B L b a s e a d d re s s is s e t to 0 x 2 8 0 , th e fo llo w in g I/O a d d re s s a re in u s e – 0 x 2 8 0
÷
0 x 2 8 F ,
0 x 6 8 0
÷
0 x 6 8 F , 0 x A 8 0
÷
0 x A 8 F , 0 x E 8 0
÷
0 x E 8 F . E ig h t b a s e a d d re s s e s a re a v a ila b le , d e p e n d in g o n
J 1 s e ttin g – 0 x 2 8 0 , 0 x 1 2 8 0 , 0 x 2 2 8 0 , 0 x 3 2 8 0 , 0 x 2 A 0 , 0 x 1 2 A 0 , 0 x 2 2 A 0 , 0 x 3 2 A 0 . T h e ta b le b e lo w
s h o w s L S -2 2 1 -B L re g is te r lo c a tio n re la tiv e ly to c o n tro lle r b a s e a d d re s s . T h e o ffs e ts a re in
h e x a d e c im a l.
READ
WRITE
D7
D6
D5
D4
D3
D2
D1
D0
D7
D6
D5
D4
D3
D2
D1
D0
0
MC1231A DATA REGISTER
0
MC1231A DATA REGISTER
0
1
READY
1
MC1231A COMMAND REGISTER
1
2
2
2
3
3
3
4
4
4
5
5
5
6
6
6
7
7
7
8
IN7
IN6
IN5
IN4
IN3
IN2
IN1
IN0
8
8
9
IN15
IN14
IN13
IN12
IN11
IN10
IN9
IN8
9
9
A
AE
RST
OPT
SPS
CL1
CL0
A
AE
RST
OPT
SPS
A
B
EMG
STP
MPF
OPF
EMGL
STPL
MPFL
OPFL
B
B
C
ADI
MPI
C
ENADI
C
D
OUT7
OUT6
OUT5
OUT4
OUT3
OUT2
OUT1
OUT0
D
OUT7
OUT6
OUT5
OUT4
OUT3
OUT2
OUT1
OUT0
D
E
E
PCS3
PCS2
PCS1
PCS0
APERES
E
F
F
F
400
400
400
401
401
401
402
402
402
403
403
403
404
APE D7
APE D6
APE D5
APE D4
APE D3
APE D2
APE D1
APE D0
404
REQ APE#0
404
405 APE D15 APE D14 APE D13 APE D12 APE D11 APE D10
APE D9
APE D8
405
REQ APE#1
405
406 APE D23 APE D22 APE D21 APE D20 APE D19 APE D18 APE D17 APE D16 406
406
407 APE RDY
BE
OF
OS
BA
PS
CE
407
407
408
408 CURRENT LIMIT #0 (0x0 - 0xF)
408
409
409 CURRENT LIMIT #1 (0x0 - 0xF)
409
40A
40A
40A
40B
40B
40B
40C
40C
40C
40D
40D
40D
40E
40E
40E
40F
40F
40F
807
ID3 = 0
ID2 = 0
ID1 = 0
ID0 = 1
807
807
C07
ID7 = 1
ID6 = 0
ID5 = 1
ID4 = 1
C07
C07
Table 1: LS-221-BL Memory Map
4.2. Base Module
T h e m a in p a rt o f L S -2 2 1 -B L s e rv o c o n tro lle r is th e B a s e M o d u le (B M ). It c a rrie s th e m o tio n
c o n tro l p ro c e s s o r, P W M p o w e r a m p lifie rs , o p to is o la te d d ig ita l o u tp u ts , a n d s e rv o c o n tro l a n d
d ia g n o s tic lo g ic . It c a n b e c o m b in e d w ith v a rio u s in p u t b o a rd s to c re a te th e o p tim a l s o lu tio n fo r
w id e ra n g e o f m o tio n c o n tro l ta s k s . T h e fo llo w in g d ia g ra m s h o w s th e la yo u t o f th e B a s e M o d u le .