线性CCD使用说明

时间:2017-08-08 14:36:37
【文件属性】:

文件名称:线性CCD使用说明

文件大小:343KB

文件格式:PDF

更新时间:2017-08-08 14:36:37

线性CCD

#include /* common defines and macros */ #include "derivative.h" /* derivative-specific definitions */ #include "LCD.h" #define BUS_CLOCK 32000000 //总线频率,改变总线频率直接在此处修改 #define OSC_CLOCK 16000000 //晶振频率 #define SI PORTB_PB0 #define CLK PORTB_PB1 #pragma CONST_SEG DEFAULT unsigned int buchang[128]= //对AD值的补偿系数,需要标定。 {10,10,10,10,10, 9, 9, 8, 8, 8, //为了获得良好的精度,将原始值扩大5~10倍 8, 7, 7, 7, 7, 7, 7, 7, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9,10,10,10,10 };


网友评论