beautypg.com

Texas Instruments MSP50C6xx User Manual

Page 292

background image

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 Ax = 0

PAx low

bit Ax = 1

PAx high

input states

0x04

8

Port A Control

R/W

C

C

C

C

C

C

C

C

0x00

bit C = 0

PAx 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 Bx = 0

PBx low

bit Bx = 1

PBx high

input states

0x0C

8

Port B Control

R/W

C

C

C

C

C

C

C

C

0x00

bit C = 0

PBx as input

bit C = 1

PBx as output

0x10

8

Port C Data

(

)

R/W

C7

C6

C5

C4

C3

C2

C1

C0

external

(bidirectional)

bit Cx = 0

PCx low

bit Cx = 1

PCx high

input states

0x14

8

Port C Control

R/W

C

C

C

C

C

C

C

C

0x00

bit C = 0

PCx as input

bit C = 1

PCx 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 Dx = 0

PDx low

bit Dx = 1

PDx high

input states

(bidirectional)

†PD4 = inverting and PD5 = positive comparator inputs if CE=1 in IO 0x38

PD4

triggers INT6

PD5

triggers INT7

PD2

triggers INT3

PD3

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

PDx as input

bit C = 1

PDx as output

0x20

8

Port E Data

(

)

R/W

E7

E6

E5

E4

E3

E2

E1

E0

external

(bidirectional)

bit Ex = 0

PEx low

bit Ex = 1

PEx high

input states

0x24

8

Port E Control

R/W

C

C

C

C

C

C

C

C

0x00

bit C = 0

PDx as input

bit C = 1

PDx as output

0x28

8

Port F Data

(

)

R

F7

F6

F5

F4

F3

F2

F1

F0

external

(input only)

Fx

triggers INT5

bit Fx = 0

input PFx low

bit Fx = 1

input PFx 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

T4

T3

T2

T1

T0

unaffected

‡MSP50C614 only

T4–T0 = Resistor trim bits

V = 1

T4–T0 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