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

📄 iom169.h

📁 一个LCD驱动程序
💻 H
📖 第 1 页 / 共 2 页
字号:

/* TIMSK0 bit organization */
#define OCIE0A      1				
#define TOIE0       0

/* PCMSK1 bit organization */
#define PCINT15     7
#define PCINT14     6
#define PCINT13     5
#define PCINT12     4
#define PCINT11     3
#define PCINT10     2
#define PCINT9      1
#define PCINT8      0

/* PCMSK0 bit organization */
#define PCINT7      7
#define PCINT6      6
#define PCINT5      5
#define PCINT4      4
#define PCINT3      3
#define PCINT2      2
#define PCINT1      1
#define PCINT0      0

/* EICRA bit organization */
#define ISC01       1
#define ISC00       0

/* CLKPR bit organization */
#define CLKPCE      7
#define CLKPS3      3
#define CLKPS2      2
#define CLKPS1      1
#define CLKPS0      0

/* WDTCR bit organization */
#define WDCE        4
#define WDE         3
#define WDP2        2
#define WDP1        1
#define WDP0        0

/* SREG  bit organization */
#define I           7
#define T           6
#define H           5
#define S           4
#define V           3
#define N           2
#define Z           1
#define C           0

/* SPH bit organization */
#define SP15        7
#define SP14        6
#define SP13        5
#define SP12        4
#define SP11        3
#define SP10        2
#define SP9         1
#define SP8         0

/* SPL bit organization */
#define SP7         7
#define SP6         6
#define SP5         5
#define SP4         4
#define SP3         3
#define SP2         2
#define SP1         1
#define SP0         0

/* SPMCSR bit organization */
#define SPMIE       7
#define RWWSB       6
#define RWWSRE      4
#define BLBSET      3
#define PGWRT       2
#define PGERS       1
#define SPMEN       0

/* MCUCR bit organization */
#define JTD         7
#define PUD         4
#define IVSEL       1
#define IVCE        0

/* MCUSR bit organization */
#define JTRF        4
#define WDRF        3
#define BORF        2
#define EXTRF       1
#define PORF        0

/* SMCR bit organization */
#define SM2         3
#define SM1         2
#define SM0         1
#define SE          0

/* OCDR bit organization */
#define IDRD        7			
#define OCDR7       7			
#define OCDR6       6
#define OCDR5       5
#define OCDR4       4
#define OCDR3       3
#define OCDR2       2
#define OCDR1       1
#define OCDR0       0

/* ACSR bit organization */
#define ACD         7
#define ACBG        6
#define ACO         5
#define ACI         4
#define ACIE        3
#define ACIC        2
#define ACIS1       1
#define ACIS0       0

/* SPSR bit organization */
#define SPIF        7
#define WCOL        6
#define SPI2X       0

/* SPCR bit organization */
#define SPIE        7
#define SPE         6
#define DORD        5
#define MSTR        4
#define CPOL        3
#define CPHA        2
#define SPR1        1
#define SPR0        0

/* TCCR0A bit organization */
#define FOC0A       7
#define WGM00       6
#define COM0A1      5
#define COM0A0      4
#define WGM01       3
#define CS02        2
#define CS01        1
#define CS00        0

/* GTCCR bit organization */
#define TSM         7
#define PSR2        1
#define PSR10       0

/* EECR bit organization */
#define EERIE       3
#define EEMWE       2
#define EEWE        1
#define EERE        0

/* EIMSK bit organization */
#define PCIE1       7
#define PCIE0       6
#define INT0        0

/* EIFR bit organization */
#define PCIF1       7
#define PCIF0       6
#define INTF0       0

/* TIFR2 bit organization */
#define OCF2A       1
#define TOV2        0

/* TIFR1 bit organization */
#define ICF1        5
#define OCF1B       2
#define OCF1A       1
#define TOV1        0

/* TIFR0 bit organization */
#define OCF0A       1
#define TOV0        0

/* PORTG bit organization */
#define PORTG5      5
#define PORTG4      4
#define PORTG3      3
#define PORTG2      2
#define PORTG1      1
#define PORTG0      0

/* DDRG bit organization */
#define DDG4        4
#define DDG3        3
#define DDG2        2
#define DDG1        1
#define DDG0        0

/* PING bit organization */
#define PING5       5
#define PING4       4
#define PING3       3
#define PING2       2
#define PING1       1
#define PING0       0

/* PORTF bit organization */
#define PORTF7      7
#define PORTF6      6
#define PORTF5      5
#define PORTF4      4
#define PORTF3      3
#define PORTF2      2
#define PORTF1      1
#define PORTF0      0

/* DDRF bit organization */  
#define DDF7        7
#define DDF6        6
#define DDF5        5
#define DDF4        4
#define DDF3        3
#define DDF2        2
#define DDF1        1
#define DDF0        0

/* PINF bit organization */
#define PINF7       7
#define PINF6       6
#define PINF5       5
#define PINF4       4
#define PINF3       3
#define PINF2       2
#define PINF1       1
#define PINF0       0

/* PORTE bit organization */
#define PORTE7      7
#define PORTE6      6
#define PORTE5      5
#define PORTE4      4
#define PORTE3      3
#define PORTE2      2
#define PORTE1      1
#define PORTE0      0

/* DDRE bit organization */
#define DDE7        7
#define DDE6        6
#define DDE5        5
#define DDE4        4
#define DDE3        3
#define DDE2        2
#define DDE1        1
#define DDE0        0

/* PINE bit organization */
#define PINE7       7
#define PINE6       6
#define PINE5       5
#define PINE4       4
#define PINE3       3
#define PINE2       2
#define PINE1       1
#define PINE0       0

/* PORTD bit organization */
#define PORTD7      7
#define PORTD6      6
#define PORTD5      5
#define PORTD4      4
#define PORTD3      3
#define PORTD2      2
#define PORTD1      1
#define PORTD0      0

/* DDRD bit organization */
#define DDD7        7
#define DDD6        6
#define DDD5        5
#define DDD4        4
#define DDD3        3
#define DDD2        2
#define DDD1        1
#define DDD0        0

/* PIND bit organization */
#define PIND7       7
#define PIND6       6
#define PIND5       5
#define PIND4       4
#define PIND3       3
#define PIND2       2
#define PIND1       1
#define PIND0       0

/* PORTC bit organization */
#define PORTC7      7
#define PORTC6      6
#define PORTC5      5
#define PORTC4      4
#define PORTC3      3
#define PORTC2      2
#define PORTC1      1
#define PORTC0      0

/* DDRC bit organization */  
#define DDC7        7
#define DDC6        6
#define DDC5        5
#define DDC4        4
#define DDC3        3
#define DDC2        2
#define DDC1        1
#define DDC0        0

/* PINC bit organization */
#define PINC7       7
#define PINC6       6
#define PINC5       5
#define PINC4       4
#define PINC3       3
#define PINC2       2
#define PINC1       1
#define PINC0       0

/* PORTB bit organization */
#define PORTB7      7
#define PORTB6      6
#define PORTB5      5
#define PORTB4      4
#define PORTB3      3
#define PORTB2      2
#define PORTB1      1
#define PORTB0      0

/* DDRB bit organization */
#define DDB7        7
#define DDB6        6
#define DDB5        5
#define DDB4        4
#define DDB3        3
#define DDB2        2
#define DDB1        1
#define DDB0        0

/* PINB bit organization */
#define PINB7       7
#define PINB6       6
#define PINB5       5
#define PINB4       4
#define PINB3       3
#define PINB2       2
#define PINB1       1
#define PINB0       0

/* PORTA bit organization */
#define PORTA7      7
#define PORTA6      6
#define PORTA5      5
#define PORTA4      4
#define PORTA3      3
#define PORTA2      2
#define PORTA1      1
#define PORTA0      0

/* DDRA bit organization */
#define DDA7        7
#define DDA6        6
#define DDA5        5
#define DDA4        4
#define DDA3        3
#define DDA2        2
#define DDA1        1
#define DDA0        0

/* PINA bit organization */
#define PINA7       7
#define PINA6       6
#define PINA5       5
#define PINA4       4
#define PINA3       3
#define PINA2       2
#define PINA1       1
#define PINA0       0


/* Pointer definition */
#define    XL     r26
#define    XH     r27
#define    YL     r28
#define    YH     r29
#define    ZL     r30
#define    ZH     r31

/* Contants */
#define    RAMEND   0x04FF   /*Last On-Chip SRAM location*/
#define    E2END    0x01FF
#define    FLASHEND 0x1FFF

#endif /* ENABLE_BIT_DEFINITIONS */ 
#endif /* __IOM169_H (define part) */
#endif /* __IOM169_H (SFR part) */

⌨️ 快捷键说明

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