beautypg.com

Lcd_command (), Lcd_data_write (), Lcd_data_read () – Maxim Integrated 73S12xxF Software User Manual

Page 24: E 24)

background image

73S12xxF Software User Guide

UG_12xxF_016

24

Rev. 1.50

LCD_Command ()

Purpose

Send command to LCD.


Synopsis

Void LCD_Command ( IN char LcdCmd );


Parameters

LcdCmd: Input parameter
8-bit command to control the LCD. Available commands are:

LCD_CLEAR

Clear display and return cursor to home.

LCD_HOME

Return display and cursor to home

position.
LCD_MODE | LCD_INC

Increment cursor on read/write of display.

LCD_MODE | LCD_INC|LCD_SHIFT Increment cursor and shift display on

read/write of display.

LCD_CTRL | LCD_DON | LCD_CON Display ON and cursor ON (visible).
LCD_CTRL | LCD_DON

Display ON and cursor OFF (invisible).

LCD_CTRL | LCD_BON

Display ON and blinking ON.

LCD_CURSOR

Shift cursor left.

LCD_CURSOR | LCD_RL

Shift cursor right.

LCD_CURSOR | LCD_SC

Shift display left.


Return Codes None.

LCD_Data_Write ()

Purpose

Write data to LCD.


Synopsis

Void LCD_Data_Write ( IN char LcdData );


Parameters

LcdData : Input parameter

8-bit data written to the LCD at the current cursor position.


Return Codes None.

LCD_Data_Read ()

Purpose

Read data from the LCD.


Synopsis

Void LCD_Data_Read ( OUT char *LcdData );


Parameters

LcdData : Output parameter
8-bit data read from the LCD at the current cursor position.


Return Codes None.

4.2.3 LED Driver API – Available with all 73S12xxF Devices

The 73S12xxF provides four LEDs that can be programmed with four levels of output current: 0 mA
(LED_OFF), 2 mA (LED_DIM), 4 mA (LED_NORMAL) and 10 mA (LED_BRIGHT). On the 73S1205F,
only LED0 and LED1 (lower two bits) are available.

The LED Driver API includes:

LED_Config ()

(page 25)

LED_Write ()

(page 25)

LED_Read ()

(page 25)