Вы находитесь на странице: 1из 18

. x51- Silicon Laboratories (Cygnal),M., ,2004,-628.,.

12. C8051F 32x


12.1. C8051F32x
C8051F32x 2 320 321[18]. 12.1.
12.1.
C8051F32

MIPS ()

Flash ,

RAM,

USB

SMBus (I2C)

SPI

UART

(16 )

PCA

10 - ADC (200 ksps)

C8051F320 25
C8051F321 25

16
16

2304
2304

4
4

25
21

17
13

2
2

LQFP32
MLP28

C8051F32x, .12.1,
: (Analog Peripherals), (Digital Peripherals or Digital I/O) (High-Speed
Controller Core). :
CIP-51;
USB ( 2);
4.0 5.25 ;
17(13)- - ADC0;
Cygnal. Flash ;
25 MHz..

/.
2 , / .
: - ADC0 10 ; AMUX 17(13) ;
; , ; 3; .
:
: ,
25, 25MIPS; ( 2 25 ); (RC - , ); - 2; 256 + 2048 ; 16 Flash
/; WDT (Watchdog Timer); 16 .

. x51- Silicon Laboratories (Cygnal),M., ,2004,-628.,.

.12.1. C8051F32
2,7 3,6 -45 +85. /, 2 5.
12.2. ,
C8051F32x (
). C8051F320 32 - LQFP-32 (.
.12.2). C8051F321 28 - MLP-28 (. .12.3).
.12.4 - 12.5. C8051F32x 12.2.

. x51- Silicon Laboratories (Cygnal),M., ,2004,-628.,.

3
.12.2. C8051F320 LQFP-32

.12.3. C8051F321 MLP-28

. x51- Silicon Laboratories (Cygnal),M., ,2004,-628.,.

.12.4. C8051F320 LQFP-32

.12.5. C8051F321 MLP-28

. x51- Silicon Laboratories (Cygnal),M., ,2004,-628.,.

12.2.
, C8051F32

A I/O

( +2.7 +3.6 V) 3.3 V

F320

F321

VDD

GND
RST/

3
9

3
9

D I/O

2
P3.0/

10

10

D I/O
D I/O

. 15
2
/ Port 3.0/ ()

D I/O

2
(5 V)

C2D

REGIN

VBUS

Power
In
D In

D+

D I/O

USB D+

D-

D I/O

USB D-

P0.0

D I/O

/ Port 0.0/ ()

P0.1

D I/O

/ Port 0.1

P0.2/

32

28

D I/O

/ Port 0.2/ ()

A In

XLAT1

. USB. +5 V , .

31

27

D I/O
A Out
D In

/ Port 0.3/ ()

P0.4

30

26

D I/O

/ Port 0.4

P0.5

29

25

D I/O

/ Port 0.5

P0.6/

28

24

D I/O

/ Port 0.6/ ()

P0.3/
XLAT2

ADC0

CNVSTR
P0.7/

27

23

VREF
P1.0

26

22

P1.1

25

21

P1.2

24

20

P1.3

23

19

P1.4

22

18

P1.5

21

17

P1.6

20

16

P1.7

19

15

P2.0

18

14

P2.1

17

13

D I/O

/ Port 0.7/

A I/O

D
A
D
A
D
A
D
A

I/O
In
I/O
In
I/O
In
I/O
In

/ Port 1.0

D
A
D
A
D
A
D
A
D
A
D
A

I/O
In
I/O
In
I/O
In
I/O
In
I/O
In
I/O
In

/ Port 1.4

/ Port 1.1
/ Port 1.2
/ Port 1.3

/ Port 1.5
/ Port 1.6
/ Port 1.7
/ Port 2.0
/ Port 2.1

. x51- Silicon Laboratories (Cygnal),M., ,2004,-628.,.

P2.2

16

12

P2.3

15

11

P2.4

14

P2.5

13

P2.6

12

P2.7

11

D
A
D
A
D
A
D
A
D
A
D
A

I/O
In
I/O
In
I/O
In
I/O
In
I/O
In
I/O
In

/ Port 2.2
/ Port 2.3
/ Port 2.4
/ Port 2.5
/ Port 2.6
/ Port 2.7

