参数资料
型号: DM164127
厂商: Microchip Technology
文件页数: 34/54页
文件大小: 0K
描述: KIT DEVELOPMENT USB 18F14/13K50
标准包装: 1
主要目的: 接口,USB 2.0 从
嵌入式: 是,MCU,8 位
已用 IC / 零件: PIC18F13K50,PIC18F14K50
主要属性: 全速(12Mbps),基于 MCU
次要属性: 4 实验室:枚举,HID 鼠标,HID 键盘,CDC 串行仿真器
已供物品: 3 块板,电缆,CD,连接器
产品目录页面: 659 (CN2011-ZH PDF)
相关产品: PIC18F14K50-I/MQ-ND - IC PIC MCU FLASH 768KX16 20-QFN
PIC18F13K50-I/MQ-ND - IC PIC MCU FLASH 512KX8 20-QFN
PIC18F13K50T-I/SS-ND - IC PIC MCU FLASH 8KB 20-SSOP
PIC18F13K50T-I/SO-ND - IC PIC MCU FLASH 8KB 20-SOIC
PIC18F13K50-I/SO-ND - IC PIC MCU FLASH 8K 1.8V 20-SOIC
PIC18F13K50-I/SS-ND - IC PIC MCU FLASH 8KB 20-SSOP
PIC18F13K50-I/P-ND - IC PIC MCU FLASH 4KX16 20-PDIP
PIC18F14K50T-I/SS-ND - IC PIC MCU FLASH 8KX8 20-SSOP
PIC18F14K50T-I/SO-ND - IC PIC MCU FLASH 8KX8 20-SOIC
PIC18F14K50-I/SS-ND - IC PIC MCU FLASH 8KX16 20-SSOP
更多...
Low Pin Count USB Development Kit User’s Guide
Referring to the flowchart in Figure 2-6, the firmware located in the ProcessIO() first
checks if the previous RS-232 transmission has been sent via the USB using the
RS232_Out_Data_Rdy flag. If this flag is cleared (indicating previous transmission
has been sent), firmware then checks if any new data has been sent from the RS-232
connection and is ready to be transmitted via the USB using the getsUSBUSART() .
This function copies data into a buffer and returns the number of bytes the buffer con-
tains. The function ensures that only the expected numbers of bytes, in this case 64,
are actually copied into this buffer. Also, if there is no data available, the function
returns a zero value indicating no data is available. In this way the function does not
wait for data and is therefore, non-blocking, keeping in mind that all firmware must
conform to this multitasking environment.
Following the RS-232 data check, the firmware then checks if the EUSART transmit
register, TXREG, is empty. This is accomplished using the mTxRdyUSART() macro,
which checks the TRMT bit in the TXSTA (Transmit Status Control) register in the
EUSART peripheral. If the TRMT bit is cleared, the TXREG is Full, and Empty if the
TRMT bit is set. Note that this bit is automatically set following a successful transmis-
sion from the TXREG. If set, the data collected into the buffer by the getsUSBUSART()
is then transferred into the TXREG one byte at a time each time through the main loop.
Again, such macros take care of the low-level RS-232 communication in a non-blocking
fashion so the user doesn’t have to. If the TXREG isn’t empty, then the previous data
has not been transmitted via the USB and should not be overwritten.
The firmware next checks to see if the CDC class device is ready to transmit data. This
is accomplished by using the mUSBUSARTIsTxrfReady() flag. The user must ensure
that this flag is set to ‘ 1 ’ before calling the putUSBUSART() function. As a safety pre-
caution, this function checks the state one more time to make sure it does not override
any pending transactions. This function writes data to the USB.
The CDCTxSevice() services the transfer of data to the host. This function keeps
track of a state machine and breaks up long strings of data into multiple USB data pack-
ets. It is called once each time through the main program loop. The state machine for
the CDCTxService() is shown in Figure 2-7 and the source code can be found in the
usb_function_cdc.c source file. The reader is encouraged to reference this
firmware and compare it against the state diagram at their leisure.
DS41356B-page 30
? 2009 Microchip Technology Inc.
相关PDF资料
PDF描述
H3AAH-6006M IDC CABLE - HSC60H/AE60M/HSC60H
V300C48T75B CONVERTER MOD DC/DC 48V 75W
H4PXS-1618G DIP CABLE - HDP16S/AE16G/X
V48C12T75BL3 CONVERTER MOD DC/DC 12V 75W
VERSAFIT-1-6-SP HEAT SHRINK TUBING
相关代理商/技术参数
参数描述
DM164128 功能描述:开发板和工具包 - PIC / DSPIC PICDEM Touch Sense 2 RoHS:否 制造商:Microchip Technology 产品:Starter Kits 工具用于评估:chipKIT 核心:Uno32 接口类型: 工作电源电压:
DM164130-1 功能描述:开发板和工具包 - PIC / DSPIC F1 Eval Platform RoHS:否 制造商:Microchip Technology 产品:Starter Kits 工具用于评估:chipKIT 核心:Uno32 接口类型: 工作电源电压:
DM164130-1 制造商:Microchip Technology Inc 功能描述:MCH1P - SKU FOR APRIL BUNDLE
DM164130-10 功能描述:开发板和工具包 - PIC / DSPIC F1 PSMC 28-PIN EVAL BOARD PLATFORM RoHS:否 制造商:Microchip Technology 产品:Starter Kits 工具用于评估:chipKIT 核心:Uno32 接口类型: 工作电源电压:
DM164130-2 功能描述:子卡和OEM板 F1 BLDC Motor Add-On RoHS:否 制造商:BeagleBoard by CircuitCo 产品:BeagleBone LCD4 Boards 用于:BeagleBone - BB-Bone - Open Source Development Kit