⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 lcd1.c

📁 GCC 做的MOTOROLA 的单片机 振荡程序
💻 C
字号:
/** ###################################################################
**     THIS BEAN MODULE IS GENERATED BY THE TOOL. DO NOT MODIFY IT.
**     Filename  : LCD1.C
**     Project   : LowFreqSG
**     Processor : MC68HC908LV8CFA
**     Beantype  : LCD
**     Version   : Bean 01.050, Driver 01.07, CPU db: 2.89.060
**     Compiler  : CodeWarrior HC08 C Compiler
**     Date/Time : 2006-9-6, 9:29
**     Abstract  :
**         This bean "LCD" implements the Liquid Crystal Display (LCD)
**         driver module. It can drive an LCD which is composed of
**         variable number of frontplanes and backplanes.
**         It can control also contrast and current mode of display.
**     Settings  :
**         LCD device                  : LCD 
**
**         Current Mode                : fast charge  
**         Fast charge period          : 1/32 of period
**
**         Number of used frontplanes  : 19
**         Number of used backplanes   : 4
**
**         High speed mode
**             Base clock              : 256 Hz
**  
**         Contrast                    : 15
**
**         Enable in init. code        : Yes
**
**         High speed mode             : Enabled
**         Low speed mode              : Disabled
**         Slow speed mode             : Disabled
**     Contents  :
**         No public methods
**
**     (c) Copyright UNIS, spol. s r.o. 1997-2006
**     UNIS, spol. s r.o.
**     Jundrovska 33
**     624 00 Brno
**     Czech Republic
**     http      : www.processorexpert.com
**     mail      : info@processorexpert.com
** ###################################################################*/


/* MODULE LCD1. */

#include "LCD1.h"



/*
** ===================================================================
**     Method      :  LCD1_Init (bean LCD)
**
**     Description :
**         Initialization of the LCD device.
**     Parameters  : None
**     Returns     : Nothing
** ===================================================================
*/
void LCD1_Init(void)
{
  byte i, *pDataReg = &LDAT1;
  for(i = 0x00; i < 0x0D; i++) {
    pDataReg[i] = 0x00;                /* initialization of data registers */
  }
  /* LCDCLK: ??=0,FCCLT1=0,FCCLT0=0,DUTY1=1,DUTY0=0,LCLK2=0,LCLK1=0,LCLK0=0 */
  LCDCLK = 0x10;                       /* Initialization of the clock register */
  /* LCDCR: LCDE=1,??=0,FC=1,LC=1,LCCON3=1,LCCON2=1,LCCON1=1,LCCON0=1 */
  LCDCR = 0xBF;                        /* Initialization of the control register */
}

/* END LCD1. */

/*
** ###################################################################
**
**     This file was created by UNIS Processor Expert 2.98 [03.80]
**     for the Freescale HC08 series of microcontrollers.
**
** ###################################################################
*/

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -