久久久久久久999_99精品久久精品一区二区爱城_成人欧美一区二区三区在线播放_国产精品日本一区二区不卡视频_国产午夜视频_欧美精品在线观看免费

 找回密碼
 立即注冊

QQ登錄

只需一步,快速開始

搜索
查看: 22846|回復: 0
打印 上一主題 下一主題
收起左側

Proteus8.9 VSM Studio GCC編譯器仿真STM32F407ZGT6系列015_lcd2004一線屏

[復制鏈接]
跳轉到指定樓層
樓主
一,打開文件(可以隨文下載放置在文檔中打開)。(如下圖1所示)

圖1

二,調整原理圖大小,適合可視,另存工程文件。(如下圖2,3,4所示)

圖2


圖3


圖4

三,點擊Source Code標簽。(如下圖5所示)

圖5

四,編輯main.c 代碼如Proteus8.9 VSM Studio GCC編譯器仿真STM32F407ZGT6系列015_lcd2004一線屏(如下圖6所示)

圖6

五,Main.c 代碼:

/* Main.c file generated by New Project wizard
* Author:   Ziegler Yin
* Created:   周四 一月 16 2020
* Processor: STM32F407ZGT6ZGT6
* Compiler:  GCC for ARM
*/

#include "mfuncs.h"
#include "delay.h"
#include "usart.h"
#include "comds.h"

u8 l;

int main(void)
{
        delay_init(84);  //初始化延時函數
        NVIC_PriorityGroupConfig(NVIC_PriorityGroup_2);//設置系統中斷優先級分組2
        uart_init(9600);//初始化串口波特率為115200
       
               
   while(1) //實現比較值從0-300遞增,到300后從300-0遞減,循環
        {
               
                init();
                wrt_lin('0');
                uprint("Kaillen WorkWork\r\n");
                wrt_lin('1');
                uprint("   Wellcom YOU!\r\n");
                 for(l=0; l<255; l++) delay_ms(15);
                wrt_lin('2');
                uprint(" Code Made\r\n");
                wrt_lin('3');
                uprint("  ---Ziegler Yin\r\n");
                 for(l=0; l<100; l++) delay_ms(15);
        }
}

stm32f4xx_conf.h:

/**
  ******************************************************************************
  * @file    Project/STM32F4xx_StdPeriph_Templates/stm32f4xx_conf.h  
  * @author  MCD Application Team
  * @version V1.8.0
  * @date    04-November-2016
  * @brief   Library configuration file.
  ******************************************************************************
  * @attention
  *
  * <h2><center>&copy; COPYRIGHT 2016 STMicroelectronics</center></h2>
  *
  * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");
  * You may not use this file except in compliance with the License.
  * You may obtain a copy of the License at:
  *
  *        http://www.st.com/software_license_agreement_liberty_v2
  *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
  *
  ******************************************************************************
  */

/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __STM32F4xx_CONF_H
#define __STM32F4xx_CONF_H

/* Includes ------------------------------------------------------------------*/
/* Uncomment the line below to enable peripheral header file inclusion */

//#include "stm32f4xx_adc.h"
//#include "stm32f4xx_crc.h"
#include "stm32f4xx_dbgmcu.h"
//#include "stm32f4xx_dma.h"
#include "stm32f4xx_exti.h"
//#include "stm32f4xx_flash.h"
#include "stm32f4xx_gpio.h"
//#include "stm32f4xx_i2c.h"
//#include "stm32f4xx_iwdg.h"
#include "stm32f4xx_pwr.h"
#include "stm32f4xx_rcc.h"
//#include "stm32f4xx_rtc.h"
//#include "stm32f4xx_sdio.h"
//#include "stm32f4xx_spi.h"
#include "stm32f4xx_syscfg.h"
#include "stm32f4xx_tim.h"
#include "stm32f4xx_usart.h"
//#include "stm32f4xx_wwdg.h"
#include "misc.h"
/* High level functions for NVIC and SysTick (add-on to CMSIS functions) */



#if defined(STM32F40_41xxx)
//#include "stm32f4xx_cryp.h"
//#include "stm32f4xx_hash.h"
//#include "stm32f4xx_rng.h"
//#include "stm32f4xx_can.h"
#include "stm32f4xx_dac.h"
//#include "stm32f4xx_dcmi.h"
//#include "stm32f4xx_fsmc.h"
#endif /* STM32F40_41xxx */




