
VMX51C1020
The P1PINCFG register controls the access
from the PWM to the I/O pins as well as defines
the direction of the P1 when the PWM’s are not
used.
T
ABLE
16:
(P1PINCFG)
P
ORT
1
P
ORT
C
ONFIGURATION
R
EGISTER
-
SFR
9C
H
7
6
P1.7
P1.6
3
2
P1.3/PWM3OE
P1.2/PWM2OE
Bit
Mnemonic
7
P1.7
_________________________________________________________________________________________________
www.ramtron.com
page 15 of 80
5
4
P1.5
1
P1.4
0
P1.1/PWM1OE
Function
0: General purpose input
1: General purpose output
0: General purpose input
1: General purpose output
0: General purpose input
1: General purpose output
0: General purpose input
1: General purpose output
0: General purpose input
1: General purpose output
or PWM bit 3 output
When using PWM you
must set this bit to 1.
0: General purpose input
1: General purpose output
or PWM bit 2 output
When using PWM you
must set this bit to 1
0: General purpose input
1: General purpose output
or PWM bit 1 output
When using PWM you
must set this bit to 1
0: General purpose input
1: General purpose output
or PWM bit 0 output
When using PWM you
must set this bit to 1
P1.0/PWM0OE
6
P1.6
5
P1.5
4
P1.4
3
P1.3/PWM3OE
2
P1.2/PWM2OE
1
P1.1/PWM1OE
0
P1.0/PWM0OE
The P2PINCFG register controls the I/O access
to SPI interface and defines the direction of the
P2 when used as general purpose I/O
T
ABLE
17:
(P2PINCFG)
P
ORT
2
P
ORT
C
ONFIGURATION
R
EGISTER
-
SFR
9D
H
7
6
P2.7/SDIEN
P2.6/SDOEN
3
2
P2.3/CS0EN
P2.2/CS1EN
Bit
Mnemonic
Function
7
P2.7/SDIEN
0: General purpose input or
SDI
1: General purpose output
When using SPI you must set
this bit to 0.
6
P2.6/SDOEN
0: General purpose input
1: General purpose output or
SDO
When using SPI you must set
this bit to 1.
5
P2.5/SCKEN
0: General purpose input or
SCK
1: General purpose output
When using SPI you must set
this bit to 0.
4
P2.4/SSEN
0: General purpose input or
Slave Select
1: General purpose output
When using SPI SS you must
set this bit to 0.
3
P2.3/CS0EN
0: General purpose input
1: General purpose output or
Chip Select bit 0 output
When using SPI CS0 you
must set this bit to 1.
2
P2.2/CS1EN
0: General purpose input
1: General purpose output or
Chip Select bit 1 output
When using SPI CS1 you
must set this bit to 1.
1
P2.1/CS2EN
0: General purpose input
1: General purpose output or
Chip Select bit 2 output
When using SPI CS2 you
must set this bit to 1.
0
P2.0/CS3EN
0: General purpose input
1: General purpose output or
Chip Select bit 3 output
When using SPI CS3 you
must set this bit to 1.
5
4
P2.5/SCKEN
P2.4/SSEN
1
0
P2.1/CS2EN
P2.0CS3EN