beautypg.com

Ds4830a user’s guide, One or more dacs should be enabled – Maxim Integrated DS4830A Optical Microcontroller User Manual

Page 139

background image

DS4830A User’s Guide

139

Table 15-1: GPIO Pins and Multiplexed Functions

Port

Index

Pin Name Pin No.

Default

Function

Special

Function-1

Special function-1

enable

Special

Function-2

Special function-2

enable

Special

Function-3

Special function-3

enable

Special

function-4

Special function-4

enable

P0.0

GP12

19

GPIO

ADC-S12

PINSEL.12 = 1 &

ADDATA.DIFF = 0

ADC-SHP1

SHCN.SMP_HLD1 = 1

ADC-D6P

PINSEL.12 = 1 &

ADDATA.DIFF =1

-

-

P0.1

GP13

20

GPIO

ADC-S13

PINSEL.13 = 1 &

ADDATA.DIFF = 0

ADC-SHN1

SHCN.SMP_HLD1 = 1

ADC-D6N

PINSEL.13 = 1 &

ADDATA.DIFF =1

-

-

P0.2

GP14

21

GPIO

ADC-S14

PINSEL.14 = 1 &

ADDATA.DIFF = 0

ADC-D7P

PINSEL.14 = 1 &

ADDATA.DIFF =1

SHEN1

SENR.INT_TRIG_EN1 =

0

-

-

P0.3

GP15

22

GPIO

ADC-S15

PINSEL.15 = 1 &

ADDATA.DIFF = 0

ADC-D7N

PINSEL.15 = 1 &

ADDATA.DIFF =1

-

-

-

-

P0.4

DACPW0

32

GPIO

DAC0

DACCFG.CFG0 = 01b or

10b

PW0

PWMCFG.PWMEN = 1

& PWMCN.M_EN = 1

-

-

-

-

P0.5

DACPW1

33

GPIO

DAC1

DACCFG.CFG1 = 01b or

10b

PW1

PWMCFG.PWMEN = 1

& PWMCN.M_EN = 1

-

-

-

-

P0.6

PW8

30

GPIO

PW8

PWMCFG.PWMEN = 1 &

PWMCN.M_EN = 1

-

-

-

-

-

-

P0.7

PW9

29

GPIO

PW9

PWMCFG.PWMEN = 1 &

PWMCN.M_EN = 1

-

-

-

-

-

-

P1.0

MSDIO

24

GPIO

3W Data

TWR.TWEN = 1

I2CM-SDA

I2CCN_M.I2CEN=1

SPIM-DO

SPICN_M.SPIEN=1

PW4

PWMCFG.PWMEN = 1

& PWMCN.M_EN = 1

& PWMCFG.ALT_LOC = 1

P1.1

MSCL

26

GPIO

3W Clock

TWR.TWEN = 1

I2CM-CLK

I2CCN_M.I2CEN=1

SPIM-CL

SPICN_M.SPIEN=1

PW6

PWMCFG.PWMEN = 1

& PWMCN.M_EN = 1

& PWMCFG.ALT_LOC = 1

P1.2

MCS

27

GPIO

3W CS

TWR.TWEN = 1

-

-

SPIM-CS

SPICN_M.SPIEN=1

PW7

PWMCFG.PWMEN = 1

& PWMCN.M_EN = 1

& PWMCFG.ALT_LOC = 1

P1.3

MSDI

25

GPIO

-

-

-

-

SPIM-DI

SPICN_M.SPIEN=1

PW5

PWMCFG.PWMEN = 1

& PWMCN.M_EN = 1

& PWMCFG.ALT_LOC = 1

P1.4

REFINB

39

GPIO

ADC-REFB DACCFG.CFG4-7

*

= 01b

(any one or more DACs)

-

-

-

-

-

-

P1.5

DACPW3

35

GPIO

DAC3

DACCFG.CFG3 = 01b or

10b

PW3

PWMCFG.PWMEN = 1

& PWMCN.M_EN = 1

-

-

-

-

P1.6

DACPW4

36

GPIO

DAC4

DACCFG.CFG4 = 01b or

10b

PW4

PWMCFG.PWMEN = 1

& PWMCN.M_EN = 1

I2CM-SDA-

ALT

i2CCN_M.I2CM_ALT = 1

-

-

P1.7

DACPW5

37

GPIO

DAC5

DACCFG.CFG5 = 01b or

10b

PW5

PWMCFG.PWMEN = 1

& PWMCN.M_EN = 1

I2CM-SCL-

ALT

i2CCN_M.I2CM_ALT = 1

