文件名称:Ration
介绍说明--下载内容均来自于网络,请自行研究使用
/*系统时钟采用 Fosc=7.373
定时器方式1的定时时间 Time=(65536-THTL)*2/Fosc,默认5ms
定时器1工作在16位,用作系统时钟
定时器0工作在16位,作为定时开始采样用,定时范围为0.1ms(0xfe8f)-15ms(0x27fe),默认为1ms=0xf19a,可以通过设置命令改变
串行口波特率由内部产生,11.059MHz->BRGR1:0=0x0050=115200Bps,0x00b0=57600Bps
7.373MHz->BRGR1:0=0x0030=115200Bps,0x0070=57600Bps-/* System clock Fosc = 7.373 using the timer mode of timer 1 time Time = (65536-THTL)* 2/Fosc, default 5ms timer 1 in 16 for the system clock timer 0 in 16, as from time to time with the beginning of sampling, timing range of 0.1ms (0xfe8f)-15ms (0x27fe), defaults to 1ms = 0xf19a, can be changed by setting the order of the serial port baud rate generated by in-house, 11.059MHz-
定时器方式1的定时时间 Time=(65536-THTL)*2/Fosc,默认5ms
定时器1工作在16位,用作系统时钟
定时器0工作在16位,作为定时开始采样用,定时范围为0.1ms(0xfe8f)-15ms(0x27fe),默认为1ms=0xf19a,可以通过设置命令改变
串行口波特率由内部产生,11.059MHz->BRGR1:0=0x0050=115200Bps,0x00b0=57600Bps
7.373MHz->BRGR1:0=0x0030=115200Bps,0x0070=57600Bps-/* System clock Fosc = 7.373 using the timer mode of timer 1 time Time = (65536-THTL)* 2/Fosc, default 5ms timer 1 in 16 for the system clock timer 0 in 16, as from time to time with the beginning of sampling, timing range of 0.1ms (0xfe8f)-15ms (0x27fe), defaults to 1ms = 0xf19a, can be changed by setting the order of the serial port baud rate generated by in-house, 11.059MHz-
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Ration.c