CONTENTS

 

4.5.3 High impedance control ............................................................................

34

 

4.5.4 Special output ............................................................................................

34

 

4.5.5 I/O memory of output ports .......................................................................

37

 

4.5.6 Programming notes ...................................................................................

40

4.6 I/O Ports (P00–P03, P10–P13, P20–P23 and P30–P33) ..........................

41

 

4.6.1 Configuration of I/O ports ........................................................................

41

 

4.6.2 Mask option ...............................................................................................

42

 

4.6.3 I/O control registers and input/output mode ............................................

42

 

4.6.4 Pull-up during input mode ........................................................................

42

 

4.6.5 Special outputs (CL, FR) ...........................................................................

43

 

4.6.6 I/O memory of I/O ports ............................................................................

44

 

4.6.7 Programming notes ...................................................................................

48

4.7 LCD Driver (COM0–COM16, SEG0–SEG39) ...........................................

49

 

4.7.1 Configuration of LCD driver ....................................................................

49

 

4.7.2 Mask option ...............................................................................................

49

 

4.7.3 Power supply for LCD driving ..................................................................

49

 

4.7.4 LCD display control (ON/OFF) and switching of duty ............................

49

 

4.7.5 Display memory .........................................................................................

51

 

4.7.6 LCD contrast adjustment ..........................................................................

53

 

4.7.7 I/O memory of LCD driver ........................................................................

54

 

4.7.8 Programming notes ...................................................................................

56

4.8

Clock Timer ..................................................................................................

57

 

4.8.1 Configuration of clock timer .....................................................................

57

 

4.8.2 Data reading and hold function ................................................................

57

 

4.8.3 Interrupt function ......................................................................................

58

 

4.8.4 I/O memory of clock timer ........................................................................

59

 

4.8.5 Programming notes ...................................................................................

60

4.9

Stopwatch Timer ..........................................................................................

61

 

4.9.1 Configuration of stopwatch timer .............................................................

61

 

4.9.2 Count-up pattern .......................................................................................

61

 

4.9.3 Interrupt function ......................................................................................

62

 

4.9.4 I/O memory of stopwatch timer ................................................................

63

 

4.9.5 Programming notes ...................................................................................

64

4.10 Programmable Timer ...................................................................................

65

 

4.10.1 Configuration of programmable timer ...................................................

65

 

4.10.2 Setting of initial value and counting down .............................................

66

 

4.10.3 Counter mode ..........................................................................................

67

 

4.10.4 Setting of input clock in timer mode .......................................................

68

 

4.10.5 Interrupt function ....................................................................................

69

 

4.10.6 Setting of TOUT output ...........................................................................

69

 

4.10.7 Transfer rate setting for serial interface ................................................

70

 

4.10.8 I/O memory of programmable timer .......................................................

71

 

4.10.9 Programming notes .................................................................................

76

4.11

Serial Interface ............................................................................................

77

 

4.11.1 Configuration of serial interface ............................................................

77

 

4.11.2 Mask option .............................................................................................

78

 

4.11.3 Transfer modes ........................................................................................

78

 

4.11.4 Clock source ............................................................................................

80

 

4.11.5 Transmit-receive control .........................................................................

81

 

4.11.6 Operation of clock synchronous transfer ................................................

82

 

4.11.7 Operation of asynchronous transfer .......................................................

86

 

4.11.8 Interrupt function ....................................................................................

90

 

4.11.9 I/O memory of serial interface ................................................................

92

 

4.11.10 Programming notes ...............................................................................

99

4.12 Sound Generator .........................................................................................

100

 

4.12.1 Configuration of sound generator .........................................................

100

 

4.12.2 Buzzer output circuit ..............................................................................

100

ii

EPSON

S1C63558 TECHNICAL MANUAL