-
找到原因了,从器件正确的送出低电平了,是我读之前延时太长,有效电平很快就过去了
-
恩。。现在好很多了,深深爱上这片子咯
-
的确是万众瞩目
-
亲爱能够
-
可能是项目的问题,重新建了一个,一切正常!非常感谢!
-
我特意去看了一下官方的固件库里的,stm8s_conf.h。
没有发现你所说的语句。
/**
******************************************************************************
* @file project\stm8s_conf.h
* @brief This file is used to configure the Library.
* @author STMicroelectronics - MCD Application Team
* @version V1.1.1
* @date 06/05/2009
******************************************************************************
*
* THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
* WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE
* TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY
* DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING
* FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE
* CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
*
* <h2><center>© COPYRIGHT 2009 STMicroelectronics</center></h2>
* @image html logo.bmp
******************************************************************************
*/
/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __STM8S_CONF_H
#define __STM8S_CONF_H
/* Includes ------------------------------------------------------------------*/
#include "stm8s.h"
/* Exported types ------------------------------------------------------------*/
/* Exported constants --------------------------------------------------------*/
/* Uncomment the line below to expanse the "assert_param" macro in the
Standard Peripheral Library drivers code */
/* #define USE_FULL_ASSERT 1 */
/* In the following line adjust the value of External High Speed oscillator (HSE)
used in your application */
#if defined (STM8S208) || defined (STM8S207)
#define HSE_VALUE ((u32)24000000) /* Value of the External oscillator in Hz*/
#else
#define HSE_VALUE ((u32)16000000) /* Value of the External oscillator in Hz*/
#endif
/* Uncomment the line below to enable peripheral header file inclusion */
/************************************* ADC ************************************/
#if defined(STM8S105) || defined(STM8S103) || defined(STM8S903)
/* #define _ADC1 (1) */
#endif /* (STM8S105) ||(STM8S103) || (STM8S903) */
#if defined(STM8S208) || defined(STM8S207)
/* #define _ADC2 (1) */
#endif /* (STM8S208) ||(STM8S207) */
/************************************* AWU ************************************/
/* #define _AWU (1) */
/************************************* BEEP ***********************************/
/* #define _BEEP (1) */
/************************************* CLK ************************************/
#ifdef STM8S208
/* #define _CAN (1) */
#endif /* (STM8S208) */
/************************************* CLK ************************************/
/* #define _CLK (1) */
/************************************* EXTI ***********************************/
/* #define _EXTI (1) */
/******************************* FLASH/DATA EEPROM ****************************/
/* #define _FLASH (1) */
/********************************* OPTION BYTES *******************************/
/* #define _OPT (1) */
/************************************* GPIO ***********************************/
/* #define _GPIO (1) */
/************************************* I2C ************************************/
/* #define _I2C (1) */
/************************************* ITC ************************************/
/* #define _ITC (1) */
/************************************* IWDG ***********************************/
/* #define _IWDG (1) */
/************************************* RST ************************************/
/* #define _RST (1) */
/************************************* SPI ************************************/
/* #define _SPI (1) */
/************************************* TIM1 ***********************************/
/* #define _TIM1 (1) */
/************************************* TIM2 ***********************************/
#if defined(STM8S208) ||defined(STM8S207) ||defined(STM8S103) ||defined(STM8S105)
/* #define _TIM2 (1) */
#endif /* (STM8S208) ||(STM8S207) || (STM8S103) || (STM8S105) */
/************************************* TIM3 ***********************************/
#if defined(STM8S208) ||defined(STM8S207) ||defined(STM8S105)
/* #define _TIM3 (1) */
#endif /* (STM8S208) ||(STM8S207) || (STM8S105) */
/************************************* TIM4 ***********************************/
#if defined(STM8S208) ||defined(STM8S207) ||defined(STM8S103) ||defined(STM8S105)
/* #define _TIM4 (1) */
#endif /* (STM8S208) ||(STM8S207) || (STM8S103) || (STM8S105) */
/************************************* TIM5 & TIM6 ****************************/
#ifdef STM8S903
/* #define _TIM5 (1) */
/* #define _TIM6 (1) */
#endif /* STM8S903 */
/************************************* UARTx **********************************/
#if defined(STM8S208) ||defined(STM8S207) ||defined(STM8S103) ||defined(STM8S903)
/* #define _UART1 (1) */
#endif /* (STM8S208) ||(STM8S207) || (STM8S103) || (STM8S903) */
#ifdef STM8S105
/* #define _UART2 (1) */
#endif /* STM8S105 */
#if defined(STM8S208) ||defined(STM8S207)
/* #define _UART3 (1) */
#endif /* (STM8S208) ||(STM8S207) */
/************************************* WWDG ***********************************/
/* #define _WWDG (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((u8 *)__FILE__, __LINE__))
/* Exported functions ------------------------------------------------------- */
void assert_failed(u8* file, u32 line);
#else
#define assert_param(expr) ((void)0)
#endif /* USE_FULL_ASSERT */
/* Peripheral header file inclusion ******************************************/
#ifdef _ADC1
#include "stm8s_adc1.h"
#endif /* _ADC1 */
#ifdef _ADC2
#include "stm8s_adc2.h"
#endif /* _ADC2 */
#ifdef _AWU
#include "stm8s_awu.h"
#endif /* _AWU */
#ifdef _BEEP
#include "stm8s_beep.h"
#endif /* _BEEP */
#ifdef _CLK
#include "stm8s_clk.h"
#endif /* _CLK */
#ifdef _EXTI
#include "stm8s_exti.h"
#endif /* _EXTI */
#if defined(_FLASH) || defined(_OPT)
#include "stm8s_flash.h"
#endif /* _FLASH/OPT */
#ifdef _GPIO
#include "stm8s_gpio.h"
#endif /* _GPIOx */
#ifdef _I2C
#include "stm8s_i2c.h"
#endif /* _I2C */
#ifdef _ITC
#include "stm8s_itc.h"
#endif /* _ITC */
#ifdef _IWDG
#include "stm8s_iwdg.h"
#endif /* _IWDG */
#ifdef _RST
#include "stm8s_rst.h"
#endif /* _RST */
#ifdef _SPI
#include "stm8s_spi.h"
#endif /* _SPI */
#ifdef _TIM1
#include "stm8s_tim1.h"
#endif /* _TIM1 */
#ifdef _TIM2
#include "stm8s_tim2.h"
#endif /* _TIM2 */
#ifdef _TIM3
#include "stm8s_tim3.h"
#endif /* _TIM3 */
#ifdef _TIM4
#include "stm8s_tim4.h"
#endif /* _TIM4 */
#ifdef _TIM5
#include "stm8s_tim5.h"
#endif /* _TIM5 */
#ifdef _TIM6
#include "stm8s_tim6.h"
#endif /* _TIM6 */
#ifdef _UART1
#include "stm8s_uart1.h"
#endif /* _UART1 */
#ifdef _UART2
#include "stm8s_uart2.h"
#endif /* _UART2 */
#ifdef _UART3
#include "stm8s_uart3.h"
#endif /* _UART3 */
#ifdef _WWDG
#include "stm8s_wwdg.h"
#endif /* _WWDG */
#ifdef _CAN
#include "stm8s_can.h"
#endif /* _CAN */
#endif /* __STM8S_CONF_H */
/******************* (C) COPYRIGHT 2009 STMicroelectronics *****END OF FILE****/
-
太感谢4楼的高手了!
-
//当在录入时按下D确定键
if ( Status_Key>=13 && groupmenu==11 && (key!=10 || key!=11)) continue;
这个红色的语句,判断的结果永远是true?
-
变量名的长度对内存的使用是没有影响的,实际上变量在内存中只是一个固定位置的数据,编译器在编译的时候就会自动帮你处理用到这个变量的时候到相应的位置取数据,所以不会出现存取顺序的问题。如果可以的话你看一下编译生成的汇编代码就明白了。
-
用stvp时 写st7flit15b芯片经常会写保护,The device write protected .是什么原因呀?
-
dword = 2 words = 4 bytes
-
不能用本地图片。可以上传到eeworld的相册,再用。
-
你的意思我是不是可以这样回答:
LCD初始化代码肯定要加的,这段代码其实就是一些LCD时序参数的设置
这些设置你可以在BOOTLOADER或者OAL里面设置
模拟器是两个都设置了,但是韦伯兄的意思是设置一个就好了
在设置完之后接下来直接调用函数memcpy()就好了
这里要注意FrameBuffer里面的值
至于现在流行的将图片从FLASH里面读取我正在看!
以上言论仅供参考!
目的只有一个大家共同进步!
-
怎么算才是对的呢?
-
activesync就是一种将USB设备虚拟成为串口的一种手段,所以你说的肯定是能同步上的。
至于速度方面,虚拟虚拟肯定只是一种发数据的手段,如果是普通的串口只是因为硬件的速率跟不上,但是要是实际的设备是个USB设备,肯定会速度会大大的提高,跟一般使用USB设备的速率差不多的,虚拟的那个串口只是负责把数据送给USB设备,当然有多少数据只要在USB设备承受的范围之类就能发送。
举个例子吧,GPRS是一个纯的串口设备,而现在的3G模块很多都是USB设备,当然我们操作3G模块的时候都是模拟USB设备为串口。
-
mark
-
不错,呵呵,以前看过这些函数,不过,没细看里面的,这一部分,学习~~~
-
就几个参数改一下,试一下就知道了
-
The registry values in Platform.reg override the default values specified in Project.reg and Common.reg. The registry values in Project.reg override the default values specified in Common.reg.
-
若用7289,不如试一试ST的STLED316S, 价格说不定比7289还好些....一样的LED加KEY驱动。