登录
首页 » C# » PIC CCP例

PIC CCP例

于 2022-12-15 发布 文件大小:25.33 kB
0 75
下载积分: 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 个回复

  • speech
    语音自动识别技术,采用C++编程,可以给做语音识别的提供参考(Automatic speech recognition technology, using C++ programming, you can do to provide a reference for Speech Recognition)
    2009-10-15 22:20:29下载
    积分:1
  • Mucation
    说明:  多通信模式的分布式测控系统设计与应用Multiple communication modes based on Distributed Control System Design and Application(Multiple communication modes based on Distributed Control System Design and Application)
    2011-02-18 19:15:28下载
    积分:1
  • WCF_Custom_Principal
    关于.Net 平台上的WCF 服务的自定义权限控制与管理,好的了解起点,值得收藏(The fundamental technical material about WCF custom principal right control ,it worth bookmarking)
    2013-04-14 14:15:36下载
    积分:1
  • 此源码是《C#入门经典》一书第五章的源代码
    此源码是《C#入门经典》一书第五章的源代码-This source is the C# Entry classic book, Chapter V of the source code
    2023-02-21 17:15:03下载
    积分:1
  • kalman_filter
    一维或二维卡尔曼滤波,可用于飞控系统,运动跟踪系统(One dimensional or two dimensional Calman filtering can be used in flight control system and motion tracking system.)
    2020-06-30 03:20:02下载
    积分:1
  • GIS程序源代码
    自己做的GIS小系统,可能比较简单,适合初学者,代码相对来说好理解,好懂
    2022-04-22 10:23:51下载
    积分:1
  • I2cInInterrupt
    PIC16F727在中断进行I2c器件读写,接口简单,工作稳定,附详细注释,绝对模块化设计,甚至可以直接添到你的程序里用,51单片机稍作修改也可使用。(The PIC16F727 I2c devices to read and write in the interrupt interface is simple, stable, with detailed notes, the absolute modular design and can even add to your program with 51 single-chip slight modifications can also be used.)
    2012-04-30 09:46:38下载
    积分:1
  • poll-su
    Poll servey management system with documents
    2014-02-01 19:06:18下载
    积分:1
  • sapso
    模拟退火粒子群算法代码 matlab版本 供大家参考(Simulated annealing particle swarm algorithm code)
    2012-11-12 21:43:43下载
    积分:1
  • KMDF_hypervisor
    说明:  一个x64 vt hypervisor内部实现ept技术简易框架 ,在此框架下根据需求可以改造使用ept技术进行内存隐藏。。。(An x64x64 vt hypervisor with ept etc.)
    2020-06-17 22:20:01下载
    积分:1
  • 696518资源总数
  • 105885会员总数
  • 31今日下载