PCD
or
setup_timer_B
(TB_INTERNAL | TB_DIV_8);
set_timerB(0);
time=get_timerB();
//sets the internal clock as source
//and prescale as 8. At 20MHz timerB will increment
//every 1.6us in this setup and overflows every
//409.6us
//this sets timerB register to 0
//this will read the timerB register value
USB
Universal Serial Bus, or USB, is used as a method for peripheral devices to connect to and talk
to a personal computer. CCS provides libraries for interfacing a PIC to PC using USB by using
a PIC with an internal USB peripheral (like the PIC16C765 or the PIC18F4550 family) or by
using any PIC with an external USB peripheral (the National USBN9603 family).
Relevant Functions:
usb_init()
usb_init_cs()
usb_task()
Initializes the USB hardware. Will then wait in an infinite loop for the
USB peripheral to be connected to bus (but that doesn't mean it has
been enumerated by the PC). Will enable and use the USB interrupt.
The same as usb_init(), but does not wait for the device to be
connected to the bus. This is useful if your device is not bus powered
and can operate without a USB connection.
If you use connection sense, and the usb_init_cs() for initialization, then
you must periodically call this function to keep an eye on the connection
sense pin. When the PIC is connected to the BUS, this function will then
perpare the USB peripheral. When the PIC is disconnected from the
BUS, it will reset the USB stack and peripheral. Will enable and use the
USB interrupt.
Note: In your application you must define USB_CON_SENSE_PIN to the connection sense pin.
usb_detach()
usb_attach()
usb_attached()
usb_enumerated()
usb_put_packet
62
Removes the PIC from the bus. Will be called automatically by
usb_task() if connection is lost, but can be called manually by the user.
Attaches the PIC to the bus. Will be called automatically by usb_task()
if connection is made, but can be called manually by the user.
If using connection sense pin (USB_CON_SENSE_PIN), returns TRUE
if that pin is high. Else will always return TRUE.
Returns TRUE if the device has been enumerated by the PC. If the
device has been enumerated by the PC, that means it is in normal
operation mode and you can send/receive packets.
Places the packet of data into the specified endpoint buffer. Returns
相关PDF资料
PCI-EXP-T42G5-N1 IP CORE PCI EXPRESS ORCA 4
PCM18XH2 PROCESSOR MODULE MPLAB-ICE 2000
PCM18XN0 PROCESSOR MODULE FOR ICE2000
PDA-B-24-615-E-2B1-1-C CIRCUIT BREAKER MAG 1P 15A
PFMF.260.2 PFMF PTC FUSE SMT 2.6A 1812
PFNF.200.2 PFNF PTC FUSE SMT 2A 1206
PFRY.375 PTC-FUSE RADIAL 72 VDC
PFSM.150.33.2 FUSE PTC 8A 15V FST-TRIP SMD
相关代理商/技术参数
PCD_09 制造商:MACOM 制造商全称:Tyco Electronics 功能描述:Low Profile PCB Relay PCD
PCD-00173-0C 制造商:Molex 功能描述:ETHERNET CABLE ASSEMBLY
PCD-00173-0E 制造商:Molex 功能描述:Ethernet Cable Assembly
PCD-00173-0H 制造商:Molex 功能描述:ETHERNET CABLE ASSEMBLY
PCD-00173-0K 制造商:Molex 功能描述:ETHERNET CABLE ASSEMBLY
PCD-00174-0C 制造商:Molex 功能描述:ETHERNET CABLE ASSEMBLY 制造商:Molex 功能描述:ETHERNET CABLE ASSEMBLY; Cable Length - Imperial:3ft; Cable Length - Metric:914.4mm; Connector Type A:RJ45 Plug; Connector Type B:RJ45 Plug; Jacket Color:Red; Approval Bodies:CSA / UL; Body Material:PVC; Cable Assembly Type:Ethernet ;RoHS Compliant: NA
PCD-00174-0E 制造商:Molex 功能描述:ETHERNET CABLE ASSEMBLY 制造商:Molex 功能描述:ETHERNET CABLE ASSEMBLY; Cable Length - Imperial:3ft; Cable Length - Metric:914.4mm; Connector Type A:RJ45 Plug; Connector Type B:RJ45 Plug; Jacket Color:Grey; Approval Bodies:CSA / UL; Body Material:PVC; Cable Assembly Type:Ethernet;RoHS Compliant: NA
PCD-00174-0H 制造商:Molex 功能描述:ETHERNET CABLE ASSEMBLY