參數(shù)資料
型號(hào): PIC16C765T-I/L
廠商: Microchip Technology
文件頁數(shù): 139/165頁
文件大?。?/td> 0K
描述: IC MCU OTP 8KX14 USB 44PLCC
標(biāo)準(zhǔn)包裝: 500
系列: PIC® 16C
核心處理器: PIC
芯體尺寸: 8-位
速度: 24MHz
連通性: SCI,UART/USART,USB
外圍設(shè)備: 欠壓檢測/復(fù)位,POR,PWM,WDT
輸入/輸出數(shù): 33
程序存儲(chǔ)器容量: 14KB(8K x 14)
程序存儲(chǔ)器類型: OTP
RAM 容量: 256 x 8
電壓 - 電源 (Vcc/Vdd): 4.35 V ~ 5.25 V
數(shù)據(jù)轉(zhuǎn)換器: A/D 8x8b
振蕩器型: 外部
工作溫度: -40°C ~ 85°C
封裝/外殼: 44-LCC(J 形引線)
包裝: 帶卷 (TR)
其它名稱: PIC16C765TI/L
2000 Microchip Technology Inc.
Preliminary
DS41124C-page 75
PIC16C745/765
10.9.7
EXAMPLE
This example shows how the USB functions are used.
This example first initializes the USB peripheral, which
allows the host to enumerate the device. The enumer-
ation process occurs in the background, via an Inter-
rupt
Service
Routine.
This
function
waits
until
enumeration is complete, and then polls EP1 OUT to
see if there is any data available. When a buffer is
available, it is copied to the IN buffer.
Presumably
your application would do something more interesting
with the data than this example.
; ******************************************************************
; Demo program that initializes the USB peripheral, allows the Host
;
to Enumerate, then copies buffers from EP1OUT to EP1IN.
; ******************************************************************
main
call
InitUSB
; Set up everything so we can enumerate
ConfiguredUSB
; wait here until we have enumerated.
CheckEP1
; Check Endpoint 1 for an OUT transaction
bankisel
buffer
; point to lower banks
movlw
buffer
movwf
FSR
; point FSR to our buffer
movlw
1
; check end point 1
call
GetUSB
; If data is ready, it will be copied.
btfss
STATUS,C
; was there any data for us?
goto
PutBuffer
; Nope, check again.
; Code host to process out buffer from host
PutBuffer
bankisel
buffer
; point to lower banks
; save buffer length
movlw
buffer
movwf
FSR
; point FSR to our buffer
movlw
0x81
; put 8 bytes to Endpoint 1
call
PutUSB
btfss
STATUS,C
; was it successful?
goto
PutBuffer
; No: try again until successful
goto
idleloop
; Yes: restart loop
end
10.9.8
ASSEMBLING THE CODE
The code is designed to be used with the linker. There
is no provision for includable files. The code comes
packaged as several different files:
USB_CH9.ASM - handles all the Chapter 9 com-
mand processing.
USB_DEFS.INC - #Defines used throughout the
code.
USB_MAIN.ASM - Sample interrupt service
routine.
HIDCLASS.ASM - Handles the HID class specific
commands.
10.9.8.1
Assembly Options
There are two #defines at the top of the code that con-
trol assembly options.
10.9.8.2
#define ERRORCOUNTERS
This define includes code to count the number of
errors that occur, by type of error. This requires extra
code and RAM locations to implement the counters.
10.9.8.3
#define FUNCTIONIDS
This is useful for debug. It encodes the upper 6 bits of
USWSTAT (0x197) to indicate which function is exe-
cuting. See the defines in USB_DEFS.INC for the
codes that will be encoded.
745cov.book Page 75 Wednesday, August 2, 2000 8:24 AM
相關(guān)PDF資料
PDF描述
PIC18C442T-E/L IC MCU OTP 8KX16 A/D 44PLCC
PIC16C621A-40/SS IC MCU OTP 1KX14 COMP 20SSOP
PIC16C622A-40/SS IC MCU OTP 2KX14 COMP 20SSOP
PIC16CE623-30/SO IC MCU OTP 512X14 EE COMP 18SOIC
PIC16CE624-30/SO IC MCU OTP 1KX14 EE COMP 18SOIC
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
PIC16C76T-04/SO 功能描述:8位微控制器 -MCU 14KB 368 RAM 22 I/O RoHS:否 制造商:Silicon Labs 核心:8051 處理器系列:C8051F39x 數(shù)據(jù)總線寬度:8 bit 最大時(shí)鐘頻率:50 MHz 程序存儲(chǔ)器大小:16 KB 數(shù)據(jù) RAM 大小:1 KB 片上 ADC:Yes 工作電源電壓:1.8 V to 3.6 V 工作溫度范圍:- 40 C to + 105 C 封裝 / 箱體:QFN-20 安裝風(fēng)格:SMD/SMT
PIC16C76T-04E/SO 功能描述:8位微控制器 -MCU 14KB 368 RAM 22 I/O RoHS:否 制造商:Silicon Labs 核心:8051 處理器系列:C8051F39x 數(shù)據(jù)總線寬度:8 bit 最大時(shí)鐘頻率:50 MHz 程序存儲(chǔ)器大小:16 KB 數(shù)據(jù) RAM 大小:1 KB 片上 ADC:Yes 工作電源電壓:1.8 V to 3.6 V 工作溫度范圍:- 40 C to + 105 C 封裝 / 箱體:QFN-20 安裝風(fēng)格:SMD/SMT
PIC16C76T-04I/SO 功能描述:8位微控制器 -MCU 14KB 368 RAM 22 I/O RoHS:否 制造商:Silicon Labs 核心:8051 處理器系列:C8051F39x 數(shù)據(jù)總線寬度:8 bit 最大時(shí)鐘頻率:50 MHz 程序存儲(chǔ)器大小:16 KB 數(shù)據(jù) RAM 大小:1 KB 片上 ADC:Yes 工作電源電壓:1.8 V to 3.6 V 工作溫度范圍:- 40 C to + 105 C 封裝 / 箱體:QFN-20 安裝風(fēng)格:SMD/SMT
PIC16C76T-10/SO 功能描述:8位微控制器 -MCU 14KB 368 RAM 22 I/O RoHS:否 制造商:Silicon Labs 核心:8051 處理器系列:C8051F39x 數(shù)據(jù)總線寬度:8 bit 最大時(shí)鐘頻率:50 MHz 程序存儲(chǔ)器大小:16 KB 數(shù)據(jù) RAM 大小:1 KB 片上 ADC:Yes 工作電源電壓:1.8 V to 3.6 V 工作溫度范圍:- 40 C to + 105 C 封裝 / 箱體:QFN-20 安裝風(fēng)格:SMD/SMT
PIC16C76T-10E/SO 功能描述:8位微控制器 -MCU 14KB 368 RAM 22 I/O RoHS:否 制造商:Silicon Labs 核心:8051 處理器系列:C8051F39x 數(shù)據(jù)總線寬度:8 bit 最大時(shí)鐘頻率:50 MHz 程序存儲(chǔ)器大小:16 KB 數(shù)據(jù) RAM 大小:1 KB 片上 ADC:Yes 工作電源電壓:1.8 V to 3.6 V 工作溫度范圍:- 40 C to + 105 C 封裝 / 箱體:QFN-20 安裝風(fēng)格:SMD/SMT