登录
首页 » C# » PIC CCP例

PIC CCP例

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

  • jp5
    这是一组JPEG解码的说明和源代码,详细说明在文件的开头部分(This is a group of JPEG decoding instructions and source code, a detailed description of the document at the beginning of)
    2008-08-05 16:16:44下载
    积分:1
  • Directx-8.1-Programming-for-CPP
    应用程序向导。此工具提供了一个应用程序向导创建一个DirectX应用程序与DirectX组件的任意组合。这个工具是在安装过程中的软件开发工具包(SDK)安装,并创建一个新的应用程序时,可以在Microsoft Visual Studio® 访问。欲了解更多信息,请参阅应用程序向导。 错误查找工具。使用这个工具,采取十六进制的错误代码,并期待一个基于文本的错误信息。 SDK安装的一部分安装此工具,可以从开始,程序,微软DirectX8.1 SDK,DirectX的公用事业,DirectX错误查询访问。 DirectX图形的新功能(AppWizard. This tool provides an application wizard for creating a DirectX application with any combination of DirectX components. This tool is installed during the software development kit (SDK) install and can be accessed within Microsoft Visual Studio® when creating a new application. For more information see AppWizard. Error Lookup Tool. Use this tool to take the hexadecimal error codes and look up a text-based error message. This tool is installed as part of the SDK install and can be accessed from Start, Programs, Microsoft DirectX 8.1 SDK, DirectX Utilities, DirectX Error Lookup. New Features in DirectX Graphics )
    2012-01-11 20:54:36下载
    积分:1
  • Money Pile EA
    说明:  very good ea!!!!!!!!!!!!!
    2019-11-12 19:28:08下载
    积分:1
  • bfs
    这是BFS算法的实现。用C语言实现的。好好学习吧。(This is achieved BFS algorithm. Implemented using C language. Learn it.)
    2013-12-05 15:56:50下载
    积分:1
  • 零死角玩转STM32 初级篇 中级篇 系统篇
    零死角玩转STM32 初级篇 中级篇 系统篇.zip(Zero Dead Corner Play STM32 Junior Intermediate Systematic Paper.zip)
    2020-06-25 11:00:01下载
    积分:1
  • anim_pres
    fortran的matlab代码,可以将fortran仿真结果可视化(fortran matlab code, you can visualize simulation results fortran)
    2014-02-20 21:05:27下载
    积分:1
  • KEY
    自己写的一个带有松手检测和长按识别,短按识别,长短按区分的键盘扫描程序(Write your own keyboard scanner with a loosely detection and long-identification, press recognition, length according to the distinction)
    2012-07-19 15:25:28下载
    积分:1
  • bianyi
    词法分析器,能够对输入的程序进行单词的划分。生成文件各自输出。(Lexical analyzer, able to enter the process of division of the word. Generate their own output files.)
    2007-12-12 10:59:36下载
    积分:1
  • erzhihua
    图像的二值化处理程序,用于Visual c++中(Binary image processing program for Visual c++ in)
    2010-08-13 08:50:24下载
    积分:1
  • pwm-out-capyure
    可应用按键实时改变pwm输出占空比,同时有端口进行相应的pwm捕获。相应的端口配置在程序注释处。(It can change the duty cycle of PWM output in real time by using keys, and at the same time, it has ports to capture the corresponding pwm.)
    2019-02-27 10:19:42下载
    积分:1
  • 696518资源总数
  • 105563会员总数
  • 11今日下载