Built-in Functions
Examples:
Example
Files:
Also See:
setup_timer_3 (T3_INTERNAL | T3_DIV_BY_2);
None
get_timer3(), set_timer3()
setup_timer_4( )
Syntax:
setup_timer_4 (mode , period , postscale )
Parameters: mode may be one of:
?
T4_DISABLED, T4_DIV_BY_1, T4_DIV_BY_4,
T4_DIV_BY_16
period is a int 0-255 that determines when the clock value is
reset,
postscale is a number 1-16 that determines how many timer
overflows before an interrupt: (1 means once, 2 means twice, and
so on).
Returns:
Function:
undefined
Initializes timer 4. The mode specifies the clock divisor (from the
oscillator clock). The timer value may be read and written to using
GET_TIMER4() and SET_TIMER4(). Timer 4 is a 8 bit
counter/timer.
Availability: This function is only available on devices with timer 4 hardware.
Requires:
Examples:
Constants are defined in the devices .h file
setup_timer_4 ( T4_DIV_BY_4, 0xc0, 2);
// At 20mhz, the timer will increment every 800ns,
// will overflow every 153.6us,
// and will interrupt every 307.2us.
Example
Files:
Also See:
get_timer4(), set_timer4()
setup_timer_5( )
Syntax:
setup_timer_5 ( mode )
281
相关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