|
发表于 2011-3-2 22:06:41
|
显示全部楼层
我找到了,如下,在STM8S103那一行写的是 0x530B,你如果照搬下来,就被坑了,正确的地址是0x530C。
//==============================================================================
//
// 2) ACQUISITION TIMER SELECTION (TIMACQ)
//
// Set the acquisition timer name and its counter high register address.
// The timer you select must be a 16-bit timer, have a 8-bit prescaler and
// must be different of the TIMTICK timer described below.
// This table summarizes the values for some products (consult the datasheet
// if your product is not in the list):
// Product TIMACQ TIMACQ_CNTR_ADD
// STM8S20x TIM2 0x530B
// " TIM3 0x5328
// STM8S105 TIM2 0x530B
// " TIM3 0x5328
// STM8S103 TIM2 0x530B
// STM8L101 TIM2 0x525B
// " TIM3 0x528B
//==============================================================================
#define TIMACQ (TIM2)
#define TIMACQ_CNTR_ADD (0x530C) |
|