/* AUTO_KR.h * Copyright (c) 1991 Intel Corporation, ALL RIGHTS RESERVED. * * AUTO_KR.h - declarations for 80C196KR SFRs * These SFRs are accessed via their absolute addresses. * These symbols correspond with the register names as defined in * the Automotive 8XC196KR User's Guide and Data Sheet. */ #ifndef _auto_krh #define _auto_krh /* The following SFRs are defined as macros to solve the name clash problem */ /* of having the same public name in the library with multiple locations. */ /* You still reference the SFR by its published name, but internally it has */ /* a different name, which is unique. */ #define timer1 timer1_kr #define timer2 timer2_kr #define ad_time ad_time_kr #define ad_command ad_command_kr extern volatile register unsigned short r0; /* at 0x00: r zero */ extern volatile register unsigned short ptssel; /* at 0x04: r/w */ extern volatile register unsigned short ptssrv; /* at 0x06: r/w */ extern volatile register unsigned char int_mask; /* at 0x08: r/w */ extern volatile register unsigned char int_pending;/* at 0x09: r/w */ extern volatile register unsigned char watchdog; /* at 0x0a: w wd timer*/ extern volatile register unsigned char ipend1; /* at 0x12: r/w */ extern volatile register unsigned char imask1; /* at 0x13: r/w */ extern volatile register unsigned char wsr; /* at 0x14: r/w */ void enable(void); void disable(void); /****************************************************************************/ /* */ /* Additional C96.LIB functions supported by the 80C196 only */ /* */ /****************************************************************************/ void power_down(void); void idle(void); void enable_pts(void); void disable_pts(void); /****************************************************************************/ /* */ /* Additional SFRs of the 80C196KR */ /* */ /****************************************************************************/ extern volatile register unsigned short zero_reg; extern volatile unsigned char usfr; extern volatile unsigned char p0pin; extern volatile unsigned char p1pin; extern volatile unsigned char p1reg; extern volatile unsigned char p1io; extern volatile unsigned char p1ssel; extern volatile unsigned char p2pin; extern volatile unsigned char p2reg; extern volatile unsigned char p2io; extern volatile unsigned char p2ssel; extern volatile unsigned char p3pin; extern volatile unsigned char p3reg; extern volatile unsigned char p4pin; extern volatile unsigned char p4reg; extern volatile unsigned char p5pin; extern volatile unsigned char p5reg; extern volatile unsigned char p5io; extern volatile unsigned char p5ssel; extern volatile unsigned char p6pin; extern volatile unsigned char p6reg; extern volatile unsigned char p6io; extern volatile unsigned char p6ssel; extern volatile unsigned char epaipv; extern volatile unsigned short epa_pend; extern volatile unsigned short epa_pend1; extern volatile unsigned short epa_mask; extern volatile unsigned short epa_mask1; extern volatile unsigned short epa_time9; extern volatile unsigned short epa_control9; extern volatile unsigned short epa_time8; extern volatile unsigned short epa_control8; extern volatile unsigned short epa_time7; extern volatile unsigned short epa_control7; extern volatile unsigned short epa_time6; extern volatile unsigned short epa_control6; extern volatile unsigned short epa_time5; extern volatile unsigned short epa_control5; extern volatile unsigned short epa_time4; extern volatile unsigned short epa_control4; extern volatile unsigned short epa_time3; extern volatile unsigned short epa_control3; extern volatile unsigned short epa_time2; extern volatile unsigned short epa_control2; extern volatile unsigned short epa_time1; extern volatile unsigned short epa_control1; extern volatile unsigned short epa_time0; extern volatile unsigned short epa_control0; extern volatile unsigned short comp_time1; extern volatile unsigned short comp_control1; extern volatile unsigned short comp_time0; extern volatile unsigned short comp_control0; extern volatile unsigned short timer1_kr; extern volatile unsigned short timer2_kr; extern volatile unsigned char timer1_control; extern volatile unsigned char timer2_control; extern volatile unsigned char ad_time_kr; extern volatile unsigned char ad_test; extern volatile unsigned short ad_command_kr; extern volatile unsigned short ad_result; extern volatile unsigned char sp_control; extern volatile unsigned short sp_baud; extern volatile unsigned char sp_status; extern volatile unsigned char sbuf_tx; extern volatile unsigned char sbuf_rx; extern volatile unsigned char ssio_baud; extern volatile unsigned char ssio_stcr1; extern volatile unsigned char ssio_stb1; extern volatile unsigned char ssio_stcr0; extern volatile unsigned char ssio_stb0; extern volatile unsigned char slpfunreg; extern volatile unsigned char slpcmd; extern volatile unsigned char slpstat; #endif /* _auto_krh */