代码搜索结果
找到约 10,000 项符合
Switch 的代码
switch.c
#include
void Switchdemo(void)
{ Byte outputstate;
switch(outputstate)
{case 1:
P1_0=0;
P1_1=0;
P1_2=0;
break; //跳出循环
case 2:
P1_0=1;
P1_1=0;
P1_2=0;
break;
switch_a.plg
Build target 'Target 1'
compiling SCH51.C...
compiling MAIN.C...
compiling SWIT_A.C...
compiling LED_SWIT.C...
compiling 0_01_12G.C...
linking...
creating hex file from "Switch_A"...
"Switch_A" - 0 Er
switch_a.hex
:03000300011600E3
:10018F00E4F51AE51A75F007A4240EF8E6D39400E7
:10019F004032E51A75F007A42408F8E6FE08E6AA2F
:1001AF0006F91202B1E51A75F007A4240EF816E548
:1001BF001A75F007A4240CF8E6FE08E64E7005AF9A
:
switch_a.lnp
"SCH51.obj",
"MAIN.obj",
"SWIT_A.obj",
"LED_SWIT.obj",
"0_01_12G.obj"
TO "Switch_A"
RAMSIZE(64)
OVERLAY (main ~ (SWITCH_Update, LED_Flash_Switch_Update), SCH_Dispatch_Tasks ! (SWITCH_Update,
switch_a.opt
### uVision2 Project, (C) Keil Software
### Do not modify !
cExt (*.c)
aExt (*.a*; *.src)
oExt (*.obj)
lExt (*.lib)
tExt (*.txt)
pExt (*.plm)
DaveTm { 0,0,0,0,0,0,0,0 }
Target (Tar
switch.c
# include
void main()
{
int num;
/* 下面定义的各变量,分别代表个位,十位,百位,千位,万位,十万位以及位数 */
int indiv, ten, hundred, thousand;
int ten_thousand, hundred_thousand, place;
printf("请输入一个整数(0~99
switch.jhd
MODULE switch
switch.vhd
-- 库声明
library IEEE;
use IEEE.STD_LOGIC_1164.all;
-- 实体声明
entity switch is
port (
din1 : in STD_LOGIC;
din2 : in STD_LOGIC;
sel : in STD_LOGIC;
dout : out STD_LO
switch.jhd
MODULE switch
switch.vhd
-- 库声明
library IEEE;
use IEEE.STD_LOGIC_1164.all;
-- 实体声明
entity switch is
port (
din1 : in STD_LOGIC;
din2 : in STD_LOGIC;
sel : in STD_LOGIC;
dout : out STD_LO