12.3.
12.3.
12.3.
C8051F32

, V

, mA

, A
,
V
,
V

, mA

, A

RAM, V
, C


1V

VREF, ADC, DACs

VREF, ADC, DACs,



| VDD - VA+ |

MIN
2.7

3.0

MAX
3.6

1,7

20
0.5

2.7
VDD = 2.7V, Clock=25MHz
VDD = 2.7V, Clock=lMHz
VDD = 2.7V, Clock=32kHz

3.0

3.6

5
0.3
14 A
3.2
1.5
-40

+85

12.4.
12.4.
C8051F32x


VDD Port I/O
DGND
Port I/O RST/
DGND
VDD DGND
VDD, GND
Port I/O

-55 - 125C
-65 - 150C
-0.3V - (VDD + 0.3V)
-0.3V - 5.8V
-0.3V - 4.2V
500mA
100mA

, , . , ..
.

. x51- Silicon Laboratories (Cygnal),M., ,2004,-628.,.

12.4. C8051F32x
8051F32 CIP-51 Cygnal 2 , 2.1-2.3. / / 29(25). CIP51 Flash - 16 .
(RAM) 256
(0x00-0xFF).
128 (0x00-0x7F) , SFR , 128
(0x80-0xFF) - . 32 (0x00-0x1F)
, 16 (0x20-0x2F) - .
, 1024
. 1 MOVX.
12.5. SFR
0x80-0xFF 8051 (SFRs).
CIP-51 .
CIP-51 8051, - Cygnal.
SFR 12.5.
12.5.
SFR C8051F32x
F8

SPI0CN

PCA0L

PCA0H

PCA0CPL0

PCA0CPH0

F0

P0MDIN

P1MDIN

P2MDIN

P3MDIN

E8

ADC0CN

PCA0CPL1

PCA0CPH1

PCA0CPL2

PCA0CPH2

E0

ACC

XBR0

XBR1

D8

PCA0CN

PCA0MD

PCA0CPM0

PCA0CPM1

D0

PSW

REF0CN

C8

TMR2CN

REG0CN

TMR2RLL

TMR2RLH

C0

SMB0CN

SMB0CF

SMB0DAT

B8

IP

CLKMUL

AMX0N

B0

P3

OSCXCN

OSCICN

OSCICL

A8

IE

CLKSEL

EMI0CN

A0

P2

SPI0CFG

SPI0CKR

SPI0DAT

P0MD0UT

98

SCON0

SBUF0

CPT1CN

CPT0CN

CPT1MD

90

PI

TMR3CN

TMR3RLL

TMR3RLH

88

TCON

TMOD

TL0

TL1

80

P0

SP

DPL

DPH

0(8)

1(9)

2(A)

3(B)

PCA0CPL4
PCA0CPL3

IT01CF

PCA0CPH4

VDM0CN

EIP1

EIP2

PCA0CPH3

RSTSRC

EIE1

EIE2

PCA0CPM2

PCA0CPM3

PCA0CPM4

P0SKIP

PISKIP

P2SKIP

TMR2L

TMR2H

ADC0GTL

ADC0GTH

ADC0LTL

ADC0LTH

AMX0P

ADC0CF

ADC0L

ADC0H

USB0XCN

FLSCL

FLKEY

P1MD0UT

P2MD0UT

P3MD0UT

CPT0MD

CPT1MX

CPT0MX

TMR3L

TMR3H

USB0ADR

USB0DAT

TH0

TH1

CKC0N

PSCTL

4(C)

5(D)

6(E)

PCON
7(F)

12.6. . .
12.6.

ACC

0xEO

3.6.24

ADC0CF

0xBC

ADC0

11.7.3

ADC0CN

0xE8

ADC 0

11.7.6

ADC0GTH

0xC4

ADC0

11.7.7

ADC0GTL

0xC3

ADC0

11.7.8

. x51- Silicon Laboratories (Cygnal),M., ,2004,-628.,.

ADC0H

0xBE

ADC0

11.7.4

ADC0L

0xBD

ADC0

11.7.5

ADC0LTH

0xC6

ADC0

