📄 pwm.c
字号:
/************************************************************************
** 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -