求飞思卡尔智能车CCD摄像头程序

来源:百度知道 编辑:UC知道 时间:2024/07/07 08:37:13
求飞思卡尔智能车的数据采集(CCD摄像头)程序,(脚的接法可以自选)
主控芯片为MC9S12DG128的c语言程序.,只要求能够实现采集即可.注释越详细

Main.c

#include <hidef.h> /* common defines and macros */
#include <mc9s12db128.h> /* derivative information */
#pragma LINK_INFO DERIVATIVE "mc9s12db128b"
#include "define.h"
#include "init.h"

// variable used in video process
volatile unsigned char image_data[ROW_MAX][LINE_MAX] ; // data array of picture
unsigned char black_x[ROW_MAX] ; // 0ne-dimensional array
unsigned char row ; // x-position of the array
unsigned char line ; // y-position of the array
unsigned int row_count ; // row counter
unsigned char line_sample ; // used to counter in AD
unsigned char row_image ;
unsigned char line_temp ; // temperary variable used