登录
首页 » C# » PIC CCP例

PIC CCP例

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

  • HUFFMAN
    Huffan codein and decoding
    2015-03-20 17:25:33下载
    积分:1
  • 本人发现的很好的书籍
    本人发现的很好的书籍-A good book I found
    2022-03-06 03:54:10下载
    积分:1
  • tuxiangchuli
    Visual C++ 数字图像处理 光盘源码(Visual C++ Digital image processing, CD-ROM source)
    2009-01-12 20:23:19下载
    积分:1
  • bee
    c++ library for zic-bee controller
    2014-03-19 19:37:27下载
    积分:1
  • STM32SPWM-190426
    说明:  用TIM1输出6路互补的SPWM,实现电机转动,用VF调频调压(Six complementary SPWM outputs from TIM1 are used to realize motor rotation and VF frequency and voltage regulation.)
    2019-06-29 15:34:06下载
    积分:1
  • 基于mean shift的目标跟踪
    通过meanshift算法对目标进行时时跟踪,效果不错,时时速度也可以
    2023-04-29 04:20:07下载
    积分:1
  • TLBB
    天龙八部服务器源码,非常有用,大家一起学习。。。。。(Dragon server source code)
    2012-09-24 21:57:12下载
    积分:1
  • Articles_of_programing_by_Matlab_and_VC
    Matlab与VC混合编程技术精华收集以及我自己的总结"w-”开头的文章都是我自己总结的,看了一定可以搞定混合编程问题。(Matlab and VC mixed programming technology essence collection and my own conclusion "w-" the beginning of the article I summed up all the reading will be able to get mixed programming problems.)
    2007-03-22 18:14:59下载
    积分:1
  • c#编写的酒店管理系统的,包括酒店的员工管理,住客的管理,财务的结算和其他的功能,反正是很齐全的...
    用c#编写的酒店管理系统的,包括酒店的员工管理,住客的管理,财务的结算和其他的功能,反正是很齐全的-C# prepared by the hotel management system, including the staff of the hotel management, guest management, billing and other financial functions, in any case is a very complete
    2022-01-26 06:20:00下载
    积分:1
  • c语言城市链表
    将若干城市的信息,存入一个带头结点的单链表。结点中的城市信息包括:城市名,城市的位置坐标。要求能够利用城市名和位置坐标进行有关查找、插入、删除、更新等操作。...
    2023-07-30 17:05:02下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载