91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 2.84MB
    文件類型: .zip
    金幣: 2
    下載: 0 次
    發布日期: 2023-10-30
  • 語言: 其他
  • 標簽: 24C01-24C512??

資源簡介

stc15f104 作為主控的EEPROM讀寫測試程序,可以外接兩個24C01-24C512系列芯片實現復制功能,支持串口命令控制,里面包括源代碼,和硬件原理圖圖片, 非常合適初學者參考

資源截圖

代碼片段和文件信息


/*------------------------------------------------------------------*/
/*?---?STC?MCU?International?Limited?-------------------------------*/
/*?---?STC?1T?Series?MCU?RC?Demo?-----------------------------------*/
/*?---?Mobile:?(86)13922805190?-------------------------------------*/
/*?---?Fax:?86-0513-550129565501294755012969?---------------------*/
/*?---?Tel:?86-0513-550129285501292955012966?---------------------*/
/*?---?Web:?www.GXWMCU.com?-----------------------------------------*/
/*?---?QQ:??800003751?----------------------------------------------*/
/*?If?you?want?to?use?the?program?or?the?program?referenced?in?the??*/
/*?article?please?specify?in?which?data?and?procedures?from?STC????*/
/*------------------------------------------------------------------*/

/************* 功能說明 **************

本文件為STC15xxx系列的端口初始化程序用戶幾乎可以不修改這個程序.


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

#include “GPIO.h“


//========================================================================
//?函數:?u8 GPIO_Inilize(u8?GPIO?GPIO_InitTypeDef?*GPIOx)
//?描述:?初始化IO口.
//?參數:?GPIOx:?結構參數請參考timer.h里的定義.
//?返回:?成功返回0?空操作返回1錯誤返回2.
//?版本:?V1.0?2012-10-22
//========================================================================
u8?GPIO_Inilize(GPIO_TypeDef?GPIO?GPIO_Pin_TypeDef?GPIO_Pin?GPIO_Mode_TypeDef?GPIO_Mode)
{
if(GPIO?>?GPIO_P5) return?1; //空操作
if(GPIO_Mode?>?GPIO_MODE_OUT_PP) return?2; //錯誤
if(GPIO?==?GPIO_P0)
{
if(GPIO_Mode?==?GPIO_MODE_PullUp) P0M1?&=?~GPIO_Pin P0M0?&=?~GPIO_Pin; ?//上拉準雙向口
if(GPIO_Mode?==?GPIO_MODE_HighZ) P0M1?|=??GPIO_Pin P0M0?&=?~GPIO_Pin; ?//浮空輸入
if(GPIO_Mode?==?GPIO_MODE_OUT_OD) P0M1?|=??GPIO_Pin P0M0?|=??GPIO_Pin; ?//開漏輸出
if(GPIO_Mode?==?GPIO_MODE_OUT_PP) P0M1?&=?~GPIO_Pin P0M0?|=??GPIO_Pin; ?//推挽輸出
}
if(GPIO?==?GPIO_P1)
{
if(GPIO_Mode?==?GPIO_MODE_PullUp) P1M1?&=?~GPIO_Pin P1M0?&=?~GPIO_Pin; ?//上拉準雙向口
if(GPIO_Mode?==?GPIO_MODE_HighZ) P1M1?|=??GPIO_Pin P1M0?&=?~GPIO_Pin; ?//浮空輸入
if(GPIO_Mode?==?GPIO_MODE_OUT_OD) P1M1?|=??GPIO_Pin P1M0?|=??GPIO_Pin; ?//開漏輸出
if(GPIO_Mode?==?GPIO_MODE_OUT_PP) P1M1?&=?~GPIO_Pin P1M0?|=??GPIO_Pin; ?//推挽輸出
}
if(GPIO?==?GPIO_P2)
{
if(GPIO_Mode?==?GPIO_MODE_PullUp) P2M1?&=?~GPIO_Pin P2M0?&=?~GPIO_Pin; ?//上拉準雙向口
if(GPIO_Mode?==?GPIO_MODE_HighZ) P2M1?|=??GPIO_Pin P2M0?&=?~GPIO_Pin; ?//浮空輸入
if(GPIO_Mode?==?GPIO_MODE_OUT_OD) P2M1?|=??GPIO_Pin P2M0?|=??GPIO_Pin; ?//開漏輸出
if(GPIO_Mode?==?GPIO_MODE_OUT_PP) P2M1?&=?~GPIO_Pin P2M0?|=??GPIO_Pin; ?//推挽輸出
}
if(GPIO?==?GPIO_P3)
{
if(GPIO_Mode?==?GPIO_MODE_PullUp) P3M1?&=?~GPIO_Pin P3M0?&=?~GPIO_Pin; ?//上拉準雙向口
if(GPIO_Mode?==?GPIO_MODE_HighZ) P3M1?|=??GPIO_Pin P3M0?&=?~GPIO_Pin; ?//浮空輸入
if(GPIO_Mode?==?GPIO_MODE_OUT_OD) P3M1?|=??GPIO_Pin P3M0?|=??GPIO_Pin; ?//開漏輸出
if(GPIO_Mode?==?GPIO_MODE_OUT_PP) P3M1?&=?~GPIO_Pin P3M0?|=??GPIO_Pin; ?//推挽輸出
}
if(GPIO?==?GPIO_P4)
{
if(GPIO_Mode?==?GPIO_MODE_PullUp) P4M1?&=?~GPIO_Pin P4

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????1568??2014-07-12?15:00??stc_eeprom\eeprom.opt.bak
?????文件?????????171??2014-06-18?10:55??stc_eeprom\eeprom.plg
?????文件????????2294??2014-07-04?19:59??stc_eeprom\eeprom.Uv2.bak
?????文件???????71484??2016-05-27?21:14??stc_eeprom\eeprom.uvgui.lenovo
?????文件???????71510??2016-05-27?16:17??stc_eeprom\eeprom.uvgui_lenovo.bak
?????文件????????7856??2016-05-27?21:14??stc_eeprom\eeprom.uvopt
?????文件???????14320??2016-05-27?16:17??stc_eeprom\eeprom.uvproj
?????文件????????1568??2014-07-09?22:18??stc_eeprom\eeprom_Opt.Bak
?????文件????????2301??2014-07-02?23:55??stc_eeprom\eeprom_Uv2.Bak
?????文件????????7856??2016-05-27?16:17??stc_eeprom\eeprom_uvopt.bak
?????文件???????14312??2015-02-02?14:13??stc_eeprom\eeprom_uvproj.bak
?????目錄???????????0??2016-05-27?21:04??stc_eeprom\List\
?????文件????????1002??2014-06-18?10:55??stc_eeprom\List\24Cxxx.lst
?????文件???????41850??2016-05-27?21:04??stc_eeprom\List\eeprom.m51
?????文件???????14134??2016-05-27?21:04??stc_eeprom\List\main.lst
?????文件???????17950??2016-05-27?21:04??stc_eeprom\List\RW24Cxxx.lst
?????文件?????????561??2014-07-02?21:38??stc_eeprom\List\simUARI.lst
?????文件???????15128??2016-05-27?21:04??stc_eeprom\List\simUART.lst
?????文件????????7027??2014-07-02?21:45??stc_eeprom\List\stc_eeprom.lst
?????文件????????8470??2016-05-27?21:04??stc_eeprom\List\STCIIC.lst
?????目錄???????????0??2016-05-27?21:04??stc_eeprom\Output\
?????文件???????65536??2014-07-06?23:39??stc_eeprom\Output\24c512-0xff.bin
?????文件?????????343??2014-06-18?10:55??stc_eeprom\Output\24Cxxx.obj
?????文件??????????64??2014-07-07?00:16??stc_eeprom\Output\6400.bin
?????文件??????????64??2014-07-07?00:15??stc_eeprom\Output\64ff.bin
?????文件??????119424??2016-05-27?21:04??stc_eeprom\Output\eeprom
?????文件?????????569??2016-05-27?21:14??stc_eeprom\Output\eeprom.build_log.htm
?????文件????????9604??2016-05-27?21:04??stc_eeprom\Output\eeprom.hex
?????文件?????????146??2016-05-27?21:04??stc_eeprom\Output\eeprom.lnp
?????文件?????????171??2014-07-12?15:00??stc_eeprom\Output\eeprom.plg
?????文件???????38062??2016-05-27?21:04??stc_eeprom\Output\main.obj
............此處省略26個文件信息

評論

共有 條評論

相關資源