1 /*-------------------------------------------------------------------------
2 Register Declarations for the Intel 8052 Processor
4 Written By - Bela Torok / bela.torok@kssg.ch (July 2000)
6 This program is free software; you can redistribute it and/or modify it
7 under the terms of the GNU General Public License as published by the
8 Free Software Foundation; either version 2, or (at your option) any
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20 In other words, you are welcome to use, share and improve this program.
21 You are forbidden to forbid anyone else to use, share and improve
22 what you give them. Help stamp out software-hoarding!
23 -------------------------------------------------------------------------*/
28 #include <8051.h> /* load difinitions for the 8051 core */
34 /* define 8052 specific registers only */
37 __sfr __at 0xC8 T2CON ;
40 __sfr __at 0xCA RCAP2L ;
41 __sfr __at 0xCB RCAP2H ;
46 __sbit __at 0xAD ET2 ; /* Enable timer2 interrupt */
49 __sbit __at 0xC8 T2CON_0 ;
50 __sbit __at 0xC9 T2CON_1 ;
51 __sbit __at 0xCA T2CON_2 ;
52 __sbit __at 0xCB T2CON_3 ;
53 __sbit __at 0xCC T2CON_4 ;
54 __sbit __at 0xCD T2CON_5 ;
55 __sbit __at 0xCE T2CON_6 ;
56 __sbit __at 0xCF T2CON_7 ;
58 __sbit __at 0xC8 CP_RL2 ;
59 __sbit __at 0xC9 C_T2 ;
60 __sbit __at 0xCA TR2 ;
61 __sbit __at 0xCB EXEN2 ;
62 __sbit __at 0xCC TCLK ;
63 __sbit __at 0xCD RCLK ;
64 __sbit __at 0xCE EXF2 ;
65 __sbit __at 0xCF TF2 ;