PIC温控器c语言程序,PIC CCS C语言程序范例.doc

PIC CCS C语言程序范例.doc

********************************

* PIC CCS C语言程序范例 *

********************************

The CCS C compiler includes a library of example programs for many common applications. Each example program contains a header with instructions on how to run the example, and if necessary, the wiring instructions for interfacing external devices.

Here are three such example programs included with our compiler, as well as a list file generated by the compiler which shows the assembly generated to correspond with the C code.

For a full list of example files and source code drivers included with the CCS C compiler go here

Jump to: Stepper Motor Controller | Seconds Timer | Simple A/D | Example List File | List of Example Files

Stepper Motor Controller

/

EX_STEP.C

This program interfaces to a stepper motor. The program will

use the RS-232 interface to either control the motor with a

analog input, a switch input or by RS-232 command.

Configure the CCS prototype card as follows:

Connect stepper motor to pins 47-50 (B0-B3)

Conenct 40 to 54 (pushbutton)

Connect 9 to 15 (pot)

See additional connections below.

/

(C) Copyright 1996,2001 Custom Computer Services

This source code may only be used by licensed users of the CCS

C compiler. This source code may only be distributed to other

licensed users of the

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值