writetimer23.c

来自「Mplab C30编译器」· C语言 代码 · 共 22 行

C
22
字号
#include <timer.h>

#ifdef _T3IF

/********************************************************************
*    Function Name:  WriteTimer23                                   *
*    Description:    This routine writes a LS word                  *
*                    to TMR2 and MS word into TMR3                  *
*    Return Value:   None                                           *
*    Parameters:     unsigned int: value to write to TMR2 and TMR3  *
********************************************************************/

void WriteTimer23( unsigned long timer)
{
    TMR3HLD = (timer>>16);
    TMR2 = timer;       /* LSB to Timer2 and MSB to Timer3HLD */    
}

#else
#warning "Does not build on this target"
#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?