UM10147_2
© NXP B.V. 2008. All rights reserved.
User manual
Rev. 02 — 28 April 2008
130 of 134
NXP Semiconductors
UM10147
P89LPC952/954 User manual
20. Tables
Pin description . . . . . . . . . . . . . . . . . . . . . . . . . .5
Special function registers . . . . . . . . . . . . . . . . .12
Extended special function registers . . . . . . . . .18
Data RAM arrangement . . . . . . . . . . . . . . . . . .20
Result registers and conversion results for fixed
channel, continuous conversion mode . . . . . .28
Result registers and conversion results for dual
channel, continuous conversion mode . . . . . .29
Table 10. Conversion mode bits . . . . . . . . . . . . . . . . . . .29
Table 11. A/D Control register 0 (ADCON0 - address 97h)
bit allocation . . . . . . . . . . . . . . . . . . . . . . . . . . .31
Table 12. A/D Control register 0 (ADCON0 - address 97h)
bit description . . . . . . . . . . . . . . . . . . . . . . . . .31
Table 13. A/D Mode register A (ADMODA - address 0C0h)
bit allocation . . . . . . . . . . . . . . . . . . . . . . . . . . .32
Table 14. A/D Mode register A (ADMODA - address 0C0h)
bit description . . . . . . . . . . . . . . . . . . . . . . . . .32
Table 15. A/D Mode register B (ADMODB - address A1h) bit
allocation . . . . . . . . . . . . . . . . . . . . . . . . . . . . .32
Table 16. A/D Mode register B (ADMODB - address A1h) bit
description . . . . . . . . . . . . . . . . . . . . . . . . . . . .32
Table 17. A/D Input select (ADINS - address A3h) bit
allocation . . . . . . . . . . . . . . . . . . . . . . . . . . . . .33
Table 18. A/D Input select (ADINS - address A3h) bit
description . . . . . . . . . . . . . . . . . . . . . . . . . . . .33
Table 19. Boundary status register 0 (BNDSTA0 - address
FFEDh) bit allocation . . . . . . . . . . . . . . . . . . . .33
Table 20. Boundary status register 0 (BNDSTA0 - address
FFEDh) bit description . . . . . . . . . . . . . . . . . . .33
Table 21. Interrupt priority level . . . . . . . . . . . . . . . . . . . .34
Table 22. Summary of interrupts . . . . . . . . . . . . . . . . . . .35
Table 23. Number of I/O pins available . . . . . . . . . . . . . .36
Table 24. Port output configuration settings . . . . . . . . . .37
Table 25. Port output configuration . . . . . . . . . . . . . . . . .41
Table 26. Brownout options
. . . . . . . . . . . . . . . . . . . . .43
Table 27. Power reduction modes . . . . . . . . . . . . . . . . . .44
Table 28. Power Control register (PCON - address 87h) bit
allocation . . . . . . . . . . . . . . . . . . . . . . . . . . . . .45
Table 29. Power Control register (PCON - address 87h) bit
description . . . . . . . . . . . . . . . . . . . . . . . . . . . .45
Table 30. Power Control register A (PCONA - address B5h)
bit allocation . . . . . . . . . . . . . . . . . . . . . . . . . . .45
Table 31. Power Control register A (PCONA - address B5h)
bit description . . . . . . . . . . . . . . . . . . . . . . . . .45
Table 32. Reset pin modes. . . . . . . . . . . . . . . . . . . . . . . .46
Table 33. Reset Sources register (RSTSRC - address DFh)
bit allocation . . . . . . . . . . . . . . . . . . . . . . . . . . .47
Table 34. Reset Sources register (RSTSRC - address DFh)
bit description . . . . . . . . . . . . . . . . . . . . . . . . .47
Table 35. Timer/Counter Mode register (TMOD - address
89h) bit allocation . . . . . . . . . . . . . . . . . . . . . . 48
Table 36. Timer/Counter Mode register (TMOD - address
89h) bit description . . . . . . . . . . . . . . . . . . . . . 48
Table 37. Timer/Counter Auxiliary Mode register (TAMOD -
address 8Fh) bit allocation . . . . . . . . . . . . . . . 49
Table 38. Timer/Counter Auxiliary Mode register (TAMOD -
address 8Fh) bit description . . . . . . . . . . . . . . 49
Table 39. Timer/Counter Control register (TCON) - address
88h) bit allocation . . . . . . . . . . . . . . . . . . . . . . 51
Table 40. Timer/Counter Control register (TCON - address
88h) bit description . . . . . . . . . . . . . . . . . . . . . 51
Table 41. Real-time Clock/System Timer clock sources . 54
Table 42. Real-time Clock Control register (RTCCON -
address D1h) bit allocation . . . . . . . . . . . . . . . 55
Table 43. Real-time Clock Control register (RTCCON -
address D1h) bit description . . . . . . . . . . . . . . 56
Table 44. UART SFR addresses . . . . . . . . . . . . . . . . . . . 57
Table 45. UART baud rate generation . . . . . . . . . . . . . . 58
Table 46. Baud Rate Generator Control register
(BRGCON_0 - address BDh) bit allocation . . . 58
Table 47. Baud Rate Generator Control register (BRGCON
- address BDh) bit description . . . . . . . . . . . . . 58
Table 48. Baud Rate Generator Control register
(BRGCON_1 - address FFB3h) bit allocation . 58
Table 49. Baud Rate Generator Control register
(BRGCON_1 - address FFB3h) bit description 58
Table 50. Serial Port 0 Control register (S0CON - address
98h) bit allocation . . . . . . . . . . . . . . . . . . . . . . 59
Table 51. Serial Port 0 Control register (S0CON - address
98h) bit description . . . . . . . . . . . . . . . . . . . . . 59
Table 52. Serial Port 1 Control register (S1CON - address
B5h) bit allocation . . . . . . . . . . . . . . . . . . . . . . 60
Table 53. Serial Port 1 Control register (S1CON - address
B5h) bit description . . . . . . . . . . . . . . . . . . . . . 60
BAh) bit allocation . . . . . . . . . . . . . . . . . . . . . . 61
Table 56. Serial Port 0 Status register (S0STAT - address
BAh) bit description . . . . . . . . . . . . . . . . . . . . . 61
Table 57. Serial Port 1 Status register (S1STAT - address
D4h) bit allocation . . . . . . . . . . . . . . . . . . . . . . 62
Table 58. Serial Port 1 Status register (S1STAT - address
D4h) bit description . . . . . . . . . . . . . . . . . . . . . 62
Table 59. FE_n and RI_n when SM2_n = 1 in Modes 2 and
3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65
Table 60. Slave 0/1 examples . . . . . . . . . . . . . . . . . . . . . 68
Table 61. Slave 0/1/2 examples . . . . . . . . . . . . . . . . . . . 68
Table 62. I
2
C data register (I2DAT - address DAh) bit
allocation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70
2
C slave address register (I2ADR - address DBh)
bit allocation . . . . . . . . . . . . . . . . . . . . . . . . . . 70
2
C slave address register (I2ADR - address DBh)
bit description. . . . . . . . . . . . . . . . . . . . . . . . . . 70
2
C Control register (I2CON - address D8h) bit
allocation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71