writetimer67.c
来自「Mplab C30编译器」· C语言 代码 · 共 22 行
C
22 行
#include <timer.h>
#ifdef _T7IF
/********************************************************************
* Function Name: WriteTimer67 *
* Description: This routine writes a LS word *
* to TMR6 and MS word into TMR7 *
* Return Value: None *
* Parameters: unsigned int: value to write to TMR6 and TMR7 *
********************************************************************/
void WriteTimer67( unsigned long timer)
{
TMR7HLD = (timer>>16);
TMR6 = timer; /* LSB to Timer6 and MSB to Timer7HLD */
}
#else
#warning "Does not build on this target"
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?