setpulseoc12_v4.c

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

C
21
字号
#if defined(__PIC24F__)
#include <p24Fxxxx.h>
#endif
#include <outcompare.h>

#if defined (_OCMP_V4_1) && defined (_OCMP_V4_2)
/**************************************************************************************
Function Prototype : char SetPulseOC12(unsigned long pulse_start,unsigned long pulse_stop)
 
Include            : outcompare.h
 
Description        : This function configures the Cascade Output Compare main and secondary
                     registers (OCxR and OCxRS ) when the module is not in PWM mode.
 
Arguments          : pulse_start - This is the value to be stored into Output Compare 
                     Main register (OCxR). 
                     pulse_stop - This is the value to be stored into Output Compare 
                     Secondary register (OCxRS). 
                     Note: For Single Compare Mode pulse_stop value is ignored.
 
Return Value       : Returns '1' if value is loaded.Else 

⌨️ 快捷键说明

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