第一范文网 - 专业文章范例文档资料分享平台

stm32 fsmc lcd调试

来源:用户分享 时间:2025/5/20 7:52:01 本文由loading 分享 下载这篇文档手机版
说明:文章内容仅供预览,部分内容可能不全,需要完整文档或者需要复制内容,请下载word后使用。下载word有问题请添加微信号:xxxxxxx或QQ:xxxxxx 处理(尽可能给您提供完整文档),感谢您的支持与谅解。

p.FSMC_DataLatency = 1;

p.FSMC_AccessMode = FSMC_AccessMode_A;

/* Color LCD configuration ------------------------------------ LCD configured as follow:

- Data/Address MUX = Disable - Memory Type = SRAM - Data Width = 16bit - Write Operation = Enable - Extended Mode = Enable - Asynchronous Wait = Disable */

FSMC_NORSRAMInitStructure.FSMC_Bank = FSMC_Bank1_NORSRAM4; FSMC_NORSRAMInitStructure.FSMC_DataAddressMux = FSMC_DataAddressMux_Disable;

FSMC_NORSRAMInitStructure.FSMC_MemoryType = FSMC_MemoryType_SRAM;

FSMC_NORSRAMInitStructure.FSMC_MemoryDataWidth =

FSMC_MemoryDataWidth_8b;

FSMC_NORSRAMInitStructure.FSMC_BurstAccessMode = FSMC_BurstAccessMode_Disable;

FSMC_NORSRAMInitStructure.FSMC_WaitSignalPolarity =

FSMC_WaitSignalPolarity_Low;

FSMC_NORSRAMInitStructure.FSMC_WrapMode = FSMC_WrapMode_Disable; FSMC_NORSRAMInitStructure.FSMC_WaitSignalActive =

FSMC_WaitSignalActive_BeforeWaitState;

FSMC_NORSRAMInitStructure.FSMC_WriteOperation = FSMC_WriteOperation_Enable;

FSMC_NORSRAMInitStructure.FSMC_WaitSignal = FSMC_WaitSignal_Disable;

FSMC_NORSRAMInitStructure.FSMC_ExtendedMode = FSMC_ExtendedMode_Disable;

FSMC_NORSRAMInitStructure.FSMC_WriteBurst = FSMC_WriteBurst_Disable;

FSMC_NORSRAMInitStructure.FSMC_ReadWriteTimingStruct = &p; FSMC_NORSRAMInitStructure.FSMC_WriteTimingStruct = &p; FSMC_NORSRAMInit(&FSMC_NORSRAMInitStructure; /* BANK 4 (of NOR/SRAM Bank 1~4 is enabled */

FSMC_NORSRAMCmd(FSMC_Bank1_NORSRAM4, ENABLE; #endif }

/******************************************************************** ***********

* Function Name : STM3210E_LCD_Init * Description : Initializes the LCD. * Input : None * Output : None * Return : None

********************************************************************* **********/

void STM3210E_LCD_Init(void {

#ifndef NO_LCD

/* Configure the LCD Control pins --------------------------------------------*/ LCD_IOConfig(;

/* Configure the FSMC Parallel interface -------------------------------------*/ LCD_FSMCConfig(;

LCD_Command = Display_Off; //

delay(;

LCD_Command = LCD_Reset; // reset_delay(;

LCD_Command = Set_LCD_Bias_9; delay(;

LCD_Command = Set_ADC_Normal; delay(;

LCD_Command = COM_Scan_Dir_Reverse; delay(;

LCD_Command = Set_Start_Line_X|0x0; delay(;

LCD_Command = 0x2c; power_delay(; // 50ms requried LCD_Command = 0x2e; power_delay(; // 50ms LCD_Command = 0x2f; power_delay(; // 50ms

LCD_Command = Set_Ref_Vol_Reg|0x05; delay(;

搜索更多关于: stm32 fsmc lcd调试 的文档
stm32 fsmc lcd调试.doc 将本文的Word文档下载到电脑,方便复制、编辑、收藏和打印
本文链接:https://www.diyifanwen.net/c5arv27wsgz2teb88j4i568ub00wtu60062x_2.html(转载请注明文章来源)
热门推荐
Copyright © 2012-2023 第一范文网 版权所有 免责声明 | 联系我们
声明 :本网站尊重并保护知识产权,根据《信息网络传播权保护条例》,如果我们转载的作品侵犯了您的权利,请在一个月内通知我们,我们会及时删除。
客服QQ:xxxxxx 邮箱:xxxxxx@qq.com
渝ICP备2023013149号
Top