PIC18F2450/4450
DS39760A-page 138
Advance Information
2006 Microchip Technology Inc.
When UOWN is set, the user can no longer depend on
the values that were written to the BDs. From this point,
the SIE updates the BDs as necessary, overwriting the
original BD values. The BDnSTAT register is updated
by the SIE with the token PID and the transfer count,
BDnCNT, is updated.
The BDnSTAT byte of the BDT should always be the
last byte updated when preparing to arm an endpoint.
The SIE will clear the UOWN bit when a transaction
has completed. The only exception to this is when KEN
is enabled and/or BSTALL is enabled.
No hardware mechanism exists to block access when
the UOWN bit is set. Thus, unexpected behavior can
occur if the microcontroller attempts to modify memory
when the SIE owns it. Similarly, reading such memory
may produce inaccurate data until the USB peripheral
returns ownership to the microcontroller.
14.4.1.2
BDnSTAT Register (CPU Mode)
When UOWN = 0, the microcontroller core owns the
BD. At this point, the other seven bits of the register
take on control functions.
The
Data
Toggle
Sync
Enable
bit,
DTSEN
(BDnSTAT<3>), controls data toggle parity checking.
Setting DTSEN enables data toggle synchronization by
the SIE. When enabled, it checks the data packet’s
parity against the value of DTS (BDnSTAT<6>). If a
packet arrives with an incorrect synchronization, the
data will essentially be ignored. It will not be written to
the USB RAM and the USB transfer complete interrupt
flag will not be set. The SIE will send an ACK token
back to the host to Acknowledge receipt, however. The
effects of the DTSEN bit on the SIE are summarized in
The Buffer Stall bit, BSTALL (BDnSTAT<2>), provides
support for control transfers, usually one-time stalls on
Endpoint
0.
It
also
provides
support
for
the
SET_FEATURE/CLEAR_FEATURE commands speci-
fied in Chapter 9 of the USB specification; typically,
continuous STALLs to any endpoint other than the
default control endpoint.
The BSTALL bit enables buffer stalls. Setting BSTALL
causes the SIE to return a STALL token to the host if a
received token would use the BD in that location. The
EPSTALL bit in the corresponding UEPn control
register is set and a STALL interrupt is generated when
a STALL is issued to the host. The UOWN bit remains
set and the BDs are not changed unless a SETUP
token is received. In this case, the STALL condition is
cleared and the ownership of the BD is returned to the
microcontroller core.
The BD9:BD8 bits (BDnSTAT<1:0>) store the two most
significant digits of the SIE byte count; the lower 8 digits
are stored in the corresponding BDnCNT register. See
for
more
information.
TABLE 14-3:
EFFECT OF DTSEN BIT ON ODD/EVEN (DATA0/DATA1) PACKET RECEPTION
OUT Packet
from Host
BDnSTAT Settings
Device Response after Receiving Packet
DTSEN
DTS
Handshake
UOWN
TRNIF
BDnSTAT and USTAT Status
DATA0
10
ACK
01
Updated
DATA1
10
ACK
10
Not Updated
DATA0
11
ACK
01
Updated
DATA1
11
ACK
10
Not Updated
Either
0x
ACK
01
Updated
Either, with error
xx
NAK
10
Not Updated
Legend: x = don’t care
相关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