參數(shù)資料
型號(hào): PIC16C765-I/PT
廠商: Microchip Technology
文件頁(yè)數(shù): 137/165頁(yè)
文件大?。?/td> 0K
描述: IC MCU OTP 8KX14 USB 44TQFP
產(chǎn)品培訓(xùn)模塊: Asynchronous Stimulus
8-bit PIC® Microcontroller Portfolio
標(biāo)準(zhǔn)包裝: 160
系列: PIC® 16C
核心處理器: PIC
芯體尺寸: 8-位
速度: 24MHz
連通性: SCI,UART/USART,USB
外圍設(shè)備: 欠壓檢測(cè)/復(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-TQFP
包裝: 托盤(pán)
產(chǎn)品目錄頁(yè)面: 636 (CN2011-ZH PDF)
配用: XLT44PT3-ND - SOCKET TRAN ICE 44MQFP/TQFP
AC164305-ND - MODULE SKT FOR PM3 44TQFP
ISPICR1-ND - ADAPTER IN-CIRCUIT PROGRAMMING
444-1001-ND - DEMO BOARD FOR PICMICRO MCU
AC164020-ND - MODULE SKT PROMATEII 44TQFP
第1頁(yè)第2頁(yè)第3頁(yè)第4頁(yè)第5頁(yè)第6頁(yè)第7頁(yè)第8頁(yè)第9頁(yè)第10頁(yè)第11頁(yè)第12頁(yè)第13頁(yè)第14頁(yè)第15頁(yè)第16頁(yè)第17頁(yè)第18頁(yè)第19頁(yè)第20頁(yè)第21頁(yè)第22頁(yè)第23頁(yè)第24頁(yè)第25頁(yè)第26頁(yè)第27頁(yè)第28頁(yè)第29頁(yè)第30頁(yè)第31頁(yè)第32頁(yè)第33頁(yè)第34頁(yè)第35頁(yè)第36頁(yè)第37頁(yè)第38頁(yè)第39頁(yè)第40頁(yè)第41頁(yè)第42頁(yè)第43頁(yè)第44頁(yè)第45頁(yè)第46頁(yè)第47頁(yè)第48頁(yè)第49頁(yè)第50頁(yè)第51頁(yè)第52頁(yè)第53頁(yè)第54頁(yè)第55頁(yè)第56頁(yè)第57頁(yè)第58頁(yè)第59頁(yè)第60頁(yè)第61頁(yè)第62頁(yè)第63頁(yè)第64頁(yè)第65頁(yè)第66頁(yè)第67頁(yè)第68頁(yè)第69頁(yè)第70頁(yè)第71頁(yè)第72頁(yè)第73頁(yè)第74頁(yè)第75頁(yè)第76頁(yè)第77頁(yè)第78頁(yè)第79頁(yè)第80頁(yè)第81頁(yè)第82頁(yè)第83頁(yè)第84頁(yè)第85頁(yè)第86頁(yè)第87頁(yè)第88頁(yè)第89頁(yè)第90頁(yè)第91頁(yè)第92頁(yè)第93頁(yè)第94頁(yè)第95頁(yè)第96頁(yè)第97頁(yè)第98頁(yè)第99頁(yè)第100頁(yè)第101頁(yè)第102頁(yè)第103頁(yè)第104頁(yè)第105頁(yè)第106頁(yè)第107頁(yè)第108頁(yè)第109頁(yè)第110頁(yè)第111頁(yè)第112頁(yè)第113頁(yè)第114頁(yè)第115頁(yè)第116頁(yè)第117頁(yè)第118頁(yè)第119頁(yè)第120頁(yè)第121頁(yè)第122頁(yè)第123頁(yè)第124頁(yè)第125頁(yè)第126頁(yè)第127頁(yè)第128頁(yè)第129頁(yè)第130頁(yè)第131頁(yè)第132頁(yè)第133頁(yè)第134頁(yè)第135頁(yè)第136頁(yè)當(dāng)前第137頁(yè)第138頁(yè)第139頁(yè)第140頁(yè)第141頁(yè)第142頁(yè)第143頁(yè)第144頁(yè)第145頁(yè)第146頁(yè)第147頁(yè)第148頁(yè)第149頁(yè)第150頁(yè)第151頁(yè)第152頁(yè)第153頁(yè)第154頁(yè)第155頁(yè)第156頁(yè)第157頁(yè)第158頁(yè)第159頁(yè)第160頁(yè)第161頁(yè)第162頁(yè)第163頁(yè)第164頁(yè)第165頁(yè)
2000 Microchip Technology Inc.
Preliminary
DS41124C-page 73
PIC16C745/765
10.9.3.6
Buffer Allocation
The PIC16C745/765 has 64 bytes of Dual Port RAM.
24 are used for the Buffer Descriptor Table (BDT),
leaving 40 bytes for buffers.
Endpoints 0 IN and OUT need dedicated buffers since
a setup transaction can never be NAKed. That leaves
three buffers for four possible Endpoints, but the USB
spec requires that low speed devices are only allowed
2 endpoints (USB 1.1 paragraph 5.3.1.2), where an
endpoint is a simplex connection that is defined by the
combination of Endpoint number and direction.
10.9.3.7
Vendor Specific Commands
Vendor specific commands are defined by the vendor.
These are parsed out, but are not processed. Instead,
control is passed to function CheckVendor where
they can be processed.
10.9.4
FILE PACKAGING
The software interface is packaged into four files,
designed to simplify the integration with your application.
File USB_CH9.ASM contains the interface and core
functions
needed
to
enumerate
the
bus.
DESCRIPT.ASM contains the device, config, inter-
face, endpoint and string descriptors. Both of these
files must be linked in with your application.
HIDCLASS.ASM provides some HID Class specific
functions. Currently only GetReportDescriptor is sup-
ported. Other class specific functions can be imple-
mented in a similar fashion. When a token done
interrupt determines that it’s a class specific command
on the basis that ReportType bit 6 is set, control is
passed to function ClassSpecific. If you’re working
with a different class, this is your interface between the
core functions and the class specific functions.
USB_MAIN.ASM is useful as a starting point on a new
application and as an example of how an existing
application needs to service the USB interrupt and
communicate with the core functions.
10.9.5
FUNCTION CALL REFERENCE
Interface between the Application and Protocol layer
takes place in three main functions: InitUSB, PutUSB
and GetUSB.
InitUSB should be called by the main program immedi-
ately upon power-up. It enables the USB peripheral and
USB Reset interrupt, and transitions the part to the pow-
ered state to prepare the device for enumeration. See
Section 10.9.6 “Behind the Scenes” for details on the
enumeration process.
DeInitUSB disables the USB peripheral, removing the
device from the bus. An application might call
DeInitUSB if it was finished communicating to the host
and didn't want to be polled any more.
PutUSB (Buffer pointer, Buffer size, Endpoint) sends
data up to the host. The pointer to the block of data to
transmit is in the FSR/IRP, and the block size and end-
point is passed in W register. If the IN buffer is available
for that endpoint, PutUSB copies the buffer, flips the
Data 0/1 bit and sets the OWNS bit. A buffer not avail-
able would occur when it has been previously loaded
and the host has not requested that the USB peripheral
transmit it. In this case, a failure code would be returned
so the application can try again later.
GetUSB (Buffer Pointer, Endpoint) returns data sent
from the host. If the out buffer pointed to by the endpoint
number is ready, as indicated by the OWNS bit, the
buffer is copied from dual port RAM to the locations
pointed to by the buffer pointer, and resets the endpoint
for the next out transaction from the host. If no data is
available, it returns a failure code. Thus the functions of
polling for buffer ready and copying the data are com-
bined into the one function.
ServiceUSBInt handles all interrupts generated by the
USB peripheral. First, it copies the active buffer to com-
mon RAM, which provides a quick turn around on the
buffer in dual port RAM and also avoids having to
switch banks during processing of the buffer. File
USB_MAIN.ASM
gives
an
example
of
how
ServiceUSBInt would be invoked.
StallUSBEP/UnstallUSBEP sets or clears the stall bit
in the endpoint control register. The stall bit indicates to
the host that user intervention is required and until such
intervention is made, further attempts to communicate
with the endpoint will not be successful. Once the user
intervention has been made, UnstallUSBEP clears the
bit allowing communication to take place. These calls
are useful to signal to the host that user intervention is
required. An example of this might be a printer out of
paper.
SoftDetachUSB clears the DEV_ATT bit, electrically
disconnecting the device from the bus, then reconnect-
ing, so it can be re-enumerated by the host. This pro-
cess takes approximately 50 mS, to ensure that the host
has seen the device disconnect and reattach to the bus.
CheckSleep tests the UCTRL.UIDLE bit if set, indicat-
ing that there has been no activity on the bus for 3 mS.
If set, the device can be put to SLEEP, which puts the
part into a low power standby mode, until wakened by
bus activity. This has to be handled outside the ISR
because we need the interrupt to wake us from SLEEP,
and also because the application may not be ready to
SLEEP when the interrupt occurs. Instead, the applica-
tion should periodically call this function to poll the bit,
when the device is in a good place to SLEEP.
Prior to putting the device to SLEEP, it enables the
activity interrupt so the device will be awakened by the
first transition on the bus. The PICmicro device will
immediately jump to the ISR, recognize the activity
interrupt, which then disables the interrupt and resumes
processing
with
the
instruction
following
the
CheckSleep call.
745cov.book Page 73 Wednesday, August 2, 2000 8:24 AM
相關(guān)PDF資料
PDF描述
PIC16C770-I/SO IC MCU OTP 2KX14 A/D PWM 20-SOIC
PIC16C781-I/SO IC MCU OTP 1KX14 W/AD COMP20SOIC
PIC16CE625-04I/SO IC MCU OTP 2KX14 EE COMP 18SOIC
PIC16CR77T-I/PT IC PIC MCU 8KX14 44TQFP
PIC16F1503-I/SL MCU 8BIT 3.5KB FLASH 14SOIC
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
PIC16C765T-I/L 功能描述:8位微控制器 -MCU 14KB 256 RAM 33 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
PIC16C765T-I/PT 功能描述:8位微控制器 -MCU 14KB 256 RAM 33 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-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