1 /*-------------------------------------------------------------------------
2 Register Declarations for the Oki MSM80C154S and MSM83C154S
4 Written By - Matthias Arndt / marndt@asmsoftware.de (July 2005)
6 This library is free software; you can redistribute it and/or
7 modify it under the terms of the GNU Lesser General Public
8 License as published by the Free Software Foundation; either
9 version 2.1 of the License, or (at your option) any later version.
11 This library 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 GNU
14 Lesser General Public License for more details.
16 You should have received a copy of the GNU Lesser General Public
17 License along with this library; if not, write to the Free Software
18 Foundation, Inc., 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 <8052.h> /* load definitions for the 8052 core */
35 __sfr __at (0xf8) IOCON; /* IOCON register */
38 __sbit __at (0xf8) ALF; /* floating status on power down control */
39 __sbit __at (0xf9) P1HZ; /* P1 high impedance input control */
40 __sbit __at (0xfa) P2HZ; /* P2 high impedance input control */
41 __sbit __at (0xfb) P3HZ; /* P3 high impedance input control */
42 __sbit __at (0xfc) IZC; /* 10kO pull-up resistor control */
43 __sbit __at (0xfd) SERR; /* Serial port reception flag */
44 __sbit __at (0xfe) T32; /* interconnect T0 and T1 to 32bit timer/counter */
46 /* Bits in IP (0xb8) */
47 __sbit __at (0xbf) PCT; /* Priority interrupt circuit control bit */
49 /* Bits in PCON (0x87) */
50 #define RPD 0x20 /* Bit used to specify cancellation of CPU power down mode */
51 #define HPD 0x40 /* The hard power down setting mode is enabled when this bit is set to "1". */