-

-

P2.0

GP0

4

GPIO

ADC-S0

PINSEL.0 = 1 &

ADDATA.DIFF = 0

ADC-D0P

PINSEL.0 = 1 &

ADDATA.DIFF =1

PW0

PWMCFG.PWMEN = 1

& PWMCN.M_EN = 1

& PWMCFG.ALT_LOC =

1

-

-

P2.1

GP1

6

GPIO

ADC-S1

PINSEL.1 = 1 &

ADDATA.DIFF = 0

ADC-D0N

PINSEL.1 = 1 &

ADDATA.DIFF =1

PW1

PWMCFG.PWMEN = 1

& PWMCN.M_EN = 1

& PWMCFG.ALT_LOC =

1

REFOUT

-

P2.2

GP6

12

GPIO

ADC-S6

PINSEL.6 = 1 &

ADDATA.DIFF = 0

ADC-D3P

PINSEL.6 = 1 &

ADDATA.DIFF =1

PW2

PWMCFG.PWMEN = 1

& PWMCN.M_EN = 1

& PWMCFG.ALT_LOC =

1

SDO

SPICN_S.SPIEN=1

P2.3

GP7

13

GPIO

ADC-S7

PINSEL.7 = 1 &

ADDATA.DIFF = 0

ADC-D3N

PINSEL.7= 1 &

ADDATA.DIFF =1

PW3

PWMCFG.PWMEN = 1

& PWMCN.M_EN = 1

& PWMCFG.ALT_LOC =

1

SCS

SPICN_S.SPIEN=1

P2.4

GP8

14

GPIO

ADC-S8

PINSEL.8 = 1 &

ADDATA.DIFF = 0

ADC-D4P

PINSEL.8 = 1 &

ADDATA.DIFF =1

-

-

-

-

P2.5

GP9

15

GPIO

ADC-S9

PINSEL.9 = 1 &

ADDATA.DIFF = 0

ADC-D4N

PINSEL.9 = 1 &

ADDATA.DIFF =1

-

-

-

-

P2.6

REFINA

31

GPIO

ADC-REFA DACCFG.CFG0-3

*

= 01b

(any one or more DACs)

-

-

-

-

-

-

P2.7

DACPW7

40

GPIO

DAC7

DACCFG.CFG7 = 01b or

10b

PW7

PWMCFG.PWMEN = 1

& PWMCN.M_EN = 1

-

-

P6.0

GP4

10

TCK

ADC-S4

PINSEL.4 = 1 &

ADDATA.DIFF = 0

ADC-D2P

PINSEL.4 = 1 &

ADDATA.DIFF =1

-

-

-

-

P6.1

GP5

11

TDI

ADC-S5

PINSEL.5 = 1 &

ADDATA.DIFF = 0

ADC-D2N

PINSEL.5 = 1 &

ADDATA.DIFF =1

-

-

-

-

P6.2

GP10

17

TMS

ADC-S10

PINSEL.10 = 1 &

ADDATA.DIFF = 0

ADC-D5P

PINSEL.10 = 1 &

ADDATA.DIFF =1

-

-

-

-

P6.3

GP11

18

TDO

ADC-S11

PINSEL.11 = 1 &

ADDATA.DIFF = 0

ADC-D5N

PINSEL.11 = 1 &

ADDATA.DIFF =1

-

-

-

-

P6.4

SHEN0

23

GPIO

SHEN0

SENR.INT_TRIG_EN0 =

1

-

-

-

-

-

-

P6.5

DACPW2

34

GPIO

DAC2

DACCFG.CFG2 = 01b or

10b

PW2

PWMCFG.PWMEN = 1

& PWMCN.M_EN = 1

CLKIN

+

-

-

P6.6

DACPW6

38

GPIO

DAC6

DACCFG.CFG6 = 01b or

10b

PW6

PWMCFG.PWMEN = 1

& PWMCN.M_EN = 1

-

-

-

-

Notes:

• TCK: Test Access Port (TAP) Clock

• TDI: Test Access Port (TAP) Data Input

• TMS: Test Access Port (TAP) Mode Select

• TDO: Test Access Port (TAP) Data Output

*

One or more DACs should be enabled.

+

External Clock is enabled when the external clock source is selected by one or more peripherals among

timers, PWM and Sample and Hold.


From a software perspective, each of the GPIO ports (Port0, Port1, Port2, and Port6) has six Special Function
Registers (POp, PIp, PDp, EIFp, EIEp and EIESp where p=0, 1, 2, or 6). Each GPIO port is designed to provide