📄 adc01_data.c
字号:
/************************************************************************
** Program Name : ADC **
** Compiler : Keil **
** Board : MiniARM **
** Firm : UC Micro Systems **
** Website : www.ucmicrosys.com **
** **
** Description : This program display the ADC value on the Terminal **
** Connect ADC power jumper JP10 before running this **
** program. **
** Note : To vary the value of the ADC Rotate he W1 & W2 pot. **
** To compare the actual value with display value of **
** ADC , just connect the meter ont test point named **
** as VIN1 and VIN2. **
** Note : Use Hyper-Terminal in VT-100 mode **
************************************************************************/
#include <LPC21xx.H>
#include <stdio.h>
#ifndef TRUE
#define TRUE 1
#endif
#ifndef FALSE
#define FALSE 0
#endif
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~25MHz
#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 + -