11.7.9

ADC0LTL

0xC5

ADC0

11.7.10

AMX0N

0xBA

MUX ADC0

11.7.2

AMX0P

0xBB

MUX ADC0

11.7.1

0xFO

3.6.25

CKCON

0x8E

11.7.34

CLKSEL

0xA9

12.7.13

CPT0CN

0x9B

11.7.13

CPT0MD

0x9D

11.7.15

CPT0MX

0x9F

11.7.14

CPT1CN

0x9A

11.7.13

CPT1MD

0x9C

11.7.15

CPT1MX

0x9E

11.7.14

CLKMUL

0xB9

12.7.12

DPH

0x83

3.6.22

DPL

0x82

3.6.21

EIE1

0xE6

12.7.6

EIE2

0xE7

12.7.8

EIP1

0xF6

12.7.7

EIP2

0xF7

12.7.9

EMI0CN

0xAA

11.7.26

FLKEY

0xB7

Flash

6.6.36

FLSCL

0xB6

Flash

11.7.25

IE

0xA8

12.7.4

IP

0xB8

12.7.5

IT01CF

0xE4

INT0/INT1

11.7.20

OSCICL

0xB3

6.6.32

OSCICN

0xB2

12.7.11

OSCXCN

0xB1

6.6.35

P0

0x80

Port 0

3.6.45

P0MDIN

0xF1

11.7.30

P0MDOUT

0xA4

11.7.31

P0SKIP

0xD4

11.7.32

P1

0x90

Port 1

3.6.47

P1MDIN

0xF2

11.7.30

P1MDOUT

0xA5

11.7.31

P1SKIP

0xD5

11.7.32

P2

0xA0

Port 2

3.6.50

P2MDIN

0xF3

11.7.30

P2MDOUT

0xA6

11.7.31

P2SKIP

0xD6

11.7.32

P3

0xB0

Port 3

3.6.52

P3MDIN

0xF4

11.7.30

P3MDOUT

0xA5

11.7.31

PCA0CN

0xD8

- 0 Control (PCA)

3.6.82

PCA0CPH0

0xFC

0 PCA

6.6.72

. x51- Silicon Laboratories (Cygnal),M., ,2004,-628.,.

PCA0CPH1

0xEA

1 PCA

6.6.72

PCA0CPH2

0xEC

2 PCA

6.6.72

PCA0CPH3

0xEE

3 PCA

6.6.72

PCA0CPH4

0xFE

4 PCA

6.6.72

PCA0CPL0

0xFB

0 PCA

6.6.71

PCA0CPL1

0xE9

1 PCA

6.6.71

PCA0CPL2

0xEB

2 PCA

6.6.71

PCA0CPL3

0xED

3 PCA

6.6.71

PCA0CPL4

0xFD

4 PCA

6.6.71

PCA0CPM0

0xDA

PCA / 0

6.6.68

PCA0CPM1

0xDB

PCA / 1

6.6.68

PCA0CPM2

0xDC

PCA / 2

6.6.68

PCA0CPM3

0xDD

PCA / 3

6.6.68

PCA0CPM4

0xDE

PCA / 4

6.6.68

PCA0H

0xFA

PCA

6.6.70

PCA0L

0xF9

PCA

6.6.69

PCA0MD

0xD9

PCA

6.6.67

PCON

0x87

11.7.21

PSCTL

0x8F

R/W

11.7.24

PSW

0xDO

3.6.23

REG0CN

0xC9

12.7.1

REF0CN

0xDl

11.7.11

RSTSRC

0xEF

12.7.10

SBUF0

0x99

0 (UART0)

3.6.63

SCON0

0x98

0 (UART0)

11.7.33

SMB0CF

0xCl

SMBus 0

8.6.25

SMB0CN

0xC0

SMBus 0

8.6.26

SMB0DAT

0xC2

SMBus 0

3.6.56

SP

0x81

3.6.20

SPI0CFG

0xA1

(SPI)

6.6.54

SPI0CKR

0xA2

SPI

3.6.61

SPI0CN

0xF8

SPI

6.6.55

SPI0DAT

0xA3

SPI

3.6.62

TCON

0x88

