数据搜索系统,热门电子元器件搜索
  Chinese  ▼
ALLDATASHEETCN.COM

X  

CP2103 数据表(PDF) 21 Page - Silicon Laboratories

部件名 CP2103
功能描述  PROGRAMMERS GUIDE
PDF  36 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
制造商  SILABS [Silicon Laboratories]
网页  http://www.silabs.com
标志 SILABS - Silicon Laboratories

CP2103 数据表(HTML) 21 Page - Silicon Laboratories

Back Button CP2103 Datasheet HTML 17Page - Silicon Laboratories CP2103 Datasheet HTML 18Page - Silicon Laboratories CP2103 Datasheet HTML 19Page - Silicon Laboratories CP2103 Datasheet HTML 20Page - Silicon Laboratories CP2103 Datasheet HTML 21Page - Silicon Laboratories CP2103 Datasheet HTML 22Page - Silicon Laboratories CP2103 Datasheet HTML 23Page - Silicon Laboratories CP2103 Datasheet HTML 24Page - Silicon Laboratories CP2103 Datasheet HTML 25Page - Silicon Laboratories Next Button
Zoom Inzoom in Zoom Outzoom out
 21 / 36 page
background image
AN169
Rev. 2.3
21
4.5. Get_Interrupt_Source
Description:
Returns an 8-bit value indicating the reason(s) for the API interrupt, and clears the USB API
interrupt pending flag(s). This function should be called at the beginning of the user's interrupt
service routine to determine which event(s) has/have occurred.
Supported Devices:
C8051F320/1/6/7, C8051F340/1/2/3/4/5/6/7/8/9/A/B/C/D,
C8051F380/1/2/3/4/5/6/7, C8051T320/1/2/3/6/7, C8051T620/1/2/3
Prototype:
BYTE Get_Interrupt_Source (void)
Parameters:
None
Return Value:
Returns an unsigned 8-bit code indicating the reason(s) for the API interrupt. The code can indi-
cate more than one type of interrupt at the same time. The return values are coded as follows:
0x00
No USB API Interrupts have occurred
0x01
USB_RESET
USB Reset Interrupt has occurred
0x02
TX_COMPLETE
Transmit Complete Interrupt has occurred
0x04
RX_COMPLETE
Receive Complete Interrupt has occurred
0x08
FIFO_PURGE
Command received (and serviced) from the host to purge
the USB buffers
0x10
DEVICE_OPEN
Device Instance Opened on host side
0x20
DEVICE_CLOSE
Device Instance Closed on host side
0x40
DEV_CONFIGURED
Device has entered configured state
0x80
DEV_SUSPEND
USB suspend signaling present on bus
4.6.
USB_Int_Enable
Description:
A call to this function enables the USB API to generate interrupts. If enabled, a USB API interrupt
is generated on the following API events:
1. A USB Reset has occurred.
2. A transmit scheduled by a call to Block_Write has completed.
3. The RX buffer is ready to be serviced by a call to Block_Read.
4. A command from the host has caused the USB buffers to be flushed.
5. A Device Instance has been opened or closed by the host.
The cause of the interrupt can be determined by a call to Get_Interrupt_Source. If USB API inter-
rupts are enabled, the user must provide an interrupt service routine with the entry point located
at the interrupt 16 vector (Address = 0x0083). When this function is called, control will transfer to
the interrupt 16 handler within one ms, if any interrupts are currently pending.
Supported Devices:
C8051F320/1/6/7, C8051F340/1/2/3/4/5/6/7/8/9/A/B/C/D,
C8051F380/1/2/3/4/5/6/7, C8051T320/1/2/3/6/7, C8051T620/1/2/3
Prototype:
void USB_Int_Enable (void)
Parameters:
None
Return Value:
None



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36


数据表 下载

Go To PDF Page


链接网址



ALLDATASHEET是否为您带来帮助?  [ DONATE ] 

关于 Alldatasheet   |   广告服务   |   联系我们   |   隐私政策   |   数据表链接    |   链接交换   |   制造商名单
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com