?? 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 + -