3.6.65

TH0

0x8C

/ 0

3.6.70

TH1

0x8D

/ 1

3.6.71

TL0

0x8A

/ 0

3.6.68

TL1

0x8B

/ 1

3.6.69

TMOD

0x89

3.6.66

TMR2CN

0xC8

8.6.29

TMR2H

0xCD

8.6.33

TMR2L

0xCC

8.6.32

TMR2RLH

0xCB

8.6.31

TMR2RLL

0xCA

8.6.30

TMR3CN

0x91

11.7.35

TMR3H

0x95

11.7.39

TMR3L

0x94

11.7.38

TMR3RLH

0x93

11.7.37

. x51- Silicon Laboratories (Cygnal),M., ,2004,-628.,.

TMR3RLL

0x92

11.7.36

USB0ADR

0x96

USB

12.7.17

USB0DAT

0x97

USB

12.7.18

USB0XCN

0xD7

USB

12.7.16

VDM0CN

0xFF

11.7.22

XBR0

0xEl

(Crossbar) 0

11.7.28

XBR1

0xE2

(Crossbar) 1

11.7.29

12.6. SFR
C8051F32 SFR.
C8051F320. , C8051F31x, , . , ,
12.6. ,
, 2
.
12.7.
12.7.1. REG0CN
C8051F32x ()
, ( 4.0 5.25 ) +3.3 .
:
REG0CN Voltage Regulator Control
SFR / :
0xC9
:
00000000b (0x00)

10

R/W

R/W

R/W

R/W

R/W

R/W

R/W

REGDIS

VBSTAT

VBPOL

REGMOD

Bit 7

Bit 6

Bit 5

Bit 4

Bit 3

Bit 2

Bit 1

R/W
Bit 0

7: REGDIS Voltage Regulator Disable (0) (1)


;
6: VBSTAT VBUS Signal Status VBUS USB. USB VBSTAT=0, 1;
5: VBPOL VBUS Interrupt Polarity Select VBUS, 0,
VBUS=0;
4: REGMOD Voltage Regulator Mode Select : 0 , 1
;
3-0 , 0000b, .

12.7.2. C8051F32x
C8051F32x
Cygnal. .12.6

. x51- Silicon Laboratories (Cygnal),M., ,2004,-628.,.

11

.12.6. C8051F32x
12.7.3. C8051F32x
C8051F32x 12.7.
[18].
12.7

C8051F32

0x0000

0 (INT0/)

0x0003

0
1 (INT1/)

EX0 (IE.0)

PX0 (IP.0)

0x000B
0x0013

1
2

ET0 (IE.1)
EX1 (IE.2)

PT0 (IP.1)
PX1 (IP.2)

0x001B

ET1 (IE.3)

PT1 (IP.3)

0 UARTO

0x0023

ES0 (IE.4)

PS0 (IP.4)

0x002B

ET2 (IE.5)

PT2 (IP.5)

SPI

0x0033

ESPI0 (IE.6)

PSPI0 (IP.6)

SMBus

0x003B

ESMB0 (EIE1.0)

PSMB0 (EIP1.0)

USB

0x0043

EUSB0
(EIE1.1)

PUSB0
(EIP1.1)

ADC0

0x004B

EWADC0 (EIE1.2)

PWADC0 (EIP1.2)

. x51- Silicon Laboratories (Cygnal),M., ,2004,-628.,.

ADC0

0x0053

10

EADC0
(EIE1.3)

PADC0
(EIP1.3)

/ PCA

0x005B

11

EPCA0 (EIE1.4)

PPCA0 (EIP1.4)

0x0063

12

ECP0
(EIE1.5)

PCP0 (EIP1.5)

0x006B

13

ECP1
(EIE1.6)

PCP1
(EIP1.6)

0x0073

14

ET3
(EIE1.7)

PT3
(EIP1.7)

VBUS

0x007B

15

EVBUS
(EIE2.0)

PVBUS
(EIP2.0)

12.7.4. IE -
:
IE - Interrupt Enable
SFR :
0xA8
:
R/W
EA
Bit 7

R/W
ESPI0
Bit 6

R/W
ET2
Bit 5

