⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 chap.5.parallel_io.ps

📁 嵌入开发笔记 用ps阅读器打开
💻 PS
📖 第 1 页 / 共 3 页
字号:
2313(indicate)X2648(this)X2816(condition)X3209(to)X3313(the)X3460(computer,)X3877(which)X4141(will)X576 4622(then)N778(close)X1012(the)X1166(input)X1400(valves)X1682(and)X1857(open)X2080(the)X2234(output)X2516(valve.)X2809(Each)X3038(of)X3154(the)X3308(control)X3617(points)X3888(shown)X4173(are)X576 4734(binary)N846(valued.)X10 f776 4846(g)N1 f834(Valve)X1088(input)X1310(A)X1403(:)X1454(0)X1526(=)X1604(closed)X1874(;)X1925(1)X1997(=)X2075(open)X10 f776 4958(g)N1 f834(Value)X1088(input)X1310(B)X1398(:)X1449(0)X1521(=)X1599(closed)X1869(;)X1920(1)X1992(=)X2070(open)X10 f776 5070(g)N1 f834(Level)X1078(sensor)X1347(:)X1398(0)X1470(=)X1548(not)X1695(full)X1853(;)X1904(1)X2000(=)X2078(full)X10 f776 5182(g)N1 f834(Valve)X1088(output)X1358(:)X1409(0)X1481(=)X1559(closed)X1829(;)X1880(1)X1952(=)X2030(open)X576 5294(From)N811(the)X956(point)X1181(of)X1288(view)X1502(of)X1609(the)X1754(computer,)X2169(the)X2314(valves)X2587(are)X2732(outputs,)X3067(and)X3234(the)X3380(sensor)X3653(is)X3745(an)X3864(input.)X4114(That)X576 5406(is,)N700(the)X854(computer)X1253(will)X2 f1438(write)X1 f1671(0's)X1823(or)X1938(1's)X2090(to)X2200(some)X2438(device)X2725(interface)X3098(to)X3208("tell")X3445(the)X3598(valves)X3879(to)X3989(open)X4211(or)X576 5518(close.)N850(The)X1028(computer)X1420(will)X2 f1598(read)X1 f1826(the)X1972(level)X2188(sensor)X2461(input)X2687(to)X2790(determine)X3205(whether)X3544(the)X3691(vessel)X3955(is)X4048(full)X4211(or)X576 5630(not.)N777(Again)X1042(the)X1190(condition)X1584(of)X1694(being)X1938(full,)X2126(or)X2236(not)X2389(full,)X2577(is)X2671(associated)X3096(with)X3296(one)X3464(of)X3573(two)X3746(binary)X4021(values,)X576 5742("0")N726(or)X830("1".)X48 p%%Page: 48 312 s 0 xH 0 xS 1 f3 f576 400(57:017)N872(CIE)X1 f2329(-)X2385(48)X2505(-)X3 f3717(Lecture)X4062(Notes)X576 803(5.2.)N768(Peripheral)X1231(Interface)X1629(Chips)X1 f776 943(To)N910(allow)X1152(a)X1223(wide)X1438(range)X1680(of)X1788(devices)X2105(to)X2208(be)X2327(interfaced)X2741(in)X2844(a)X2915(somewhat)X3333(uniform)X3671(manner,)X4012(what)X4227(is)X576 1055(needed)N885(are)X1039(some)X1278(memory-mapped)X1972(locations)X2356(which)X2627(have)X2845(external)X3192(connections)X3688(associated)X4120(with)X576 1167(individual)N991(bits)X1154(as)X1258(shown:)X11 s3261 1744 MXY0 -432 Dl-1583 0 Dl0 432 Dl1583 0 Dl2607 MY0 -432 Dl-1583 0 Dl0 432 Dl1583 0 Dl1728 1801 MXY-14 -57 Dl1699 1801 MXY14 -57 Dl0 431 Dl1699 2117 MXY14 57 Dl1728 2117 MXY-14 57 Dl1764 1801 MXY-14 -57 Dl1735 1801 MXY14 -57 Dl1750 MX0 431 Dl1735 2117 MXY14 57 Dl1764 2117 MXY-14 57 Dl2160 1801 MXY-14 -57 Dl2131 1801 MXY14 -57 Dl0 431 Dl2131 2117 MXY14 57 Dl2160 2117 MXY-14 57 Dl2268 1801 MXY-14 -57 Dl2239 1801 MXY14 -57 Dl2254 MX0 431 Dl2239 2117 MXY14 57 Dl2268 2117 MXY-14 57 Dl2304 1801 MXY-14 -57 Dl2275 1801 MXY14 -57 Dl0 431 Dl2275 2117 MXY14 57 Dl2304 2117 MXY-14 57 Dl2555 1801 MXY-14 -57 Dl2527 1801 MXY14 -57 Dl0 431 Dl2527 2117 MXY14 57 Dl2555 2117 MXY-14 57 Dl2771 1801 MXY-14 -57 Dl2743 1801 MXY14 -57 Dl0 431 Dl2743 2117 MXY14 57 Dl2771 2117 MXY-14 57 Dl2808 1801 MXY-14 -57 Dl2779 1801 MXY14 -57 Dl0 431 Dl2779 2117 MXY14 57 Dl2808 2117 MXY-14 57 Dl3168 1801 MXY-14 -57 Dl3139 1801 MXY14 -57 Dl0 431 Dl3139 2117 MXY14 57 Dl3168 2117 MXY-14 57 Dl1713 2607 MXY0 432 Dl1699 2981 MXY14 57 Dl1728 2981 MXY-14 57 Dl1785 2607 MXY0 432 Dl1771 2981 MXY14 57 Dl1800 2981 MXY-14 57 Dl2110 2607 MXY0 432 Dl2095 2981 MXY14 57 Dl2124 2981 MXY-14 57 Dl3225 3039 MXY0 -432 Dl3240 2665 MXY-14 -57 Dl3211 2665 MXY14 -57 Dl3153 3039 MXY0 -432 Dl3168 2665 MXY-14 -57 Dl3139 2665 MXY14 -57 Dl2829 3039 MXY0 -432 Dl2843 2665 MXY-14 -57 Dl2815 2665 MXY14 -57 Dl12 s1822 1993(Address)N2326 1995(Data)N2829(Control)X22 s1857 2087(.)N1945(.)X2033(.)X1857 1851(.)N1945(.)X2033(.)X2326(.)X2414(.)X2502(.)X2326 2103(.)N2414(.)X2502(.)X2865(.)X2953(.)X3041(.)X2865 1851(.)N2953(.)X3041(.)X14 s2110 1576(CPU)N2355(\(68000\))X2739(Chip)X2721 3183(External)N3129(Inputs)X1606(External)X2014(Outputs)X1720 3298(E.g.,)N1956(+-5V)X1793 3428(Lamps)N2808 3442(Switches)N22 s1857 2810(.)N1945(.)X2033(.)X2865 2823(.)N2953(.)X3041(.)X14 s2779 3318(E.g.,)N3015(+-5V)X1966 2427(Peripheral)N2456(\(8255\))X2784(Chip)X3 f12 s1659 3647(Figure)N1956(5.2.)X2124(Relationship)X2665(of)X2769(Peripheral)X1741 3759(Chip)N1967(\(8255\))X2247(to)X2351(CPU)X2572(\(68000\))X2900(Chip.)X1 f576 3919(In)N689(the)X840(case)X1039(of)X1152(the)X1303(chemical)X1685(process)X2006(example,)X2390(3)X2471(of)X2584(the)X2735(external)X9 f3079(\261)X1 f3165(5)X3246(volt)X3430(outputs)X3747(could)X3995(be)X4120(con-)X576 4031(nected)N864(to)X975(switches)X1342(which)X1613(would)X1889(in)X2000(turn)X2191(control)X2500(the)X2654(states)X2904(of)X3020(valves.)X3350(One)X3546(of)X3662(the)X9 f3816(\261)X1 f3904(5V)X4056(inputs)X576 4143(could)N824(be)X949(associated)X1380(with)X1586(the)X1739(level)X1962(sensor.)X2290(The)X2475(interface)X2848(chip)X3049(shown,)X3358(the)X3511(AMD)X3769(8255)X3996(Parallel)X576 4255(Interface)N952(makes)X1231(this)X1403(interfacing)X1854(possible.)X2250(Like)X2459(the)X2609(68000,)X2905(the)X3055(8255)X3279(has)X3439(a)X3514(collection)X3927(of)X4039(device)X576 4367(registers.)N989(These)X1259(registers)X1625(are)X1783(then)X1989(mapped)X2334(to)X2449(memory)X2810(locations)X3198(in)X3313(the)X3471(address)X3799(space)X4053(of)X4173(the)X576 4479(68000,)N864(to)X963(be)X1078(read)X1268(and/or)X1538(written.)X776 4619(The)N952(8255)X1170(has)X1324(24)X1446(parallel)X1762(port)X1943(bits.)X2156(Each)X2375(of)X2481(these)X2705(24)X2827(bits)X2992(can)X3152(be)X3269(independently)X3841(set)X3975(up)X4098(to)X4200(be)X576 4731(an)N698(input)X927(or)X1038(output.)X1363(The)X1544(24)X1671(bits)X1841(are)X1989(accessed)X2356(from)X2573(the)X2721(68000)X2991(CPU)X3207(via)X3355(three)X3578(8-bit)X3790(device)X4072(regis-)X576 4843(ters:)N1056 4983(Mem.)N1307(location)X2256(Register)X2601(name)X1056 5095($FE050000)N2016(Port)X2200(A)X2293(Register)X2638(\(PAreg\))X1056 5207($FE050010)N2016(Port)X2200(B)X2288(Register)X2633(\(PBreg\))X1056 5319($FE050020)N2016(Port)X2200(C)X2288(Register)X2633(\(PBreg\))X49 p%%Page: 49 412 s 0 xH 0 xS 1 f3 f576 400(57:017)N872(CIE)X1 f2329(-)X2385(49)X2505(-)X3 f3717(Lecture)X4062(Notes)X1 f11 s3207 1287 MXY0 -144 Dl-1151 0 Dl0 144 Dl1151 0 Dl2200 855(.)N2200 876(.)N2200 896(.)N2200 917(.)N2200 937(.)N2200 958(.)N2200 978(.)N2200 999(.)N2344 855(.)N2344 876(.)N2344 896(.)N2344 917(.)N2344 937(.)N2344 958(.)N2344 978(.)N2344 999(.)N2487 855(.)N2487 876(.)N2487 896(.)N2487 917(.)N2487 937(.)N2487 958(.)N2487 978(.)N2487 999(.)N2631 855(.)N2631 876(.)N2631 896(.)N2631 917(.)N2631 937(.)N2631 958(.)N2631 978(.)N2631 999(.)N2775 855(.)N2775 876(.)N2775 896(.)N2775 917(.)N2775 937(.)N2775 958(.)N2775 978(.)N2775 999(.)N2919 855(.)N2919 876(.)N2919 896(.)N2919 917(.)N2919 937(.)N2919 958(.)N2919 978(.)N2919 999(.)N3063 855(.)N3063 876(.)N3063 896(.)N3063 917(.)N3063 937(.)N3063 958(.)N3063 978(.)N3063 999(.)N2200 1143(.)N2200 1164(.)N2200 1184(.)N2200 1205(.)N2200 1225(.)N2200 1246(.)N2200 1266(.)N2200 1287(.)N2344 1143(.)N2344 1164(.)N2344 1184(.)N2344 1205(.)N2344 1225(.)N2344 1246(.)N2344 1266(.)N2344 1287(.)N2487 1143(.)N2487 1164(.)N

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -