List of figures
Figure 1. A96G174/A96S174 Block Diagram ........................................................................................ 13
Figure 2. A96G174 20TSSOP Pin Assignment ..................................................................................... 14
Figure 3. A96S174 20TSSOP pin assignment ...................................................................................... 15
Figure 4. A96G174 20SOP Pin Assignment ......................................................................................... 16
Figure 5. A96G174 20QFN Pin Assignment ......................................................................................... 17
Figure 6. A96S174 20QFN Pin Assignment .......................................................................................... 18
Figure 7. A94G174 16SOPN Pin Assignment ....................................................................................... 19
Figure 8. General Purpose I/O Port ...................................................................................................... 23
Figure 9. External Interrupt I/O Port ...................................................................................................... 24
Figure 10. M8051EW Architecture ........................................................................................................ 25
Figure 11. Program Memory Map ......................................................................................................... 31
Figure 12. Data Memory Map ............................................................................................................... 32
Figure 13. Lower 128bytes of RAM ...................................................................................................... 33
Figure 14. XDATA Memory Area ........................................................................................................... 34
Figure 15. Interrupt Group Priority Level ............................................................................................... 56
Figure 16. External Interrupt Description .............................................................................................. 56
Figure 17. Pin Change Interrupt ............................................................................................................ 57
Figure 18. Interrupt Controller Block Diagram ...................................................................................... 58
Figure 19. Interrupt Sequence Flow ...................................................................................................... 60
Figure 20. Effective Timing of Interrupt Enable Register ...................................................................... 61
Figure 21. Effective Timing of Interrupt Flag Register........................................................................... 61
Figure 22. Effective Timing of Multi-Interrupt ........................................................................................ 62
Figure 23. Interrupt Response Timing Diagram .................................................................................... 63
Figure 24. Correspondence between Vector Table Address and the Entry Address of ISR ................. 63
Figure 25. Saving/Restore Process Diagram and Sample Source ....................................................... 63
Figure 26. Timing Chart of Interrupt Acceptance and Interrupt Return Instruction ............................... 64
Figure 27. Clock Generator Block Diagram .......................................................................................... 69
Figure 28. Basic Interval Timer Block Diagram ..................................................................................... 71
Figure 29. Watch Dog Timer Interrupt Timing Waveform ...................................................................... 74
Figure 30. Watch Dog Timer Block Diagram ......................................................................................... 75
Figure 31. 8-bit Timer/Counter Mode for Timer 0 .................................................................................. 79
Figure 32. 8-bit Timer/Counter 0 Example ............................................................................................ 79
Figure 33. 8-bit PWM Mode for Timer 0 ................................................................................................ 80
Figure 34. PWM Output Waveforms in PWM Mode for Timer 0 ........................................................... 81
Figure 35. 8-bit Capture Mode for Timer 0 ............................................................................................ 82
Figure 36. Input Capture Mode Operation for Timer 0 .......................................................................... 83
Figure 37. Express Timer Overflow in Capture Mode ........................................................................... 83
Figure 38. 8-bit Timer 0 Block Diagram ................................................................................................ 84
Figure 39. 16-bit Timer/Counter Mode of Timer 1 ................................................................................. 88
Figure 40. 16-bit Timer/Counter Mode Operation Example .................................................................. 88
Figure 41. 16-bit Capture Mode of Timer 1 ........................................................................................... 89
Figure 42. Input Capture Mode Operation for timer1 ............................................................................ 90
Figure 43. Express Timer Overflow in Capture Mode ........................................................................... 90
Figure 44. 16-bit PPG Mode of Timer 1 ................................................................................................ 91
Figure 45. 16-bit PPG Mode Operation Example ................................................................................. 92
Figure 46. 16-bit Complementary PWM Mode for Timer1 .................................................................... 93
Figure 47. 16-bit Complementary PWM Mode Timing chart for Timer 1 .............................................. 94