Image
Image

features

+ 关注

粉丝 1     |     主题 41     |     回帖 463

pic16f877a.h中文注释
2020-8-10 09:56
  • Microchip
  • 19
  • 1353
  原贴链接: https://www.cnblogs.com/wangh0802PositiveANDupward/archive/2012/05/26/2519303.html  
  //* T2CON bits TMR2控制寄存器 */ static volatile bit TOUTPS3 @ (unsigned)&T2CON*8+6; //TMR2后分频选 ...  
  //* T1CON bits TMR1控制寄存器 */ static volatile bit T1CKPS1 @ (unsigned)&T1CON*8+5; //TMR1输入时钟 ...  
  /* PIR2 bits */ static volatile bit CMIF @ (unsigned)&PIR2*8+6; //比较器中断标志位;0:比较器输入没 ...  
  //* PIR1 bits中断标志寄存器PIR1 */ #ifdef __PINS_40 static volatile bit PSPIF @ (unsigned)&PIR1*8+7; ...  
  //* INTCON bits 中断控制寄存器 */ static volatile bit GIE @ (unsigned)&INTCON*8+7; //总中断使能位。 ...  
  /* PORTE bits */ static volatile bit RE2 @ (unsigned)&PORTE*8+2; //RE2 static volatile b ...  
  /* PORTD bits */ #ifdef __PINS_40 static volatile bit RD7 @ (unsigned)&PORTD*8+7 ...  
  /* PORTC bits */ static volatile bit RC7 @ (unsigned)&PORTC*8+7; //RC7 static volatile b ...  
  /* PORTB bits */ static volatile bit RB7 @ (unsigned)&PORTB*8+7; //RB7 static volatile b ...  
  /* PORTA bits */ static volatile bit RA5 @ (unsigned)&PORTA*8+5; //RA5 static volatile b ...  
  //* STATUS bits状态寄存器 */ static volatile bit IRP @ (unsigned)&STATUS*8+7; //寄存器bank选择位 ...  
  /* bank 3 registers */ static volatile unsigned char bank3 EECON1 @ 0x18C; //EEPROM控制寄存器1 stati ...  
  /* bank 2 registers */ static volatile unsigned char bank2 EEDATA @ 0x10C; //EEPROM数据寄存器低字节 ...  
  /* bank 1 registers */ static unsigned char bank1 OPTION @ 0x81; //选择寄存器,用于配置TMR0/WDT预分 ...  
  static unsigned char PCLATH @ 0x0A; //高5位程序计数器 static volatile unsigned char INTCO ...  
  static volatile unsigned char INDF @ 0x00; //间接寻址寄存器 static volatile unsigned char TMR0 @ 0 ...  
  #if defined(_16F874A) || defined(_16F877A) #define __PINS_40 #endif  
  /* * Header file for the Microchip * PIC 16F873A chip * PIC 16F874A chip * PIC 16F876A chip * ...  
PIC 里面关于 __CONFIG( ) 配置位
2020-8-12 20:14
  • Microchip
  • 12
  • 843
  原文链接: https://www.cnblogs.com/wangh0802PositiveANDupward/archive/2012/05/26/2519297.html  
2
3
近期访客