The design of circuit of 4 BCD coder that uses odd chip machine gives the introduction at check of journey of lathe tailstock arbor

  • Time:
  • Click:211
  • source:GERHOLD CNC Machining
Code of 1 introductive BCD says again 2 / decimal code, namely the decimal code that the binary system codes, in design, test process of digital circuit hardware or be when facing the integrated circuit that contains BCD to pile up an interface, often hope convenient, apace produces BCD code to complete current work, examine the validity of hardware circuit, lock up photograph frequency to synthesize integrated circuit MC145163P to contain interface of 4 BCD encode for example, use at installing scale down of annulus road N implement, pass through article introduction and make the BCD generator after finishing can offer output of 4 BCD encode, control every BCD output conveniently, the BCD encode interface that apace gets BCD codes and can finish test or output BCD encode to receive integrated circuit, need not jump often line. Additional, BCD encode has 8421 code, a variety of 2421 code, more than 3 forms such as the code, the article is an implementation that introduces circuit and program with 8421 common write. It is OK to if be added slightly to the program,be revised very the encode mode that achieves other kind conveniently (be like 2421) . This circuit designed 4 × for core with AT89C2051 the matrix clavier of 4 (S0-S15) , need to press on clavier only so corresponding key-press (S0-S9) can produce a correspondence namely (decimal 0-9) BCD code, pass through setting switch key-press (S10-S13) a of the random in can controlling 4 at will, with the number the canal shows current BCD piles up corresponding decimal numeral in real time during. 4 BCD encode outputs circuit function and characteristic ︰, use sheet piece machine opening line is OK and patulous digit. Date of key of 0- of date of the key in changing software 9 (namely S0-S9 correspondence function) the program can implement other encode form (be like 2421) . Refer to software part. Circuit is with 8421 commonly used exemple, the decimal numeral that the number shows correspondence (also can omit) . The matrix clavier scanning of 4 carries out complete 4 × program, in can transplanting to use circuit to other. BCD encode realizes signal lock to put by Suo Cunqi, make range of out of bounds, circuit of convenient join other. "" control and each other of 0-9 encode output are not affected, the BCD encode that presses function key can obtain need directly is outputted and " digit " choice. If the graph is shown 1 times,principle of circuit of 2 circuit block diagram pursues. The P1 mouth of AT89C2051 of 3 circuit analysis comprises 4 × 4 matrix clavier (S0-S15) , among them P1.

0-P1.

3 as travel line, p1.

4-P1.

7 regard a row as the line, program of design clavier scanning can achieve the function that assumes beforehand (see software designs a part) . Press S0-S9 can generate the BCD code of correspondence of 0-9 decimal numeral, s10-S13 uses as the switch key-press that 4 BCD pile up, of short duration of S14, S15 was not used, need not install, p3.

3-P3.

The 0 data that are BCD code output a line, can see from inside circuit, realize output of 4 BCD encode because of function clavier, apparent P3.

3-P3.

0 be discharged as data converge and receive at the same time in 4 D Suo Cunqi (4042) , come through S10-S13 switch, to 4 D Suo Cunqi (U3-U6) have only every time effective and P3.

3-P3.

The data of 0 " read in " lock up next put. Actually S10-S13 controls P3.

4 with P3.

The condition of 5 (P3.

4 with P3.

5 have 4 kinds of combination in all) pass through 2-4 line encoder (U2; 74LS139) the effective signal that gets corresponding U3-U6, express the 1 each chip position that is correspondence of S10-S13 control place, visible, the random in U3-U6 (for example U3) be in significant position and " read in " P3.

3-P3.

When 0 data, of the others (U4/U5/U6) be in a lock to retain position, withhold original data, the person that use accordingly can be in random in the BCD that changes a hope piles up output. Normal LINE-HEIGHT of U3~U6 chip condition with corresponding control of S10-S13 of 150%" Align=center> watch: 150%"> key-press Normal >P3.

4 (B) Normal >P3.

5 (A) Normal >U2: 74LS139 outputs Normal LINE-HEIGHT of 150%"> real function: 150%">Y0normal >Y1normal >Y2normal >Y3normal >U3 is effective, u4/U5/U6 is in a lock to retain position, maintain Normal >S10normal >0normal >0normal >0normal >1normal >1normal >1normal >U3 is effective, u4/U5/U6 is in a lock to retain position, maintain Normal >S11normal >0normal >1normal >1normal >0normal >1normal >1normal >U4 is effective, u3/U5/U6 is in a lock to retain position, maintain Normal >S12normal >1normal >0normal >1normal >1normal >0normal >1normal >U5 is effective, u3/U4/U6 is in a lock to retain position, maintain Normal >S13normal >1normal >1normal >1normal >1normal >1normal >0normal >U6 is effective, u3/U4/U5 is in a lock to retain position, maintain U2 (74LS139) it is 2-4 line encoder, express on result visibility, his input carries B, a is received respectively to P3.

4, p3.

5, output carries Y0-Y3 to depend on the combination that inputs end, only an output is carried below every kinds of combination (Y0-Y3) output effectively with low n. U3-U6 is D Suo Cunqi, basically be among them 5 feet and the working position that 6 bases concern decides them, consult the data is informed, when 5 feet and potential of 6 feet logic are same, this chip can output D3-D0 data to Q3-Q0; When 5 feet and potential of 6 feet logic are different, this chip is in a lock to retain the position of original data, and won't " read in " current D3-D0 data, secure the 6 bases of U3-U6 in circuit receive low potential, and 5 feet use U2 respectively (74LS139) output signal will control, come true not hard " the setting that OK and alone implementation piles up to each BCD " . 4511 it is coding drive, receive in all shade number canal shows current the decimal numeral of correspondence of every BCD code place, convenient observation, indication part is very simple, be absent here give uncecessary details, in the meantime, indication part is not on circuit must, can omit, BCD code is mixed through J3 J2 is derivative, link with two implement it is for more agile, convenient use. 4 software design basically is implementation clavier processing, must affirming in the program is which key-press is pressed, turn in corresponding processing program to carry out next, actually this program is a whole clavier scanning process, if alter in the among them control circuit that handles second program is complete OK to other applying. The task of clavier scanning program is told simply even if ︰ affirms above all whether key-press presses, get next through scanning judgement is the key-press in which group, pass through finally 4 form of set are searched and calculate beforehand quite get specific key-press, turn to corresponding functional program thereby. The corresponding processing function that bolts about each is simpler, want corresponding and different key-press to input corresponding control command only, to S0-S9 it is control P3.

3-P3.

0 different position code with getting the BCD of a correspondence, to S10-S13 it is control P3.

4, p3.

The condition of 5 is opposite with coming true the control of U3-U6, length of be confined to, detailed content can refer to a program, control of one by one is when the program begins to carry out output of 4 BCD encode, corresponding digital canal is ordinal show, initiative condition is 0001, 0000, 0000, 0000 4 BCD code parts from J3, j2 is derivative, digital canal shows for 1, 0, 0, 0. 5 use coder of position of NSD very form example of application of tie-in and special controller is graphic: Component sets a plan: Tradition and NSD product detect controller of difference graph NSD and coder of very form position pursue traditional type detects means pursues 6 conclusion: (1) traditional pattern detects means: The function suffers be restricted, need multibarrel layout, economic effect not beautiful, of workpiece of more inaccessible little difference detect movement. (2) NSD product detects means: The function is more extensive, odd bout gives line and single control line, can manage function of call of 0~32 group program and respective 0~15 group (ON/OFF) switch, set of switch limits random, workpiece not difference value is more than 0.

004mm above all can decide, practical tall. CNC Milling