PIC18F2450/4450
2006 Microchip Technology Inc.
Advance Information
DS39760A-page 135
14.2.4
USB ENDPOINT CONTROL
Each of the 16 possible bidirectional endpoints has its
own independent control register, UEPn (where ‘n’ rep-
resents the endpoint number). Each register has an
identical complement of control bits. The prototype is
The EPHSHK bit (UEPn<4>) controls handshaking for
the endpoint; setting this bit enables USB handshaking.
Typically, this bit is always set except when using
isochronous endpoints.
The EPCONDIS bit (UEPn<3>) is used to enable or
disable USB control operations (SETUP) through the
endpoint.
Clearing
this
bit
enables
SETUP
transactions. Note that the corresponding EPINEN and
EPOUTEN bits must be set to enable IN and OUT
transactions. For Endpoint 0, this bit should always be
cleared
since
the
USB
specifications
identify
Endpoint 0 as the default control endpoint.
The EPOUTEN bit (UEPn<2>) is used to enable or dis-
able USB OUT transactions from the host. Setting this
bit enables OUT transactions. Similarly, the EPINEN bit
(UEPn<1>) enables or disables USB IN transactions
from the host.
The EPSTALL bit (UEPn<0>) is used to indicate a
STALL condition for the endpoint. If a STALL is issued
on a particular endpoint, the EPSTALL bit for that end-
point pair will be set by the SIE. This bit remains set
until it is cleared through firmware, or until the SIE is
reset.
REGISTER 14-4:
UEPn: USB ENDPOINT n CONTROL REGISTER (UEP0 THROUGH UEP15)
U-0
R/W-0
EPHSHK
EPCONDIS
EPOUTEN
EPINEN
EPSTALL(1)
bit 7
bit 0
Legend:
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-5
Unimplemented: Read as ‘0’
bit 4
EPHSHK: Endpoint Handshake Enable bit
1
= Endpoint handshake enabled
0
= Endpoint handshake disabled (typically used for isochronous endpoints)
bit 3
EPCONDIS: Bidirectional Endpoint Control bit
If EPOUTEN = 1 and EPINEN = 1:
1
= Disable Endpoint n from control transfers; only IN and OUT transfers allowed
0
= Enable Endpoint n for control (SETUP) transfers; IN and OUT transfers also allowed
bit 2
EPOUTEN: Endpoint Output Enable bit
1
= Endpoint n output enabled
0
= Endpoint n output disabled
bit 1
EPINEN: Endpoint Input Enable bit
1
= Endpoint n input enabled
0
= Endpoint n input disabled
bit 0
EPSTALL: Endpoint Stall Enable bit(1)
1
= Endpoint n is stalled
0
= Endpoint n is not stalled
Note 1:
Valid only if Endpoint n is enabled; otherwise, the bit is ignored.
相关PDF资料
22-02-3093 CONN FFC/FPC VERTICAL 9POS .100
PIC16C620A-04/P IC MCU OTP 512X14 COMP 18DIP
PIC16F722-I/SP IC PIC MCU FLASH 2KX14 28-DIP
PIC16F684-I/P IC PIC MCU FLASH 2KX14 14DIP
PIC16LC782T-I/SO IC MCU OTP 2KX14 A/D D/A 20SOIC
PIC18LC601T-I/PT IC MCU ROMLESS A/D PWM 64TQFP
PIC18C601T-I/PT IC MCU ROMLESS A/D PWM 64TQFP
PIC18C801T-I/PT IC MCU ROMLESS A/D PWM 80TQFP
相关代理商/技术参数
PIC16C54C-04/P 制造商:Microchip Technology Inc 功能描述:IC 8BIT CMOS MCU 16C54 DIP18
PIC16C54C04/SO 制造商:Microchip Technology 功能描述:8 PIC16C 4MHz 18SOIC 制造商:Microchip Technology 功能描述:8 PIC16C 4MHz 18SOIC Bulk
PIC16C54C-04/SO 功能描述:8位微控制器 -MCU .75KB 25 RAM 12 I/O 4MHz SOIC18 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
PIC16C54C-04/SO 制造商:Microchip Technology Inc 功能描述:8BIT CMOS MCU SMD 16C54 SOIC18
PIC16C54C-04/SO 制造商:Microchip Technology Inc 功能描述:Microcontroller IC Number of I/Os:12
PIC16C54C-04/SS 功能描述:8位微控制器 -MCU .75KB 25 RAM 12 I/O 4MHz SSOP20 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
PIC16C54C-04E/P 功能描述:8位微控制器 -MCU .75KB 25 RAM 12 I/O 4MHz ExtTemp PDIP18 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
PIC16C54C-04E/SO 功能描述:8位微控制器 -MCU .75KB 25 RAM 12 I/O 4MHz Ext Temp SOIC18 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