- 0
- 0
- 约6.09万字
- 约 26页
- 2017-11-01 发布于江苏
- 举报
飞思卡尔智能小车programs
Main.c
//*************************************************************************
//**程序名:飞思卡尔智能小车
//**版本说明Freescale CodeWarrior4.6
//**运行环境:飞思卡尔MC9SDG128B单片机
//**修改时间:2008年7月13日
//*******************************************#include hidef.h /* common defines and macros */
#include MC9S12XS128.h /* derivative information */
#include Stdio.h
#pragma LINK_INFO DERIVATIVE mc9s12xs128
uchar Switch1,Switch2;
void main(void) {
int a;
for(a=0;a3;a++)
{
TSCR1 = 0x80; /* enable timer TCNT */
TSCR2 = 0x07; /
原创力文档

文档评论(0)