I/O

 

Totem-Pole Output Port G

 

 

Data register address

0x2Ch

 

 

Possible input data values

N/A

 

 

Possible output data values

0 = Low 1 = High

 

 

Value after RESET low

0 = Low

 

 

The following table shows the bit locations of the port G address mapping:

G port Data

 

 

 

address 0x2C

(16-bit wide location)

 

 

read and write

15 14 13 12

11 10 09 08 07 06 05

04 03 02 01 00

 

G15 G14 G13 G12

G11 G10 G9 G8 G7 G6 G5

G4 G3 G2 G1 G0

 

0x0000 : default state of data register after RESET low

 

 

 

 

3.1.4Branch on D Port

Instructions exist to branch conditionally depending upon the state of ports D0 and D1. These conditionals are COND1 and COND2, respectively. The condi- tionals are supported whether the D0 and D1 ports are configured as inputs or as outputs. The following table lists the four possible logical states for D0 and D1, along with the software instructions affected by them.

 

D0 = 1

COND1 = TRUE. . .

CIN1

has its conditional call taken.

 

 

 

CNIN1

has its conditional call ignored.

 

 

 

JIN1

has its conditional jump taken.

 

 

 

JNIN1

has its conditional jump ignored.

 

 

 

 

 

 

D0 = 0

COND1 = FALSE. . .

CIN1

has its conditional call ignored.

 

 

 

CNIN1

has its conditional call taken.

 

 

 

JIN1

has its conditional jump ignored.

 

 

 

JNIN1

has its conditional jump taken.

 

 

 

 

 

D1 = 1

COND2 = TRUE. . .

CIN2

has its conditional call taken.

 

 

 

CNIN2

has its conditional call ignored.

 

 

 

JIN2

has its conditional jump taken.

 

 

 

JNIN2

has its conditional jump ignored.

 

 

 

 

 

D1 = 0

COND2 = FALSE. . .

CIN2

has its conditional call ignored.

 

 

 

CNIN2

has its conditional call taken.

 

 

 

JIN2

has its conditional jump ignored.

 

 

 

JNIN2

has its conditional jump taken.

COND2 may be associated instead with the comparator function, if the comparator Enable bit is set. Please refer to Section 3.3, Comparator, for details.

3-6

Page 70
Image 70
Texas Instruments MSP50C6xx manual Branch on D Port, Totem-Pole Output Port G