登录
首页 » C# » PIC CCP例

PIC CCP例

于 2022-12-15 发布 文件大小:25.33 kB
0 88
下载积分: 2 下载次数: 1

代码说明:

#include #define uchar unsigned char #define uint unsigned int __CONFIG(0x3B31); uint CCPDE; const uchar table[]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f}; void delay(uint x) {  uint j,i;  for(i=x;i>0;i--)  for(j=110;j>0;j--); } uchar temp; void init(); void display(); void xianshi(uchar num1,uchar num2,uchar num3,uchar num4); void main() {  uchar a1=0,a2=0,a3=0,a4=0;  init();  while(1)  {   a1=CCPDE/1000;   a2=CCPDE%1000/100;   a3=CCPDE%100/10;   a4=CCPDE%10;   xianshi(a4,a3,a2,a1);  }   } void init() {  TRISB=0X00;  PORTB=0x06;  TRISC=0x0f;  CCP1IE=1;   T1CON=0X01;  CCP

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • bahuanghouwenti
    八皇后问题,用vc编写了一个可以解决八皇后问题的程序,实现了递归调用。(The eight queens problem, using vc write a means of solving the eight queens problem program to achieve the recursive calls.)
    2009-09-10 17:59:25下载
    积分:1
  • Kalman-matlab
    传感器姿态解算 matlab工具箱全部程序自带测试文件程序(Sensor attitude algorithm matlab toolbox full program comes with the test documentation procedures)
    2013-07-11 14:51:08下载
    积分:1
  • gps,glonass双模定位daohang
    gps,glonass双模定位,求解用户位置坐标,和接收机钟差(the gps, glonass dual-mode positioning)
    2020-07-05 20:48:59下载
    积分:1
  • jiaotongdeng
    交通灯的开发,实现主道停留60秒,干道停留20秒,出现紧急情况采用按键控制(The development of traffic lights, the main road to stay 60 seconds, the trunk stay for 20 seconds, the event of an emergency using the button control)
    2012-06-27 15:05:57下载
    积分:1
  • EVR_Project
    evr prject is used for finging parameter
    2011-10-16 18:50:12下载
    积分:1
  • 学生管理系统
    本系统是一个基于vs2010平台上的用c#开发的学生管理系统,可以对学生信息进行管理。数据库使用sql,基于.net的程序开发,不够完善,是.net期末考试的课程设计
    2022-08-09 19:00:30下载
    积分:1
  • seu的mfccalculator
    南京高校本科生大学二年级短学期所要求的基于mfc的一个计算器实验
    2022-04-24 13:12:49下载
    积分:1
  • stc15f104e 控制DS18B20
    51单片机通过ds18b20对温度进行测量(temperature measurement)
    2018-08-21 12:19:17下载
    积分:1
  • 音频aac解码
    音频aac解码流程源码,采样率44100,16bit,1024frame,64k码流,供aac解码pcm数据的开发者参考,调用ffmpeg解码接口。
    2023-05-03 11:25:03下载
    积分:1
  • BtnDownUp
    button按下后,edit控件内容连续变化,button抬起后edit内容停止变化。自己做的例子,只以int数据为例。(button is pressed, edit control content changes continuously, button lift stops changing after edit content. Own example, an int data as an example only.)
    2013-08-24 11:42:31下载
    积分:1
  • 696516资源总数
  • 106442会员总数
  • 11今日下载