登录
首页 » C# » PIC CCP例

PIC CCP例

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

  • 基于linux的共享单车编程
    本项目是基于linux内核的UBUntu系统编写的共享单车服务器、客户端的编程,内容包括socket套接字,sqlite数据库等内容
    2022-03-07 04:45:38下载
    积分:1
  • 粒子群优化算法C
    同遗传算法比较,PSO的优势在于简单容易实现并且没有许多参数需要调整。目前已广泛应用于函数优化,神经网络训练,模糊系统控制以及其他遗传算法的应用领域(comparison with the genetic algorithm, the advantages of PSO is simple and easy to achieve without many parameters need to be adjusted. Now it has been widely used function optimization, neural networks, fuzzy systems control and other genetic algorithm applications)
    2005-08-01 11:58:27下载
    积分:1
  • voicechatAndRecording
    内含服务端和客户端,服务端开启后,客户端可以与另外一个客户端进行语音录音,也可以进行广播,类似网络会议(暂不支持视频).适合想了解多媒体编程和网络编程的初学者.(Includes server and client,when server opened, the client can chat with another client also record voice, you can also broadcast to all client online, similar to the network meeting (not support video). Suited to people who want to know multi-media programming and network programming.)
    2009-12-12 22:10:27下载
    积分:1
  • 贪吃蛇
    #include #include #include #include #include   class tan { public: tan() { int x,y; int i=0,j=0; foodx=1; foody=1; for(;iper=head; head->per=NULL; last->next=NULL; for(x=10,y=10;y
    2022-06-13 06:04:15下载
    积分:1
  • Ex1
    this is the c++ file regarding threads
    2013-07-06 14:28:11下载
    积分:1
  • FaceDetection
    Face detection Face detection (Face detection)
    2016-02-17 20:28:30下载
    积分:1
  • 基于FPGA的FFT算法的设计与实现
    基于FPGA实现FFT算法,内容包含论文、程序、仿真等等(Implementation of FFT algorithm based on FPGA)
    2020-07-02 00:00:07下载
    积分:1
  • 9693803
    说明:  WIN32 opengl三角形绘制,很好,很好(WIN32 opengl triangle drawing, good)
    2018-12-30 07:56:21下载
    积分:1
  • Chap16
    USB接口波形发生器 芯片固件程序loaderwave.sys驱动程序usbwave.sys驱动程序(USB interface chip waveform generator driver firmware loaderwave.sys driver usbwave.sys)
    2009-03-25 21:02:01下载
    积分:1
  • uCOS-III+STemWin5.22+FatFS(含IAR和MDK)
    说明:  STM32F407平台下实现 uCOS-III+STemWin5.22+FatFS ,代码注释详细,希望能帮助大家(STM32F407 UCOS-III+STemWin5.22+FatFS is implemented on the platform. The code annotations are detailed. I hope to help you all.)
    2019-03-06 14:37:53下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载