-
A1005
pat advanced level 1005. Spell It Right(Given a non-negative integer N, your task is to compute the sum of all the digits of N, and output every digit of the sum in English.
Input Specification:
Each input file contains one test case. Each case occupies one line which contains an N (<= 10100).
Output Specification:
For each test case, output in one line the digits of the sum in English words. There must be one space between two consecutive words, but no extra space at the end of a line.
Sample Input:
12345
Sample Output:
one five)
- 2015-10-23 10:14:29下载
- 积分:1
-
FreeRTOS_KL16
FreeRTOS_KL16FreeRTOS是一个迷你的实时操作系统内核。作为一个轻量级的操作系统,功能包括:任务管理、时间管理、信号量、消息队列、内存管理、记录功能、软件定时器、协程等,可基本满足较小系统的需要(FreeRTOS is a mini real time operating system kernel. As a lightweight operating system, features include: task management, time management, semaphores, message queues, memory management, recording function, software timer, coroutine, can meet the basic needs of the smaller system)
- 2021-05-12 20:30:02下载
- 积分:1
-
buck-shuangbihuan
saber软件搭建的BUCK双闭环控制模块,电流内环和电压外环,直接能用。(saber software built BUCK double-loop control module, the current inner and outer voltage, can be used directly.)
- 2013-07-23 10:24:51下载
- 积分:1
-
红外线
红外摇控新手不可多得的资料 PIC,汇编语言写成,摇控芯片为:HT6222等(infrared remote control novice rare PIC information, the compilation of language, the remote control chips : HT6222, etc.)
- 2005-07-31 09:07:12下载
- 积分:1
-
example6_TIM
本例展示了如何设置TIM,用它来测量一个外部输入信号的频率和占空比。
TIM2时钟设置为72MHz,预分频设置为0,TIM2计数器时钟可表达为:
TIM2 counter clock = TIMxCLK / (Prescaler +1) = 72 MHz,因此可测量的最小频率值为1100Hz。
设置TIM2工作在PWM输入模式(PWM Input Mode),把外部信号作为输入连接到TIM2通道2。
利用TIM2计数器中断来测量信号的频率和占空比。在TIM2_IRQHandler中,计算信号的频率和占空比,方法如下:
变量"Frequency"为由下式得到的外部信号频率:
Frequency = TIM2 counter clock / TIM2_CCR2 单位Hz
变量"Duty_Cycle"为由下式得到的外部信号占空比:
Duty_Cycle = (TIM2_CCR1*100)/(TIM2_CCR2) 单位
(This example shows how to set up the TIM, and use it to measure the frequency and duty cycle of an external input signal. TIM2 clock set to 72MHz and the prescaler is set to 0, TIM2 is counter clock can be expressed as: TIM2 is counter clock = TIMxCLK/(prescaler. Ppls1) = 72 MHz, the minimum measurable frequency value of 1100 Hz. Set TIM2 PWM input mode (PWM Input Mode), the external signal as an input connected to the the TIM2 Channel 2. TIM2 counter interrupt signal to measure frequency and duty cycle. Calculate the frequency and duty cycle of the signal in TIM2_IRQHandler as follows: variable " Frequency" on the grounds of the external signal frequency by the following formula: Frequency = TIM2 is counter clock/TIM2_CCR2 unit Hz variable Duty_Cycle " on the grounds of the following formula to get external duty cycle: Duty_Cycle = (TIM2_CCR1* 100)/(TIM2_CCR2) in )
- 2012-05-18 18:28:47下载
- 积分:1
-
孵化环境温湿度监控系统设计
说明: 孵化环境温湿度监控系统设计!!!!!!!(Design of temperature and humidity monitoring system for incubation environment)
- 2020-01-10 09:54:36下载
- 积分:1
-
cleanflight-configurator-development
js to use serial and configuration for quadcopter
- 2016-05-28 17:33:32下载
- 积分:1
-
C8051F-DAC
利用4*4矩阵键盘控制C8051f040片内DCA输出,利用LCD1602显示输入的数字量,输出范围0-5V,DAC精度12位。(Use 4* 4 matrix keyboard control C8051f040 DCA chip output, use LCD1602 display digital inputs, output range 0-5V, DAC precision 12.)
- 2015-08-04 10:26:33下载
- 积分:1
-
STM32-ADS1247
stm32硬件SPI方式控制ADS1247采样驱动程序(stm32 hardware SPI driver controls the ADS1247 sampling)
- 2021-01-18 12:08:43下载
- 积分:1
-
STM32F103RCT6
STM32F103RCT6芯片的最小系统板,原理图,PCB。(Minimum system board, schematic diagram, PCB of STM32F103RCT6 chip.)
- 2020-06-19 23:20:02下载
- 积分:1