R/W
ES0
Bit 4

R/W
ET1
Bit 3

R/W
EX1
Bit 2

00000000b (0x00)
R/W
ET0
Bit 1

R/W
EX0
Bit 0

7:
6:
5:
4:
3:
2:

EA - Enable All Interrupts - (1) .


ESPI0 Enable SPI0 Interrupt - SPI0.
ET2 - Enable Timer 2 Interrupt - (1) 2.
ES0 - Enable UART0 Interrupt - (1) .
ET1 - Enable Timer 1 Interrupt - (1) 1.
EX1 - Enable External Interrupt 1 - (1) 1
INT1/.
1: ET0 - Enable Timer 0 Interrupt - (1) 0.
0: EX0 - Enable External Interrupt 0 - (1) 0
INT0/.

12

12.7.5. IP -
:
IP - Interrupt Priority
SFR :
0xB8
:
R/W
Bit 7

R/W
PSPI0
Bit 6

R/W
PT2
Bit 5

R/W
PS0
Bit 4

R/W
PT1
Bit 3

R/W
PX1
Bit 2

00000000b (0x00)
R/W
PT0
Bit 1

R/W
PX0
Bit 0

7 - .
6: PSPI0 SPI0 Interrupt Priority Control - SPI0. 1, - 0.
5: PT2 - Timer 2 Interrupt Priority Control - 2.
1, - 0.
4: PS - Serial Port (UART) Interrupt Priority Control -
. 1, - 0.
3: PT1 - Timer 1 Interrupt Priority Control - 1.
1, - 0.
2: PX1 - External Interrupt 1 Priority Control - 1. 1, - 0.
1: PT0 - Timer 0 Interrupt Priority Control - 0.
1, - 0.

. x51- Silicon Laboratories (Cygnal),M., ,2004,-628.,.

0: PX0 - External Interrupt 0 Priority Control - 0. 1, - 0.


12.7.6. EIE1 - 1
:
EIE1 - Extended Interrupt Enable 1
SFR / :
0xE6
:
00000000b (0x00)
R/W
ET3
Bit 7

R/W
ECPI
Bit 6

R/W
ECP0
Bit 5

R/W
EPCA0
Bit 4

R/W
EADC0
Bit 3

R/W
EWADC0
Bit 2

R/W
EUSB0
Bit 1

R/W
ESMB0
Bit 0

: , - .
7: ET3 - Enable Timer 3 Interrupt - (1) 3;
6-5: ECP1(0) - Enable Interrupt of Comparator1(0) - (1) 1(0);
4: EPCA0 - Enable Programmable Counter Array (PCA0) Interrupt - - 0.
3: EADC0 - Enable ADC0 End of Conversion Interrupt - ADC0;
2: EWADC0 - Enable Window Comparison ADC0 Interrupt - "" - 0.
1:. EUSB0 - Enable USB 0 Interrupt - USB.
0: ESMB0 - Enable SMBus 0 Interrupt - SMBus.

12.7.7. EIP1 - 1
:
SFR / :
R/W
PT3
Bit 7

R/W
PCP1
Bit 6

EIP1 - Extended Interrupt Priority 1


0xF6
:
R/W
PCP0
Bit 5

R/W
PPCA0
Bit 4

R/W
PADC0
Bit 3

R/W
PWADC0
Bit 2

00000000b (0x00)
R/W
PUSB0
Bit 1

13

R/W
PSMB0
Bit 0

: , .
7: PT3 - Timer 3 Interrupt Priority Control - 3.
6: PCP1 - Comparator 1 (CP1) Interrupt Priority Control - 1.
5: PCP0 - Comparator 0 (CP0) Interrupt Priority Control - 0.
4: PPCA0 - Programmable Counter Array (PCA0) Interrupt Priority Control - - 0.
3: PADC0 - ADC End of Conversion Interrupt Priority Control -
ADC0.
2: PWADC0 - ADC0 Window Comparator Interrupt Priority Control -
"" - ADC0.
1: PUSB0 - USB 0 Interrupt Priority Control - USB.
0: PSMB0 - SMBus 0 Interrupt Priority Control - SMBus.

