Built-in Functions
setup_qei( )
Syntax:
setup_qei( options, filter, maxcount );
Parameters: Options - The mode of the QEI module. See the devices .h file for all options
Some common options are:
· QEI_MODE_X2
· QEI_MODE_X4
filter - This parameter is optional, the user can enable the digital filters and
specify the clock divisor.
maxcount - Specifies the value at which to reset the position counter.
Returns:
Function:
void
Configures the Quadrature Encoder Interface. Various settings
like mode and filters can be setup.
Availability: Devices that have the QEI module.
Requires:
Nothing.
Examples: setup_qei(QEI_MODE_X2|QEI_RESET_WHEN_MAXCOUNT,
QEI_FILTER_ENABLE_QEA|QEI_FILTER_DIV_2,0x1000);
Example
Files:
Also See:
None
qei_set_count() , qei_get_count() , qei_status()
setup_rtc( )
Syntax:
setup_rtc() ( options, calibration );
Parameters: Options - The mode of the RTCC module. See the devices .h file for all
options
Calibration - This parameter is optional and the user can specify an 8 bit
value that will get written to the calibration configuration register.
Returns:
Function:
Availability:
void
Configures the Real Time Clock and Calendar module. The module requires
an external 32.768 kHz clock crystal for operation.
Devices that have the RTCC module.
275
相关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