登录
首页 » C# » PIC CCP例

PIC CCP例

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

  • DESRSA
    des和rsa的算法演示文档 (des and rsa algorithm presentation)
    2008-03-20 14:11:54下载
    积分:1
  • MediaPlayerCSharp
    用C#语言编写的音乐播放器程序,实现了基本的功能,简便实用(With C# language with the music player program, to achieve the basic functions, simple and practical)
    2013-06-10 16:03:19下载
    积分:1
  • Visual C++项目开发案例整合 1-10
    Visual C++项目开发案例整合 1-10Visual C++项目开发案例整合 1-10Visual C++项目开发案例整合 1-10Visual C++项目开发案例整合 1-10Visual C++项目开发案例整合 1-10
    2023-08-25 21:40:11下载
    积分:1
  • C语言JSON解析(Exjson)
    C语言JSON解析库:Exjson什么是Exjson?Exjson是一款高性能的基于Flex & Bison的 JSON 解析器,Xserver引擎自带 Exjson解析器,其他需要使用的只需要引入几个头文件和源文件即可
    2021-03-04 12:39:32下载
    积分:1
  • PorcupineSrc
    Porcupine deals with digital image watermarking. You can embed any visible watermark like a text or another image in any position, or store information invisibly inside using a secret key (password).
    2018-12-12 14:44:25下载
    积分:1
  • STM32中断应用概览.pdf
    说明:  STM32 Interrupt application overview stm32f103 chip
    2019-11-05 18:30:00下载
    积分:1
  • atmega128串口通信
    说明:  开发平台ICC FOR AVR,利用定时器超时来接收串口,并输出(Development platform ICC for AVR, using timer timeout to receive serial port, and output)
    2020-09-05 14:16:47下载
    积分:1
  • 哆啦A梦的C代码
    #include #include #define PI 3.14159265 // 主函数 void main() { // 创建大小为 800 * 600 的绘图窗口 initgraph(800, 600); // 设置原点 (0, 0) 为屏幕中央(Y轴默认向下为正) setorigin(400, 300); // 使用白色填充背景 setbkcolor(WHITE); cleardevice(); // 画脸 setfillcolor(RGB(7, 190, 234)); // 头 setlinecolor(BLACK); fillroundrect(-135, -206, 135, 54, 248, 248); setfillcolor(WHITE); // 脸 fillellipse(-115, -144, 115, 46); fillroundrect(-63, -169, 0, -95, 56, 56); // 右眼 fillroundrect(0, -169,  63, -95, 56, 56); // 左眼 setfillcolor(BLACK); solidcircle(-16, -116, 6); // 右眼球 solidcircle( 16, -116, 6); // 左眼球 setfillcolor(RGB(201, 62, 0)); // 鼻子
    2022-02-01 16:57:29下载
    积分:1
  • 中科大计算方法实验 编写gauss
    中科大计算方法实验 编写gauss-seidel迭代和SOR迭代的通用程序-Experimental preparation of USTC method gauss-seidel iteration and SOR iterative general program
    2022-03-13 12:56:39下载
    积分:1
  • aes256
    VC写的的AES256加密解密源码,加密解密写在一起,需要的话可剥离(AES VC)
    2021-05-15 22:30:07下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载