文件名称:ST
介绍说明--下载内容均来自于网络,请自行研究使用
有刷割草机程序
main()
{
unsigned char i
_asm( sim )
Sys_Init()
DELAY_1S()
Current_Initialize()
FC_test()
Vbat_test()
//DR1()
// Upbridge_ON()
Mos_OFF()
DELAY_time(200)
SET_ABS_Tflag
if(!DATA_status[3])
{
FLASH_enable_write()
FLASH_CR2 = 0x40
FLASH_NCR2 = (unsigned char)~0x40
_asm( NOP )
DATA_status[0]=0X01
DATA_status[1]=0X01
DATA_status[2]=0X01
DATA_status[3]=0X01
_asm( NOP )
read_ID()
_asm( NOP )
ID_ACCdata[0]=LED_NUM
ID_ACCdata[1]=LED_RATE
ID_ACCdata[2]=0XFF
ID_ACCdata[3]=0XFF
_asm( NOP )
FLASH_disenable_write()
}
CLR_ID_FLAG
read_ID()
if((LED_NUM!=ID_ACCdata[0])&&(LED_RATE!=ID_ACCdata[1]))
{SET_ID_FLAG }
AD_RUNInit()
LED_NUM=0X00
LED_RATE=0X00
RUN_num=0x04
VOLIO_ON
bit_break=0x00
VOLdelay_15s=0xFF
TIM1_BKR |= 0x80
TIM1_CR1 |= 0x01 //开启
TIM6_CR1 |= 0x01 //开启
_asm( rim )
while (1)-Brush with the lawn mower
main()
{
unsigned char i
_asm( sim )
Sys_Init()
DELAY_1S()
Current_Initialize()
FC_test()
Vbat_test()
//DR1()
// Upbridge_ON()
Mos_OFF()
DELAY_time(200)
SET_ABS_Tflag
if(!DATA_status[3])
{
FLASH_enable_write()
FLASH_CR2 = 0x40
FLASH_NCR2 = (unsigned char)~0x40
_asm( NOP )
DATA_status[0]=0X01
DATA_status[1]=0X01
DATA_status[2]=0X01
DATA_status[3]=0X01
_asm( NOP )
read_ID()
_asm( NOP )
ID_ACCdata[0]=LED_NUM
ID_ACCdata[1]=LED_RATE
ID_ACCdata[2]=0XFF
ID_ACCdata[3]=0XFF
_asm( NOP )
FLASH_disenable_write()
}
CLR_ID_FLAG
read_ID()
if((LED_NUM!=ID_ACCdata[0])&&(LED_RATE!=ID_ACCdata[1]))
{SET_ID_FLAG }
AD_RUNInit()
LED_NUM=0X00
LED_RATE=0X00
RUN_num=0x04
VOLIO_ON
bit_break=0x00
VOLdelay_15s=0xFF
TIM1_BKR |= 0x80
TIM1_CR1 |= 0x01 //开启
TIM6_CR1 |= 0x01 //开启
_asm( rim )
while (1)-Brush with the lawn mower
(系统自动生成,下载前可以参看下载内容)
下载文件列表
ST地暖TEST\braek_code.c
..........\Debug\black_code.ls
..........\.....\black_code.o
..........\.....\braek_code.ls
..........\.....\braek_code.o
..........\.....\break_code.ls
..........\.....\break_code.o
..........\.....\cease_code.ls
..........\.....\cease_code.o
..........\.....\cruise_code.ls
..........\.....\cruise_code.o
..........\.....\e2prom_code.ls
..........\.....\e2prom_code.o
..........\.....\hall_code.ls
..........\.....\hall_code.o
..........\.....\help_code.ls
..........\.....\help_code.o
..........\.....\init.ls
..........\.....\init.o
..........\.....\interrupt.ls
..........\.....\interrupt.o
..........\.....\learn_code.ls
..........\.....\learn_code.o
..........\.....\led_code.ls
..........\.....\led_code.o
..........\.....\lock_code.ls
..........\.....\lock_code.o
..........\.....\main.ls
..........\.....\main.o
..........\.....\mos_drive.ls
..........\.....\mos_drive.o
..........\.....\pwm_code.ls
..........\.....\pwm_code.o
..........\.....\sensorless_code.ls
..........\.....\sensorless_code.o
..........\.....\sp_carry.ls
..........\.....\sp_carry.o
..........\.....\stm8_interrupt_vector.ls
..........\.....\stm8_interrupt_vector.o
..........\.....\st_normallock.elf
..........\.....\st_normallock.lkf
..........\.....\st_normallock.map
..........\.....\st_normallock.s19
..........\.....\st_normallock.sm8
..........\.....\st_normallock22.s19
..........\.....\st_normallock35.s19
..........\.....\st_normallock36.s19
..........\.....\st_normallock54.s19
..........\.....\st_normallock7f.s19
..........\.....\time_manage.ls
..........\.....\time_manage.o
..........\.....\uart_code.ls
..........\.....\uart_code.o
..........\.....\vbat_code.ls
..........\.....\vbat_code.o
..........\.....\XuanWeiStm8ProgmmerConfig.xml
..........\.....\有刷17.5V-18.5V.s19
..........\.....\有刷19-23V.s19
..........\E2PROM_code.c
..........\Init.c
..........\interrupt.c
..........\led_code.c
..........\LIB\defin_ram.h
..........\...\ext_defin_ram.h
..........\...\func.h
..........\...\Lib_bits.h
..........\...\STM8S903K.h
..........\main.c
..........\mos_drive.c
..........\pwm_code.c
..........\Release\st_normallock.lkf
..........\sp_carry.c
..........\stm8_interrupt_vector.c
..........\ST_LXNORAMLLOCK.stw
..........\ST_LXNORAMLLOCK.wed
..........\st_normallock.dep
..........\st_normallock.stp
..........\ST_NORMALLOCK.wed
..........\Time_Manage.c
..........\Vbat_code.c
..........\Debug
..........\LIB
..........\Release
ST地暖TEST