. x51- Silicon Laboratories (Cygnal),M., ,2004,-628.,.

12.7.8. EIE2 - 2
:
EIE2 - Extended Interrupt Enable 2
SFR :
0xE7
:
00000000b (0x00)
R/W
-

R/W
-

R/W
-

Bit 7

Bit 6

R/W
-

Bit 5

R/W
-

Bit 4

R/W
-

Bit 3

R/W
-

Bit 2

Bit 1

R/W
EVBUS
Bit 0

: , - .
7-1 ;
0: EVBUS - Enable VBAU Level Interrupt - VBUS USB.

12.7.9. EIP2 - 2
:
EIP2 - Extended Interrupt Priority 2
SFR :
0xF7
:
R/W
-

R/W
-

R/W
-

Bit 7

Bit 6

R/W
-

Bit 5

R/W
-

Bit 4

R/W
-

Bit 3

00000000b (0x00)
R/W
-

Bit 2

Bit 1

R/W
PVBUS
Bit 0

: , .

14

7-1 ;
0: PVBUS - VBUS Interrupt Priority Control -
VBUS USB.

12.7.10. RSTSRC -
:
SFR :

RSTSRC - Reset Source Register


0xEF
:

xxxxxxxx

R/W

R/W

R/W

R/W

R/W

R/W

R/W

R/W

USBRSF

FERROR

C0RSEF

SWRSEF

WDTRST

MCDREF

PORSF

PINRSF

Bit 7

Bit 6

Bit 5

Bit 4

Bit 3

Bit 2

Bit 1

Bit 0

7: USB Reset Flag USB. : 0 USB / 1 USB. : 0 USB / 1 USB ;


6: FERROR - Flash Error Indicator - 1 ,
// Flash .
5: C0RSEF - Comparator 0 Reset Enable and Flag - 0.
: 1 (0 - ) 0 . : 1 ,
0, , 0 ,
.
4: SWRSF - Software Reset Force and Flag - / . 1 RST/. : 1 , SWRSF
.
3: WDTRSF - Watchdog Timer Reset Flag - . 1 ,
WDT.
2: MCDRST - Missing Clock Detector Flag - . 1
, .

. x51- Silicon Laboratories (Cygnal),M., ,2004,-628.,.

1: PORSF - Power-On Reset Force and Flag - . 1


, . 1
RST/ , 1
.
0: PINRSF - HW Pin Reset Flag - RST/. 1 , RST/.

12.7.11. OSCICN -
:
OSCICN - Internal Oscillator Control Register
SFR / :
0xBA / F
:
00000000b (0x00)
R/W

R/W

R/W

R/W

R/W

R/W

R/W

R/W

IOSCEN

IFRDY

SUSPEND

IFCN1

IFCN0

Bit 7

Bit 6

Bit 5

Bit 4

Bit 3

Bit 2

Bit 1

Bit 0

7: IOSCEN - Internal Oscillator Enable Bit - (1 - ).


6: IFRDY - Internal Oscillator Frequency Ready Flag - , 1 ,
IFCN .
5: SUSPEND 1 .
USB VBUS.
4-2 .
1-0: IFCN - Internal Oscillator Frequency Control Bits - :
00 - 8;
01 - 4;
10 - 2;
11 - 1.

15

12.7.12. CLKMUL -
:
SFR / :

CLKMUL Clock Multiplier Control Register


0xB9
:

R/W

R/W

R/W

R/W

R/W

R/W

MULEN

MULINIT

MULRDY

Bit 7

Bit 6

Bit 5

Bit 4

Bit 3

Bit 2

00000000b (0x00)
R/W

R/W

MULSEL

Bit 1

Bit 0

7: MULEN Clock Multiplier Enable (1) ;


6: MULINIT Clock Multiplier Initialize . 0
MULEN. 1 ;
5: MULRDY Clock Multiplier Ready : 0 , 1
- ;
4-2 ;
1-0: MULSEL :
00 ;
01 ;
10 - / 2.

12.7.13. CLKSEL -
:
CLKSEL - Oscillator Clock Selection Register
SFR / :
0xA9
:
R
Bit 7

R
Bit 6

R
USBCLK
Bit 5

