-
大小: 1.32MB文件类型: .zip金币: 2下载: 1 次发布日期: 2021-04-07
- 语言: 其他
- 标签: IAR STM8S005K6 SPI W25Qxx
资源简介
基于IAR STM8 2.10开发环境,STM8S005K6单片机,采用硬件SPI通信,能读写华邦W25Qxx系列Flash,包含读、写、擦除扇区、擦除块等操作,已测试成功,含完整工程文件。
代码片段和文件信息
/**
******************************************************************************
* @file stm8s_adc1.c
* @author MCD Application Team
* @version V2.2.0
* @date 30-September-2014
* @brief This file contains all the functions/macros for the ADC1 peripheral.
******************************************************************************
* @attention
*
* © COPYRIGHT 2014 STMicroelectronics
*
* 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.
*
******************************************************************************
*/
/* Includes ------------------------------------------------------------------*/
#include “stm8s_adc1.h“
/** @addtogroup STM8S_StdPeriph_Driver
* @{
*/
/* Private typedef -----------------------------------------------------------*/
/* Private define ------------------------------------------------------------*/
/* Private macro -------------------------------------------------------------*/
/* Private variables ---------------------------------------------------------*/
/* Private function prototypes -----------------------------------------------*/
/* Private functions ---------------------------------------------------------*/
/* Public functions ----------------------------------------------------------*/
/**
* @addtogroup ADC1_Public_Functions
* @{
*/
/**
* @brief Deinitializes the ADC1 peripheral registers to their default reset values.
* @param None
* @retval None
*/
void ADC1_DeInit(void)
{
ADC1->CSR = ADC1_CSR_RESET_VALUE;
ADC1->CR1 = ADC1_CR1_RESET_VALUE;
ADC1->CR2 = ADC1_CR2_RESET_VALUE;
ADC1->CR3 = ADC1_CR3_RESET_VALUE;
ADC1->TDRH = ADC1_TDRH_RESET_VALUE;
ADC1->TDRL = ADC1_TDRL_RESET_VALUE;
ADC1->HTRH = ADC1_HTRH_RESET_VALUE;
ADC1->HTRL = ADC1_HTRL_RESET_VALUE;
ADC1->LTRH = ADC1_LTRH_RESET_VALUE;
ADC1->LTRL = ADC1_LTRL_RESET_VALUE;
ADC1->AWCRH = ADC1_AWCRH_RESET_VALUE;
ADC1->AWCRL = ADC1_AWCRL_RESET_VALUE;
}
/**
* @brief Initializes the ADC1 peripheral according to the specified parameters
* @param ADC1_ConversionMode: specifies the conversion mode
* can be one of the values of @ref ADC1_ConvMode_TypeDef.
* @param ADC1_Channel: specifies the channel to convert
* can be one of the values of @ref ADC1_Channel_TypeDef.
* @param ADC1_PrescalerSelection: specifies the ADC1 prescaler
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2015-01-26 09:30 STM8S005K6_W25Qxx_SPI\
目录 0 2015-01-26 08:40 STM8S005K6_W25Qxx_SPI\Debug\
目录 0 2015-01-26 09:29 STM8S005K6_W25Qxx_SPI\Debug\Exe\
文件 64628 2015-01-26 09:29 STM8S005K6_W25Qxx_SPI\Debug\Exe\STM8S005K6_W25Qxx_SPI.out
目录 0 2015-01-26 09:29 STM8S005K6_W25Qxx_SPI\Debug\List\
文件 16656 2015-01-26 09:29 STM8S005K6_W25Qxx_SPI\Debug\List\STM8S005K6_W25Qxx_SPI.map
目录 0 2015-01-26 09:29 STM8S005K6_W25Qxx_SPI\Debug\Obj\
文件 35689 2015-01-26 09:26 STM8S005K6_W25Qxx_SPI\Debug\Obj\Flash_25Q16.o
文件 378334 2015-01-26 09:26 STM8S005K6_W25Qxx_SPI\Debug\Obj\Flash_25Q16.pbi
文件 10524 2015-01-26 09:26 STM8S005K6_W25Qxx_SPI\Debug\Obj\Flash_25Q16.pbi.cout
文件 13260 2015-01-26 09:29 STM8S005K6_W25Qxx_SPI\Debug\Obj\main.o
文件 362287 2015-01-26 09:29 STM8S005K6_W25Qxx_SPI\Debug\Obj\main.pbi
文件 10517 2015-01-26 09:29 STM8S005K6_W25Qxx_SPI\Debug\Obj\main.pbi.cout
文件 415895 2015-01-26 09:29 STM8S005K6_W25Qxx_SPI\Debug\Obj\STM8S005K6_W25Qxx_SPI.pbd
文件 415895 2015-01-26 09:29 STM8S005K6_W25Qxx_SPI\Debug\Obj\STM8S005K6_W25Qxx_SPI.pbd.browse
文件 54935 2015-01-26 08:43 STM8S005K6_W25Qxx_SPI\Debug\Obj\stm8s_clk.o
文件 348288 2015-01-26 08:43 STM8S005K6_W25Qxx_SPI\Debug\Obj\stm8s_clk.pbi
文件 10540 2015-01-26 08:43 STM8S005K6_W25Qxx_SPI\Debug\Obj\stm8s_clk.pbi.cout
文件 22940 2015-01-26 08:43 STM8S005K6_W25Qxx_SPI\Debug\Obj\stm8s_gpio.o
文件 331299 2015-01-26 08:43 STM8S005K6_W25Qxx_SPI\Debug\Obj\stm8s_gpio.pbi
文件 10541 2015-01-26 08:43 STM8S005K6_W25Qxx_SPI\Debug\Obj\stm8s_gpio.pbi.cout
文件 38345 2015-01-26 08:43 STM8S005K6_W25Qxx_SPI\Debug\Obj\stm8s_spi.o
文件 338385 2015-01-26 08:43 STM8S005K6_W25Qxx_SPI\Debug\Obj\stm8s_spi.pbi
文件 10540 2015-01-26 08:43 STM8S005K6_W25Qxx_SPI\Debug\Obj\stm8s_spi.pbi.cout
目录 0 2015-01-26 09:30 STM8S005K6_W25Qxx_SPI\settings\
文件 7673 2015-01-26 09:30 STM8S005K6_W25Qxx_SPI\settings\STM8S005K6_W25Qxx_SPI.dbgdt
文件 1467 2015-01-26 09:27 STM8S005K6_W25Qxx_SPI\settings\STM8S005K6_W25Qxx_SPI.Debug.cspy.bat
文件 947 2015-01-26 09:30 STM8S005K6_W25Qxx_SPI\settings\STM8S005K6_W25Qxx_SPI.dni
文件 5312 2015-01-26 09:30 STM8S005K6_W25Qxx_SPI\settings\STM8S005K6_W25Qxx_SPI.wsdt
文件 51 2015-01-26 09:30 STM8S005K6_W25Qxx_SPI\settings\STM8S005K6_W25Qxx_SPI.wspos
文件 7662 2015-01-26 09:30 STM8S005K6_W25Qxx_SPI\STM8S005K6_W25Qxx_SPI.dep
............此处省略77个文件信息
相关资源
- Spin-1目标的广义parton分布的多项式和
- 介子和S波氘核的四极矩以及对spin-1系
- 基于SPCE061A和PTR8000的模拟SPI总线通信
- 用8位spi实现16位spi
- linux SPI设备注册和驱动小结
- 用Verilog语言写的CPLD和MCU通讯的SPI接口
- STM8S例程,基于IAR下的STM8S例程
- 在IAR环境下,lpc1788用户程序的地址及
- IAR破解已验证可破解最新版本EWARM-C
- Spirent iTest用户手册详细介绍iTest的各
- 精确结果为3d N $$ \\ mathcal {N} $$ = 2 S
- 从Poincaré代数的闭合中得
- Temperature dependence of electron-spin cohere
- 最新IAR 6.3破解
- QCD中三个循环处的Spin-2形状因子
- STM32分别以串口硬件SPI模拟并口驱动
- stm32利用spi驱动tm1803
- 戴尔Inspiron笔记本 摄像头工具webcam
- 戴尔DELL Inspiron 14R N4010网卡驱动 最新
- dell inspiron n4010摄像头驱动 官方最新版
- IAR 全系列软件注册机(20100615)
- 戴尔DELL灵越Inspiron N4120快捷键驱动程
- 戴尔DELL灵越Inspiron 14R 5420热键驱动程
- DELL戴尔灵越Inspiron 5520触摸板驱动程序
- ChangeSkin.rar
- IAR EW430连接仿真器在线仿真
- Synthesis and photophysical properties of star
- 电源旁路——SPICE 仿真与现实的
- KMSpico v10.2.0 Portable
- AD7689.rar
评论
共有 条评论