?? ex3c.c
字號:
/*= ex3c.c =====================================================================
*
* Copyright (C) 2003 Nordic VLSI ASA
*
* Author(s) : Ole Saether
* Support mail : nrfprog@nvlsi.no
*
* DESCRIPTION:
*
* PWM example program.
*
* The functionality is the same as in ex3a.asm.
*
* COMPILER:
*
* This program has been tested with Keil C51 V6.10 and V7.05.
*
* $Revision: 1 $
*
*==============================================================================
*/
#include <Nordic VLSI\reg24e1.h>
void main(void)
{
P0_ALT = 0x80; // Enable PWM output
PWMCON = 0xc0; // Enable 8 bit PWM with min prescaler
PWMDUTY = 10; // High 10 out of 255 periods
for(;;)
;
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -