创维特试验箱上实现A/D转换.docVIP

  • 6
  • 0
  • 约 8页
  • 2016-04-30 发布于安徽
  • 举报
创维特试验箱上实现A/D转换.doc

嵌入式系统实验报告 一、实验时间 2015年5月12日14:30~21:30 二、实验地点 一实验楼401机房 三、实验目的 1、在创维特试验箱上实现A/D转换。 四、实验步骤 1、看懂电路图之后再编程。 2、编译驱动代码 代码: static struct timer_list ttimer; static int Device_Open = 0; static int num=2; /*used to control the speed of the stepper*/ static enum{off,clockwise,anticlockwise} status=off; /*used to indicate and set the status of the stepper*/ static int row=0; unsigned char pulse_table[] = { 0x05, 0x09, 0x0a, 0x06, }; static char* out_base; /* kernel addr*/ int device_ioctl(struct inode *,struct file *,unsigned int ,unsigned long ); static void time_tick(unsigned long data) { stati

文档评论(0)

1亿VIP精品文档

相关文档