Lcd_init (), E 23) – Maxim Integrated 73S12xxF Software User Manual
Page 23
![background image](/manuals/698458/23/background.png)
UG_12xxF_016
73S12xxF Software User Guide
Rev. 1.50
23
EVENT_VDDF
0x00000400
EVENT_I2C
0x00000800
EVENT_ANALOG
0x00001000
EVENT_USR0
0x00002000
EVENT_USR1
0x00004000
EVENT USR2
0x00008000
EVENT_USR3
0x00010000
EVENT_ES
0x00020000
ExitOn: Output parameter
If KEY_ERR_SMARTCARD_xxx return code, it specifies which SmartCard event
occurred. Bit[n] corresponds to ICC[n]. If KEY_ERR_EVENT, it specifies which
EVENT occurred.
KeyCode: Output parameter
Specifies the KeyCode that was pressed. The KeyCode is equal to
((row-1) * KeypadCols) + (col-1), where column ranges from 1 to KeypadCols and
row ranges from 1 to KeypadRows.
Return Codes
KEY_OK
Successful operation: a valid key was pressed.
KEY_ERR_TIMEOUT
TimeOut error.
KEY_ERR_SMARTCARD_INSERTED
SmartCard insertion detected.
KEY_ERR_SMARTCARD_REMOVED
SmartCard removal detected.
KEY_ERR_EVENT
ScanOrder can be any permutation of the values 0,1,2,3 and 4. If an unscrambled order is
desired, set ScanOrder = 0x4688. The scrambling algorithm is handled by the caller. If the
event was a Smart Card event exit, use
to discover which card caused the exit.
4.2.2 LCD Driver API – Available with all 73S12xxF Devices
The LCD interface supports a generic external LCD controller and uses USR I/O that is accessed by the
LCD driver API. The LCD calls manage a generic 7-bit (4-bit data bus) interface to the external LCD
controller. For the 73S1215F Evaluation Board, where the MDL-16265 LCD is used, USR pins 0-3 are
used for the 4-bit data bus, USR pins 4, 5 and 6 are used for E, RW and RS, respectively).
The USR IO pins can be used for several different features such as LCD, I2C addressing for external
slots and a Serial RS232 interface to a Windows XP host depending on the TSC evaluation board and
the application firmware being used. Care must be taken by the application to make sure there is no
conflicting usage. The LCD API includes:
•
(page 23)
•
(page 24)
•
(page 24)
•
(page 24)
LCD_Init ()
Purpose
Initialize the LCD interface. After initialization the Display will be ON and cleared. A
block cursor will be at the home position.
Synopsis
Void LCD_Init ( void );
Parameters
None.
Return Codes None.