CodeBus
www.codebus.net
Search
Sign in
Sign up
Hot Search :
Source
embeded
web
remote control
p2p
game
More...
Location :
Home
Search - X-way 2.5
Main Category
SourceCode
Documents
Books
WEB Code
Develop Tools
Other resource
Search - X-way 2.5 - List
[
SCM
]
AD_ASM_AD0832shuzidianyabiaoLED
DL : 0
数字电压表 AD芯片: 采用8位串行A/D转换器ADC0832。 ● 8位分辨率,逐次逼近型,基准电压为 5V ● 5V单电源供电 ● 输入模拟信号电压范围为 0~5V ● 有两个可供选择的模拟输入通道 显示: 使用三个数码管。 显示范围: 0.00 - 5.10 (单位:V) 连接方式: AD_CLK → P1.0 AD_DAT → P1.1 AD_CS → P3.4 模拟输入 → CH0 (AD_DAT = DO + DI) ADC0832输出最大转换值=FFH (255) 设定最大测量值=5.1V 255X=5.1 X=0.02 即先乘2再除以100 (小数点放在第三位数码管)- Digital voltmeter AD chip: Uses 8 serial A/D switch ADC0832.* 8 resolution, gradually approaching, the datum voltage is 5V* the 5V single power source power supply* input simulated signal voltage scope is 0 ~ 5V* has two to be possible to supply the choice the analog input channel Demonstrated: Uses three digital tubes. Demonstrates the scope: 0.00- 5.10 (unit: V) Connection way: AD_CLK-> P1.0 AD_DAT-> P1.1 AD_CS-> P3.4 analog input-> CH0 (AD_DAT = DO DI) ADC0832 output biggest transformation value = FFH (255) establishes greatest observed value = 5.1V 255X=5.1 X=0.02 namely first to ride 2 to eliminate again by 100 (decimal point puts on third digital tube)
Date
: 2025-12-26
Size
: 7kb
User
:
lmhit
[
SCM
]
car
DL : 0
给定一个N*N 的方形网格,设其左上角为起点◎,坐标为(1,1),X轴向右为正,Y轴向下为正,每个方格边长为1。一辆汽车从起点◎出发驶向右下角终点▲,其坐标为(N,N)。在若干个网格交叉点处,设置了油库,可供汽车在行驶途中加油。汽车在行驶过程中应遵守如下规则: (1)汽车只能沿网格边行驶,装满油后能行驶K 条网格边。出发时汽车已装满油,在起点与终点处不设油库。 (2)当汽车行驶经过一条网格边时,若其X 坐标或Y 坐标减小,则应付费用B,否则免付费用。 (3)汽车在行驶过程中遇油库则应加满油并付加油费用A。 (4)在需要时可在网格点处增设油库,并付增设油库费用C(不含加油费用A)。 (5)(1)~(4)中的各数N、K、A、B、C均为正整数。 编程任务: 求汽车从起点出发到达终点的一条所付费用最少的行驶路线。 数据输入: 第一行是N,K,A,B,C的值,2 <=N<=100,2<=K<=10。 第二行起是一个N*N 的0-1方阵,每行N 个值,至N+1行结束。方阵的第i 行第j 列处的值为1 表示在网格交叉点(i,j)处设置了一个油库,为0 时表示未设油库。各行相邻的2 个数以空格分隔。 结果输出: 第1 行中的数是最小费用值。-Given an N* N square grid, set the upper left corner as a starting point ◎, coordinates (1,1), X-axis to the right is positive, Y axis is under, each square of side length 1. A car starting from the starting point towards lower right corner of the end ◎ ▲, the coordinates (N, N). In the number of grid intersection points, set up oil depot, car driving on the way for refueling. Car in motion the process should comply with the following rules: (1) car can only travel along the grid edge, full of oil can travel the grid section K edge. When the car was filled with oil starting in the beginning and the end of office does not set oil tanks. (2) when the vehicle traveling through a grid edge, if the X coordinate or Y coordinate decreases, then meet the cost of B, or to avoid payment. (3) car encountered in the process of moving fuel tank should fill up and pay costs of A. (4) require the grid point when additional fuel tank, and pay the additional cost of tank C (excluding fuel costs
Date
: 2025-12-26
Size
: 855kb
User
:
wakaka
[
SCM
]
单片机程序
DL : 0
包含6个实验程序和一个例题程序; 1:编程实现,在一个数码管上静态方式循环显示数字0~F。 2:编程实现,在4个数码管上利用动态方式显示数字0123。 3:利用一个按键控制小灯的亮灭,每按一次键,小灯状态改变一次。 4:独立式键盘扫描实现,利用由4个按键组成的独立式键盘控制4个LED灯,当某按键按下时,对应的LED灯点亮。 5:使用MSP430单片机控制发光二极管模拟流水灯的显示。将发光二极管LED1~LED8依次点亮、熄灭,8只LED灯会一亮一暗成为流水灯。 6:利用MSP430单片机实现5分钟倒计时。用Timer_A实现1s定时,4位共阳型数码管显示时间,显示格式为:“x-xx”,分别代表“分”、“十秒”和“秒”。每隔1s,倒计时器的时间减1,倒计时从4分59秒开始计时,至0分0秒结束,停止计时。(It contains 6 experimental procedures and an example program. 1: programming, in a digital tube static display of digital 0~F. 2: programming, display the number 0123 on the 4 digital tube by dynamic way. 3: use a button to control the light of the small lights, every time the button is pressed, the small lamp state changes once.)
Date
: 2025-12-26
Size
: 1.07mb
User
:
李云龙777
CodeBus
is one of the largest source code repositories on the Internet!
Contact us :
1999-2046
CodeBus
All Rights Reserved.