LK202-25 rev 3 2
Table of Contents
1. Introduction ....................................................................................................................4
1.1 What it Does...........................................................................................................................................4
1.2 What it Does Not Do .............................................................................................................................4
1.3 Keypad Interface.....................................................................................................................................4
1.4 Setup for Testing....................................................................................................................................4
1.5 Trying Out your LK202-25...................................................................................................................5
1.6 Trying out a Keypad................................................................................................................................6
1.6.1 Here's what to do:........................................................................................................................6
1.7 To Reset the module .............................................................................................................................. 7
2. Connections....................................................................................................................8
2.1 Connector Pinout ...................................................................................................................................8
2.1.1 Power and I2C Connections ........................................................................................................8
2.1.2 RS-232 Communications..........................................................................................................10
2.2 General Purpose Outputs.....................................................................................................................10
3. Displaying Text..............................................................................................................13
3.1 General..................................................................................................................................................13
3.2 The Built-In Character Font.................................................................................................................13
3.3 Writing Text to the Display.................................................................................................................14
3.4 Text Commands....................................................................................................................................14
3.4.1 Auto line wrap on (254 67) (R)................................................................................................14
3.4.2 Auto line wrap off (254 68) (R)...............................................................................................14
3.4.3 Auto scroll on (254 81) (R)......................................................................................................14
3.4.4 Auto scroll off (254 82) (R).....................................................................................................14
3.4.5 Set cursor position (254 71 [column] [row])..........................................................................14
3.4.6 Send cursor home (254 72)......................................................................................................14
3.4.7 Turn on underline cursor (254 74) (R)....................................................................................15
3.4.8 Turn off underline cursor (254 75) (R)...................................................................................15
3.4.9 Turn on block (blinking) cursor (254 83) (R).........................................................................15
3.4.10 Turn off block (blinking) cursor (254 84) (R) ...................................................................15
3.4.11 Cursor left (254 76)..............................................................................................................15
3.4.12 Cursor right (254 77)............................................................................................................15
4. Keypad Interface...........................................................................................................16
4.1 General..................................................................................................................................................16
4.2 Connections..........................................................................................................................................16
4.3 I2C Interface..........................................................................................................................................17
4.4 RS-232 Interface..................................................................................................................................17
4.5 Keypad Commands...............................................................................................................................17
4.5.1 Auto repeat mode on (254 126 [mode]) (R) ...........................................................................17
4.5.2 Auto repeat mode off (254 96) (R)..........................................................................................18
4.5.3 Auto transmit keypresses on (254 65) (R)..............................................................................18
4.5.4 Auto transmit keypresses off (254 79) (R).............................................................................18
4.5.5 Clear key buffer (254 69).........................................................................................................18
4.5.6 Poll keypad (254 38).................................................................................................................18
4.5.7 Set debounce time (254 85 [time]) (R) ...................................................................................18