參數(shù)資料
型號: PULSE
英文描述: Pulse Period/Width Measurement on the M16C/62
中文描述: 脈沖持續(xù)時間/寬度測量的雙隨機PWM
文件頁數(shù): 10/13頁
文件大小: 410K
代理商: PULSE
Pulse Period/Width Measurement on the M16C/62
M16C
/*****************************************************************************
Name: main()
Parameters: none
Returns: nothing
Description: initializes variables. Then the variable 'period' is constantly
updated with the period count in timer TB1. This is to illustrate
that the period measurement is free running. Note that the first
few times TB1 is read, the data may not be valid.
*****************************************************************************/
void main (void)
{
init();
while (1)
{
period = tb1 ;
// period measured in polled mode
}
}
/*****************************************************************************
Name: initial()
Parameters: none
Returns: nothing
Description: Timer TB0 setup for pulse width interrupts and TB1 configured for
pulse period measurement (no interrupts).
**************************************************************************** */
void init()
{
/* the following procedure for writing an Interrupt Priority Level follows that as
described in the M16C
data sheets under 'Interrupts' */
_asm (" fclr i") ;
// turn off interrupts before modifying IPL
tb0ic |= CNTR_IPL; // use read-modify-write instruction to write IPL
tb0mr = B0TIME_CONFIG;
_asm (" fset i");
tb0s = 1; //start counting
tb1mr = B1TIME_CONFIG;
tb1s = 1; //start counting
}
AN-DECE-MCU-6-A
May 2002
9
相關(guān)PDF資料
PDF描述
PULSPRO SOFTWARE PULSAR PROF
PV35GROMMETPK100 15NS, 28 PLCC, IND TEMP(EPLD)
PV36AGROMMETPK100 GROMMET 12.7MM Inhalt pro Packung: 100 Stk.
PV36GROMMETPK100 15NS, 24 PDIP, IND TEMP(EPLD)
PV37AGROMMETPK100 15NS, 24 SOIC, COM TEMP(EPLD)
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
PULSE-M850 制造商:HOBUT 功能描述:MODULE PULSE FOR USE WITH M850
PULSE-VALVES-9-99 制造商:SENSORTECHNICS 制造商全稱:Sensortechnics GmbH 功能描述:High-performance media resistant soleniod valves
PULSEW3579 制造商:PULSE 制造商全稱:Pulse A Technitrol Company 功能描述:Ferrite-backed Embedded NFC Antenna
PULSEW3580 制造商:PULSE 制造商全稱:Pulse A Technitrol Company 功能描述:Ferrite-backed Embedded NFC Antenna
PULSEW7001 制造商:PULSE 制造商全稱:Pulse A Technitrol Company 功能描述:NFC Flex Stamp Antenna