八、 外部中断
#include<pic.h> //调用PIC16F87XA单片机的头文件
//根据选项,配置字:
__CONFIG(HS&WDTDIS&LVPDIS);
//7 6 5 4 3 2 1 0
//v7 v6 v5v4 v3 v2 v1 v0
constunsigned char liushui[64]=
{
0B00000001, //0
0B00000010,
0B00000100,
0B00001000,
0B00010000,
0B00100000,
0B01000000,
0B10000000,
0B11000000,
0B11100000,
0B11110000, //10
0B11111000,
0B11111100,
0B11111110,
0B11111111,
0B11111110,
0B11111100,
0B11111000,
0B11110000,
0B11100000,
0B11000000, //20
0B10000000,
0B10000000,
0B01000000,
0B00100000,
0B00010000,
0B00001000,
0B00000100,
0B00000010,
0B00000001,
0B00000010, //30
0B00000100,
0B00001000,
0B00010000,
0B00100000,
0B01000000,
0B10000000,
0B01000000,
0B00100000,
0B00010000,
0B00001000, //40
0B00000100,
0B00000010,
0B00000001,
0B00000011,
0B00000110,
0B00001100,
0B00011000,
0B00110000,
0B01100000,
0B11000000, //50
0B00000000,
0B00000001,
0B00000101,
0B00010101,
0B01010101,
0B01010111,
0B01011111,
0B01111111,
0B11111111,
0B00000000, //60
0B10101010,
0B01010101,
0B00000000, //63
};
unsignedint a=0;
unsignedchar b=0;
|