⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 pic1683.h

📁 一个PIC的demo程序包
💻 H
字号:
/* *	Header file for the Microchip : * 	PIC 16F83 chip *	PIC 16CR83 chip *	Midrange Microcontrollers */static volatile unsigned char TMR0	@ 0x01;static volatile unsigned char RTCC	@ 0x01;static volatile unsigned char PCL	@ 0x02;static volatile unsigned char STATUS	@ 0x03;static          unsigned char FSR	@ 0x04;static volatile unsigned char PORTA	@ 0x05;static volatile unsigned char PORTB	@ 0x06;static volatile unsigned char EEDATA	@ 0x08;static volatile unsigned char EEADR	@ 0x09;static          unsigned char PCLATH	@ 0x0A;static volatile unsigned char INTCON	@ 0x0B;static          unsigned char bank1	OPTION	@ 0x81;static          unsigned char bank1	TRISA	@ 0x85;static          unsigned char bank1	TRISB	@ 0x86;static volatile unsigned char bank1	EECON1	@ 0x88;static volatile unsigned char bank1	EECON2	@ 0x89;/*	STATUS bits	*/static bit      RP0     @ (unsigned)&STATUS*8+5;static bit	TO	@ (unsigned)&STATUS*8+4;static bit	PD	@ (unsigned)&STATUS*8+3;static bit      ZERO    @ (unsigned)&STATUS*8+2;static bit      DC      @ (unsigned)&STATUS*8+1;static bit      CARRY   @ (unsigned)&STATUS*8+0;/*      PORTA bits      */static bit      RA4     @ (unsigned)&PORTA*8+4;static bit      RA3     @ (unsigned)&PORTA*8+3;static bit      RA2     @ (unsigned)&PORTA*8+2;static bit      RA1     @ (unsigned)&PORTA*8+1;static bit      RA0     @ (unsigned)&PORTA*8+0;/*      PORTB bits      */static bit      RB7     @ (unsigned)&PORTB*8+7;static bit      RB6     @ (unsigned)&PORTB*8+6;static bit      RB5     @ (unsigned)&PORTB*8+5;static bit      RB4     @ (unsigned)&PORTB*8+4;static bit      RB3     @ (unsigned)&PORTB*8+3;static bit      RB2     @ (unsigned)&PORTB*8+2;static bit      RB1     @ (unsigned)&PORTB*8+1;static bit      RB0     @ (unsigned)&PORTB*8+0;static bit      INT     @ (unsigned)&PORTB*8+0;/*	INTCON bits	*/static bit	GIE	@ (unsigned)&INTCON*8+7;static bit	EEIE	@ (unsigned)&INTCON*8+6;static bit	T0IE	@ (unsigned)&INTCON*8+5;static bit	INTE	@ (unsigned)&INTCON*8+4;static bit	RBIE	@ (unsigned)&INTCON*8+3;static bit	T0IF	@ (unsigned)&INTCON*8+2;static bit	INTF	@ (unsigned)&INTCON*8+1;static bit	RBIF	@ (unsigned)&INTCON*8+0;/*	OPTION bits	*/static bank1 bit	RBPU	@ (unsigned)&OPTION*8+7;static bank1 bit	INTEDG	@ (unsigned)&OPTION*8+6;static bank1 bit	T0CS	@ (unsigned)&OPTION*8+5;static bank1 bit	T0SE	@ (unsigned)&OPTION*8+4;static bank1 bit	PSA	@ (unsigned)&OPTION*8+3;static bank1 bit	PS2	@ (unsigned)&OPTION*8+2;static bank1 bit	PS1	@ (unsigned)&OPTION*8+1;static bank1 bit	PS0	@ (unsigned)&OPTION*8+0;/*      TRISA bits      */static bank1 bit        TRISA4  @ (unsigned)&TRISA*8+4;static bank1 bit        TRISA3  @ (unsigned)&TRISA*8+3;static bank1 bit        TRISA2  @ (unsigned)&TRISA*8+2;static bank1 bit        TRISA1  @ (unsigned)&TRISA*8+1;static bank1 bit        TRISA0  @ (unsigned)&TRISA*8+0;/*      TRISB bits      */static bank1 bit        TRISB7  @ (unsigned)&TRISB*8+7;static bank1 bit        TRISB6  @ (unsigned)&TRISB*8+6;static bank1 bit        TRISB5  @ (unsigned)&TRISB*8+5;static bank1 bit        TRISB4  @ (unsigned)&TRISB*8+4;static bank1 bit        TRISB3  @ (unsigned)&TRISB*8+3;static bank1 bit        TRISB2  @ (unsigned)&TRISB*8+2;static bank1 bit        TRISB1  @ (unsigned)&TRISB*8+1;static bank1 bit        TRISB0  @ (unsigned)&TRISB*8+0;/*	EECON1 bits	*/static bank1 bit	EEIF	@ (unsigned)&EECON1*8+4;static bank1 bit	WRERR	@ (unsigned)&EECON1*8+3;static bank1 bit	WREN	@ (unsigned)&EECON1*8+2;static bank1 bit	WR	@ (unsigned)&EECON1*8+1;static bank1 bit	RD	@ (unsigned)&EECON1*8+0;#define CONFIG_ADDR	0x2007#define FOSC0		0x01#define FOSC1		0x02#define WDTE		0x04#define PWRTE		0x08

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -