ir196.h

来自「以ST公司CPU为核心的彩色电视机的完整源程序。」· C头文件 代码 · 共 18 行

H
18
字号
#ifndef _ir196head_
#define _ir196head_

#define IR_PG           ((unsigned char)43)             /* register page: 43 */

register volatile unsigned char IRPR	asm ("R248");   /* ir plus register */

register volatile unsigned char IRSCR	asm ("R250");   /* ir/sync control register */
#define IRSCR_IRDIS     ((unsigned char)0x10)           /* external interrupt source */
#define IRSCR_FLSEL     ((unsigned char)0x08)           /* spike filter puls width selection */

#define IRSCR_PMASK	    ((unsigned char)0x06)           /* edge selection for the duration measurement */
#define IRSCR_PORN      ((unsigned char)0x06)           /* p&n trans. of IR or count to 255 */
#define IRSCR_POSED     ((unsigned char)0x04)           /* only p trans. of IR or count to 255 */
#define IRSCR_NEGED     ((unsigned char)0x02)           /* only n trans. of IR or count to 255 */
#define IRSCR_NONE      ((unsigned char)0x00)           /* only count to 255 */

#endif

⌨️ 快捷键说明

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