Instruction Set Summay
4-206
Assembly Language Instructions
MSP50C614 (MSP50P614) IO Port Description
Address Bits Name R/W 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 After RESET
0x00 8 Port A Data
()
R/W A7 A6 A5 A4 A3 A2 A1 A0 external
(bidirectional)
bit A
x
= 0 ⇒ PA
x
low bit A
x
= 1 ⇒ PA
x
high
input states
0x04 8 Port A Control R/W C C C C C C C C 0x00
bit C = 0 ⇒ PA
x
as input bit C = 1 ⇒ PAx as output
0x08 8 Port B Data
(bidi i l)
R/W B7 B6 B5 B4 B3 B2 B1 B0 external
i
(bidirectional)
bit B
x
= 0 ⇒ PB
x
low bit B
x
= 1 ⇒ PB
x
high
input states
0x0C 8 Port B Control R/W C C C C C C C C 0x00
bit C = 0 ⇒ PB
x
as input bit C = 1 ⇒ PB
x
as output
0x10 8 Port C Data
()
R/W C7 C6 C5 C4 C3 C2 C1 C0 external
(bidirectional)
bit C
x
= 0 ⇒ PC
x
low bit C
x
= 1 ⇒ PC
x
high
input states
0x14 8 Port C Control R/W C C C C C C C C 0x00
bit C = 0 ⇒ PC
x
as input bit C = 1 ⇒ PC
x
as output
0x18 8 Port D Data
f
R/W D7 D6 D5
†
D4
†
D3 D2 D1 D0 external
multifunction port
(bidirectional)
↓ falling edge ↑ rising edge bit D
x
= 0 ⇒ PD
x
low bit D
x
= 1 ⇒ PD
x
high
input states
(bidirectional)
†
PD
4
= inverting and PD
5
= positive comparator inputs if CE=1 in IO 0x38
PD
4
↑ triggers INT6 PD
5
↓ triggers INT7 PD
2
↑ triggers INT3 PD
3
↓ triggers INT4
0x1C 8 Port D Control
f
R/W C C C
‡
C
‡
C
‡
C
‡
C C 0x00
multifunction control
‡
C=0 for interrupts (IO 0x18)
bit C = 0 ⇒ PD
x
as input bit C = 1 ⇒ PD
x
as output
0x20 8 Port E Data
()
R/W E7 E6 E5 E4 E3 E2 E1 E0 external
(bidirectional)
bit E
x
= 0 ⇒ PE
x
low bit E
x
= 1 ⇒ PE
x
high
input states
0x24 8 Port E Control R/W C C C C C C C C 0x00
bit C = 0 ⇒ PD
x
as input bit C = 1 ⇒ PD
x
as output
0x28 8 Port F Data
()
R F7 F6 F5 F4 F3 F2 F1 F0 external
(input only)
Fx ↓ triggers INT5 bit F
x
= 0 ⇒ input PF
x
low bit F
x
= 1 ⇒ input PF
x
high
input states
0x2C 16 Port G Data
()
R/W G15 G14 G13 G12 G11 G10 G9 G8 G7 G6 G5 G4 G3 G2 G1 G0 0x00
(output only)
bit Gx = 0 ⇒ PGx low (output only) bit Gx = 1 ⇒ PGx high (output only)
all 0 outputs
0x2F 8 RTOTRIM
‡
MSP C l
R T
4
T
3
T
2
T
1
T
0
unaffected
‡
MSP50C614 only
T
4
–T
0
= Resistor trim bits V = 1 ⇒ T
4
–T
0
are valid
0x30 16 DAC Data R/W S O O D D D D D D D D D D – – –
§
0x0000
S O O D D D D D D D D D – – – –
¶
S O O D D D D D D D D – – – – –
#
S = sign bit O = overflow bit D = data bit – = dont care
§
10 bit DAC
¶
9 bit DAC
#
8 bit DAC
see P1,P0 in IO 0x34