Stepper-Motor-Control  v3.0.0
System on a Chip 2014 - Group 04
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
lcdDOGM162.h File Reference

Header for Initialization program for LCD DOGM162. Qsys uses Altera LCD component "altera_avalon_lcd_16207". More...

#include <stdint.h>
Include dependency graph for lcdDOGM162.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define LCD_CURSOR_OFF   (0x00)
 Code for Cursor off.
 
#define LCD_CURSOR_ON   (0x02)
 Code for Cursor on.
 
#define LCD_BLINK   (0x01)
 Code for Cursor blink.
 
#define DATA8_LINES2_TABLE0   (0x38)
 Function Set: 8 bit data, 2 lines, instruction table 0.
 
#define DATA8_LINES2_TABLE1   (0x39)
 Function Set: 8 bit data, 2 lines, instruction table 1.
 
#define BIAS1_2LINES2   (0x14)
 Bias Set: Bias = 1/5, 2 lines.
 
#define ICON0_BOOSTER1_CONTRAST_C4_0_C5_1   (0x55)
 Power Control: Icon Display off, Booster on, Internal Contrast C5 off, C4 on.
 
#define FOLLOWER1_RAB6   (0x6E)
 Follower Control: Follower on, Rab = 6.
 
#define CONTRAST2   (0x72)
 Contrast Set: Contrast = 2.
 
#define DISPLAY1_CURSOR1_POS0   (0x0C)
 Display Set: Display on, Cursor on, Cursor Pos off.
 
#define DISPLAY_CLEAR   (0x01)
 Display Clear.
 
#define DDRAM_INC_SHIFT0   (0x06)
 Entry Mode Set: Increment DDRAM-Addr, ShiftEntireDisplay off.
 

Functions

void DOGM162lcd_init (uint32_t lcdBase)
 Initialization function of LCD DOGM162B-A. More...
 
void DOGM162lcd_setCursorMode (uint32_t lcdBase, int32_t cursorMode)
 function changes cursor mode More...
 

Detailed Description

Header for Initialization program for LCD DOGM162. Qsys uses Altera LCD component "altera_avalon_lcd_16207".

Author
Johann Mayr
Prof. Dr.-Ing. Ferdinand Englberger
Version
V2.0.1
Date
05.11.2014
Remarks
This initialization function extends the standard initialization by DOGM162 specific initialization. This function has to be called before the display can be used.
History:

V2.0.1 05.11.2014 Michael Riedel

  • added functions for better lcd-usage from script (p. 1-122)

V2.0.0 Ferdinand Englberger

  • comments in english
  • Remove all functions, but initialization function
  • uses component register interface, instead of own access function.
  • uses a base parameter to identify lcd.

V1.1 25.06.2012 Johann Mayr

  • Initial version

V1.0 20.12.2011 Johann Mayr

  • Initial version

Definition in file lcdDOGM162.h.

Function Documentation

void DOGM162lcd_init ( uint32_t  lcdBase)

Initialization function of LCD DOGM162B-A.

This initialization function extends the standard initialization by DOGM162 specific initialization. This function has to be called before the display can be used.

Parameters
lcdBase: Base address of DOGM162 LCD (from system.h)
Return values
None

Definition at line 39 of file lcdDOGM162.c.

void DOGM162lcd_setCursorMode ( uint32_t  lcdBase,
int32_t  cursorMode 
)

function changes cursor mode

This function requires an extra wait period

Parameters
lcdBase: Base address of LCD (from system.h)
cursorModenew Cursor mode, can be
  • LCD_CURSOR_OFF
  • LCD_CURSOR_ON
  • LCD_BLINK
Return values
none

Definition at line 64 of file lcdDOGM162.c.