Functional Overview
can-18F4580.c
Relevant getenv() Parameters:
none
Example Code:
can_init();
can_putd(0x300,data,8,3,TRUE,FALSE);
can_getd(ID,data,len,stat);
Drivers for the build in ECAN module
// initializes the CAN bus
// places a message on the CAN buss with
// ID = 0x300 and eight bytes of data pointed to by
// “data”, the TRUE creates an extended ID, the
// FALSE creates
// retrieves a message from the CAN bus storing the
// ID in the ID variable, the data at the array pointed
to by
// “data', the number of data bytes in len, and
statistics
// about the data in the stat structure.
CCP1
These options lets to configure and use the CCP module. There might be multiple CCP modules
for a device. These functions are only available on devices with CCP hardware. They operate in
3 modes: capture, compare and PWM. The source in capture/compare mode can be timer1 or
timer3 and in PWM can be timer2 or timer4. The options available are different for different
devices and are listed in the device header file. In capture mode the value of the timer is copied
to the CCP_X register when the input pin event occurs. In compare mode it will trigger an action
when timer and CCP_x values are equal and in PWM mode it will generate a square wave.
Relevant Functions:
setup_ccp1(mode)
set_pwm1_duty(value)
Relevant Preprocessor:
None
Relevant Interrupts :
INT_CCP1
Sets the mode to capture, compare or PWM. For capture
The value is written to the pwm1 to set the duty.
Interrupt fires when capture or compare on CCP1
Relevant Include Files:
None, all functions built-in
Relevant getenv() parameters:
35
相关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