R
Bit 4

R
Bit 3

R
Bit 2

00000000b (0x00)
R
Bit 1

R/W
CLKSL
Bit 0

. x51- Silicon Laboratories (Cygnal),M., ,2004,-628.,.

7,3,2 - .
6-4: USBCLK - USB. USB
48 , 6 :
000 4;
001 /2:
010 ;
011 - /2;
100 - /3;
101 - /4;
1-0: CLKSL :
00 - ;
01 ;
10 - /2.
12.7.14. Crossbar
Crossbar C8051F32x ,
C8051F31x (. .11.9)
12.7.15. USB
C8051F32x USB
( 2.0), ( - 48 ),
( - 6 ). , USB
1 . USB
C8051F32x -
. , USB (Host) .
[18] .
SFR, USB.

16

12.7.16. USB0XCN - USB


:
USBXCN USB0 Transceiver Control
SFR :
0xD7
:

00000000b (0x00)

R/W

R/W

R/W

R/W

R/W

R/W

R/W

R/W

PREN

PHYEN

SPEED

PHYTST1

PHYTST0

DFREC

Dp

Dn

Bit 7

Bit 6

Bit 5

Bit 4

Bit 3

Bit 2

Bit 1

Bit 0

7: PREN - Internal Pull-up Resistor Enable - .


( D+ D-) SPEED.
(0) - - USB . (1) - .
6: PHYEN - Physical Layer Enable - (1 ) / (0) .
5: SPEED - USB Speed Select - . 0 - (
D-). 1 - (
D+).
4-3 - PHYTST1-0 -Physical Layer Test - :
PHYTST
D+ D00
0 -
X
X
01
1 - 1
1
0
10
2 - 0 0
1
11
3 -
0
0
2: DFREC - Differential Receiver - (0 - 0).
1: Dp - D+ Signal Status - D+ (0 - 0).
0: Dn - D- Signal Status - D- (0 - 0).

. x51- Silicon Laboratories (Cygnal),M., ,2004,-628.,.

12.7.17. USB0ADR - USB


:
USB0ADR USB0 Indirect Address Register
SFR :
0xD7
:
R/W

R/W

BUSY

AUTORD

Bit 7

Bit 6

R/W

R/W

R/W

R/W

00000000b (0x00)
R/W

R/W

Bit 1

Bit 0

USBADDR

Bit 5

Bit 4

Bit 3

Bit 2

7: BUSY - USB Register Read Busy Flag - USB.


1 USB, USBADDR.
BUSY USBADDR .
BUSY, USB0DAT.
:
0 - ;
1 - USBADDR.
:
0 - USB0DAT ;
1 - USB . USB0DAT ;
6: AUTORD - USB Register Auto-Read Flag - (
FIFO :
0 - BUSY ;
1 - . .
5-0: USBADDR - USB Indirect Register Address - .
12.7.18. USB0DAT - USB
:
USB0DAT USB0 Data Register
SFR :
0x97
:
R/W

R/W

R/W

R/W

R/W

00000000b (0x00)

R/W

R/W

R/W

Bit 2

Bit 1

Bit 0

17

USB0DAT

Bit 7

Bit 6

Bit 5

Bit 4

Bit 3

/ USB.
12.7.19. USB
SFR ( ) USB . Cygnal
.
:
1. USB, BUSY (USB0ADR.7) 0.
2. USBADDR USB0ADR.
3. USB0DAT.
4. ( 2 ).

1.
2.
3.
4.
5.
6.

:
USB, BUSY (USB0ADR.7) 0.
USBADDR USB0ADR.
1 BUSY (USB0ADR.7)
USB, BUSY (USB0ADR.7) 0.
USB0DAT.
( 2 , 3
, AUTORD (USB0ADR.6) =1.

USB USB [18].

. x51- Silicon Laboratories (Cygnal),M., ,2004,-628.,.

12.8. C8051F32x
C8051F32x , , "" (F30x, F31x, F32x, F33x). C8051F31x, . USB ( 2). ,
4.0 5.25 . : 10- - - 17(13)-.
16K Flash , 256+1 +1 USB.

"" .

18

Оценить