Functional Overview
value=get_timerA()
Relevant Preprocessor:
None
Relevant Interrupts :
INT_TIMERA
Relevant Include Files:
Relevant getenv() parameters:
TIMERA
Example Code:
setup_timer_A(TA_OFF);
or
setup_timer_A
(TA_INTERNAL | TA_DIV_8);
set_timerA(0);
time=get_timerA();
Returns the value of the timerA clock/counter
Interrupt fires when timerA overflows
None, all functions built-in
Returns 1 if the device has timerA
//disable timerA
//sets the internal clock as source
//and prescale as 8. At 20MHz timerA will increment
//every 1.6us in this setup and overflows every
//409.6us
//this sets timerA register to 0
//this will read the timerA register value
TimerB
These options lets the user configure and use timerB. It is available on devices with TimerB
hardware. The clock/counter is 8 bit. It counts up and also provides interrupt on overflow. The
options available are listed in the device's header file.
Relevant Functions:
setup_timer_B(mode)
set_timerB(value)
value=get_timerB()
Relevant Preprocessor:
None
Relevant Interrupts :
INT_TIMERB
Relevant Include Files:
Relevant getenv() parameters:
TIMERB
Example Code:
setup_timer_B(TB_OFF);
Disable or sets the source and prescale for timerB
Initializes the timerB clock/counter
Returns the value of the timerB clock/counter
Interrupt fires when timerB overflows
None, all functions built-in
Returns 1 if the device has timerB
//disable timerB
61
相关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