PIC18F2450/4450
DS39760A-page 130
Advance Information
2006 Microchip Technology Inc.
14.2
USB Status and Control
The operation of the USB module is configured and
managed through three control registers. In addition, a
total of 22 registers are used to manage the actual USB
transactions. The registers are:
USB Control register (UCON)
USB Configuration register (UCFG)
USB Transfer Status register (USTAT)
USB Device Address register (UADDR)
Frame Number registers (UFRMH:UFRML)
Endpoint Enable registers 0 through 15 (UEPn)
14.2.1
USB CONTROL REGISTER (UCON)
The USB Control register (Register 14-1) contains bits
needed to control the module behavior during transfers.
The register contains bits that control the following:
Main USB Peripheral Enable
Ping-Pong Buffer Pointer Reset
Control of the Suspend mode
Packet Transfer Disable
In addition, the USB Control register contains a status
bit, SE0 (UCON<5>), which is used to indicate the
occurrence of a single-ended zero on the bus. When
the USB module is enabled, this bit should be
monitored to determine whether the differential data
lines have come out of a single-ended zero condition.
This helps to differentiate the initial power-up state from
the USB Reset signal.
The overall operation of the USB module is controlled
by the USBEN bit (UCON<3>). Setting this bit activates
the module and resets all of the PPBI bits in the Buffer
Descriptor Table to ‘0’. This bit also activates the on-
chip voltage regulator, if enabled. Thus, this bit can be
used as a soft attach/detach to the USB. Although all
status and control bits are ignored when this bit is clear,
the module needs to be fully preconfigured prior to
setting this bit.
REGISTER 14-1:
UCON: USB CONTROL REGISTER
U-0
R/W-0
R-x
R/C-0
R/W-0
U-0
PPBRST
SE0
PKTDIS
USBEN
RESUME
SUSPND
bit 7
bit 0
Legend:
C = Clearable bit
R = Readable bit
W = Writable bit
U = Unimplemented bit, read as ‘0’
-n = Value at POR
‘1’ = Bit is set
‘0’ = Bit is cleared
x = Bit is unknown
bit 7
Unimplemented: Read as ‘0’
bit 6
PPBRST: Ping-Pong Buffers Reset bit
1
= Reset all Ping-Pong Buffer Pointers to the Even Buffer Descriptor (BD) banks
0
= Ping-Pong Buffer Pointers not being reset
bit 5
SE0: Live Single-Ended Zero Flag bit
1
= Single-ended zero active on the USB bus
0
= No single-ended zero detected
bit 4
PKTDIS: Packet Transfer Disable bit
1
= SIE token and packet processing disabled, automatically set when a SETUP token is received
0
= SIE token and packet processing enabled
bit 3
USBEN: USB Module Enable bit
1
= USB module and supporting circuitry enabled (device attached)
0
= USB module and supporting circuitry disabled (device detached)
bit 2
RESUME: Resume Signaling Enable bit
1
= Resume signaling activated
0
= Resume signaling disabled
bit 1
SUSPND: Suspend USB bit
1
= USB module and supporting circuitry in Power Conserve mode, SIE clock inactive
0
= USB module and supporting circuitry in normal operation, SIE clock clocked at the configured rate
bit 0
Unimplemented: Read as ‘0’
相关PDF资料
PIC18F2431T-I/ML IC MCU FLASH 8KX16 28QFN
PIC16LF1938-I/SO IC MCU 8BIT FLASH 28SOIC
PIC16F639-E/SO IC MCU FLASH 2KX14 20SOIC
PIC24F08KL402-I/SS IC MCU 16BIT 8KB FLASH 28-SSOP
PIC16F1936-I/MV IC MCU 8BIT 14KB FLASH 28UQFN
PIC16LF724-I/PT IC PIC MCU FLASH 7KB 44-TQFP
PIC16F724-I/MV MCU 7KB FLASH PROGRAM 40-UQFN
PIC16LF724-I/MV MCU PIC 7KB FLASH XLP 40-UQFN
相关代理商/技术参数
PIC16C55A-04/SS 功能描述:8位微控制器 -MCU .75KB 24 RAM 20 I/O 4 MHz SSOP-28 RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT
PIC16C55A-04E/P 功能描述:8位微控制器 -MCU .75KB 24 RAM 20 I/O RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT
PIC16C55A-04E/SO 功能描述:8位微控制器 -MCU .75KB 24 RAM 20 I/O RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT
PIC16C55A-04E/SP 功能描述:8位微控制器 -MCU .75KB 24 RAM 20 I/O RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT
PIC16C55A-04E/SS 功能描述:8位微控制器 -MCU .75KB 24 RAM 20 I/O RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT
PIC16C55A-04I/P 功能描述:8位微控制器 -MCU .75KB 24 RAM 20 I/O 4 MHz IndTmp PDIP28 RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT
PIC16C55A-04I/P 制造商:Microchip Technology Inc 功能描述:IC 8BIT CMOS MCU 16C55 DIP28
PIC16C55A-04I/SO 功能描述:8位微控制器 -MCU .75KB 24 RAM 20 I/O 4 MHz IndTemp SOIC28 RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT