
HT80C51 User Manual
Table of Contents
Handshake Solutions
© Philips Electronics N.V. 2005
Page 3 of 132
Table of Contents
1.
Introduction to HT80C51 ............................................................................................................... 5
1.1.
Compatibility ..................................................................................................................... 5
1.2.
Modules.............................................................................................................................. 6
2.
Memory Organization .................................................................................................................... 9
2.1.
Memory Map ......................................................................................................................9
2.2.
Accessing Program Memory ......................................................................................... 10
2.3.
Accessing External Data Memory ................................................................................. 10
2.4.
Internal Data Memory: Direct and Indirect Address Area........................................... 11
2.5.
Special Function Registers............................................................................................ 13
2.5.1.
Accumulator ACC .............................................................................................. 14
2.5.2.
Register B.......................................................................................................... 14
2.5.3.
Program Status Word PSW............................................................................... 14
2.5.4.
Stack Pointer SP ............................................................................................... 14
2.5.5.
Data Pointer DPTR DPH DPL ........................................................................... 15
2.5.6.
Power Saving Modes PCON ............................................................................. 15
2.5.7.
External RAM Page XRAMP (option HT80C51_CPU_XRAMP)....................... 17
2.6.
MOVC protection (option HT80C51_CPU_MOVCP)..................................................... 17
3.
Reset ............................................................................................................................................. 18
4.
Clocks ........................................................................................................................................... 19
4.1.
CPU Cock......................................................................................................................... 19
4.1.1.
Clockless (Aynchronous) Cnfiguration .............................................................. 19
4.1.2.
Clock synchronization (Option HT80C51_CPU_SYNC) ................................... 19
4.2.
Peripheral clocks ............................................................................................................ 19
5.
Peripheral Modules...................................................................................................................... 20
5.1.
Interrupt Controller ......................................................................................................... 20
5.1.1.
Options .............................................................................................................. 20
5.1.2.
Special function registers (IEN0 IEN1 IP0 IP1) ................................................. 20
5.1.3.
Operation ........................................................................................................... 22
5.1.4.
Setting up the Interrupt Controller ..................................................................... 25
5.2.
Timers 0 and 1................................................................................................................. 26
5.2.1.
Options .............................................................................................................. 26
5.2.2.
Special function registers (TMOD TCON TL0 TL1 TH0 TH1)........................... 26
5.2.3.
Interrupts............................................................................................................ 28
5.2.4.
Operation ........................................................................................................... 29
5.2.5.
Setting up the Timers ........................................................................................ 31
5.3.
Standard Serial Interface (SIO0).................................................................................... 33
5.3.1.
Options .............................................................................................................. 33
5.3.2.
Special function registers (SCON SBUF SMOD) .............................................. 33