/* Exported types ------------------------------------------------------------*/
/* Exported constants --------------------------------------------------------*/

/* If an external clock source is used, then the value of the following define
   should be set to the value of the external clock source, else, if no external
   clock is used, keep this define commented */
/*#define I2S_EXTERNAL_CLOCK_VAL   12288000 */ /* Value of the external clock in Hz */


/* Uncomment the line below to expanse the "assert_param" macro in the
   Standard Peripheral Library drivers code */
/* #define USE_FULL_ASSERT    1 */

/* Exported macro ------------------------------------------------------------*/
#ifdef  USE_FULL_ASSERT

/**
  * @brief  The assert_param macro is used for function's parameters check.
  * @param  expr: If expr is false, it calls assert_failed function
  *   which reports the name of the source file and the source
  *   line number of the call that failed.
  *   If expr is true, it returns no value.
  * @retval None
  */
  #define assert_param(expr) ((expr) ? (void)0 : assert_failed((uint8_t *)__FILE__, __LINE__))
/* Exported functions ------------------------------------------------------- */
  void assert_failed(uint8_t* file, uint32_t line);
#else
  #define assert_param(expr) ((void)0)
#endif /* USE_FULL_ASSERT */

#endif /* __STM32F4xx_CONF_H */

/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/


六,點擊構建工程按鈕,編譯工程。(如下圖7所示)

圖7

七,點擊窗口左下方仿真按鈕,可見lcd2004一線屏和虛擬串口的信息顯示在屏。 (如下圖8,9,10所示)

圖8


圖9

圖10


八,選擇release,點擊構建工程按鈕,編譯工程生成Hex文件。(如下圖11所示)

圖11


附件Proteus8.9 VSM Studio GCC編譯器仿真STM32F407ZGT6系列015_lcd2004一線屏在已安裝Proteus8.9的計算機文件夾中打開即可
需要進一步了解,請加入QQ群:976235464


012_LCD2004一線屏_02pt.rar

346.53 KB, 下載次數: 31, 下載積分: 黑幣 -5

在已安裝Proteus8.9的計算機文件夾中打開即可

評分

參與人數 1黑幣 +50 收起 理由
admin + 50 共享資料的黑幣獎勵!

查看全部評分

分享到:  QQ好友和群QQ好友和群 QQ空間QQ空間 騰訊微博騰訊微博 騰訊朋友騰訊朋友
收藏收藏1 分享淘帖 頂 踩
回復

使用道具 舉報

您需要登錄后才可以回帖 登錄 | 立即注冊

本版積分規則

手機版|小黑屋|51黑電子論壇 |51黑電子論壇6群 QQ 管理員QQ:125739409;技術交流QQ群281945664

Powered by 單片機教程網

快速回復 返回頂部 返回列表
主站蜘蛛池模板: 久久精品视频在线观看 | 国产精品毛片一区二区在线看 | 日本福利视频免费观看 | 狠狠爱综合网 | 午夜久久 | 国产91综合 | 精品一区国产 | 午夜视频在线免费观看 | 黄色大片免费播放 | 亚洲导航深夜福利涩涩屋 | 国产超碰人人爽人人做人人爱 | 亚洲顶级毛片 | 精品欧美久久 | 一区二区免费 | 九九亚洲 | 黑人巨大精品欧美一区二区免费 | 久久亚洲精品国产精品紫薇 | 亚洲午夜小视频 | 亚洲成人免费 | 亚洲伊人久久综合 | 国产精品免费高清 | 欧洲一级黄 | 国产欧美日韩综合精品一 | 视频在线h | 国产精品视频久久久 | 中文在线一区 | 国产不卡在线观看 | 日韩中文字幕一区 | 91不卡| 欧美天堂| 亚洲毛片一区二区 | 精品国产久 | 中文在线一区 | 超黄视频网站 | 欧美午夜一区 | 播放一级毛片 | 91精品一区二区三区久久久久久 | 成人欧美一区二区三区黑人孕妇 | 亚洲国产aⅴ成人精品无吗 国产精品永久在线观看 | 亚洲永久 | 日韩一区二区福利 |