pwm.c
来自「PWM test for LEDs for LPC2114」· C语言 代码 · 共 29 行
C
29 行
/************************************************************************
** Program Name : PWMDAC **
** Compiler : Keil **
** Board : MiniARM **
** Firm : UC Micro Systems **
** Website : www.ucmicrosys.com **
** **
** Description : This program changes the value of DAC when pressing **
the key1. See the O/P on CRO by connecting the probe**
on test point PWM/PWMDAC **
***********************************************************************/
#include "lpc21xx.h"
typedef unsigned char uint8;
typedef signed char int8;
typedef unsigned short uint16;
typedef signed short int16;
typedef unsigned int uint32;
typedef signed int int32;
typedef float fp32;
typedef double fp64;
#define Fosc 11059200 //10MHz~25MH
#define Fcclk (Fosc * 4) //Fosc(1~32)<=60MHZ
#define Fcco (Fcclk * 4) //CCO Fcclk 2
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?