電路連接 由于數(shù)碼管品種多樣,還有共陰共陽的,下面我們使用一個數(shù)碼管段碼生成器(在文章結(jié)尾) 去解決不同數(shù)碼管的問題: 本例作者利用手頭現(xiàn)有的一位不知品牌的共陽數(shù)碼管:型號D5611 A/B,在Eagle 找了一個 類似的型號SA56-11,引腳功能一樣可以直接代換。所以下面電路圖使用SA56-11 做引腳說明。 注意: 1. 將數(shù)碼管的a~g 段,分別接到Arduino 的D0~D6 上面。如果你手上的數(shù)碼管未知的話,可以通過通電測量它哪個引腳對應(yīng)哪個字段,然后找出a~g 即可。 2. 分清共陰還是共陽。共陰的話,接220Ω電阻到電源負極;共陽的話,接220Ω電阻到電源+5v。 3. 220Ω電阻視數(shù)碼管實際工作亮度與手頭現(xiàn)有原件而定,不一定需要準確。 4. 按下按鈕即停。 源代碼 由于我是按照段碼生成器默認接法接的,所以不用修改段碼生成器了,直接在段碼生成器選擇共陽極,再按“自動”生成數(shù)組就搞定。 下面是源代碼,由于偷懶不用寫循環(huán),使用了部分AVR 語句。 PORTD 這個是AVR 的端口輸出控制語句,8 位對應(yīng)D7~D0,PORTD=00001001 就是D3 和D0 是高電平。 PORTD = a;就是找出相應(yīng)的段碼輸出到D7~D0。 DDRD 這個是AVR 語句中控制引腳作為輸出/輸入的語句。DDRD = 0xFF;就是D0~D7 全部 作為輸出腳了。 ARDUINO CODECOPY /* Arduino 單數(shù)碼管骰子 Ansifa 2011-12-28 */ //定義段碼表,表中十個元素由LED 段碼生成器生成,選擇了共陽極。 inta[10] = {0xC0, 0xF9, 0xA4, 0xB0, 0x99, 0x92, 0x82, 0xF8, 0x80, 0x90}; voidsetup() { DDRD = 0xFF; //AVR 定義PortD 的低七位全部用作輸出使用。即0xFF=B11111111對 應(yīng)D7~D0 pinMode(12, INPUT); //D12用來做骰子暫停的開關(guān) } voidloop() { for(int i = 0; i < 10; i++) { //將段碼輸出PortD 的低7位,即Arduino 的引腳D0~D6,這樣需要取出PORTD 最高位,即 D7的狀態(tài),與段碼相加,之后再輸出。 PORTD = a[i]; delay(50); //延時50ms while(digitalRead(12)) {} //如果D12引腳高電平,則在此死循環(huán),暫停LED 跑 動 } }
上傳時間: 2013-10-15
上傳用戶:baitouyu
Abstract: Perfection is relative and application specific. The perfect race car is not the car we use to commute to work. We need products for everyday use that are high quality, affordable, and solidly reliable. There will be times when we must use components that are not perfect, and this is when calibration becomes important. Calibration techniques reduce tolerances in imperfect manufacturing equipment while maintaining affordability.
標簽: 校準
上傳時間: 2013-10-09
上傳用戶:哈哈hah
The MAX17600–MAX17605 devices are high-speedMOSFET drivers capable of sinking /sourcing 4A peakcurrents. The devices have various inverting and noninvertingpart options that provide greater flexibility incontrolling the MOSFET. The devices have internal logiccircuitry that prevents shoot-through during output-statchanges. The logic inputs are protected against voltagespikes up to +14V, regardless of VDD voltage. Propagationdelay time is minimized and matched between the dualchannels. The devices have very fast switching time,combined with short propagation delays (12ns typ),making them ideal for high-frequency circuits. Thedevices operate from a +4V to +14V single powersupply and typically consume 1mA of supply current.The MAX17600/MAX17601 have standard TTLinput logic levels, while the MAX17603 /MAX17604/MAX17605 have CMOS-like high-noise margin (HNM)input logic levels. The MAX17600/MAX17603 are dualinverting input drivers, the MAX17601/MAX17604 aredual noninverting input drivers, and the MAX17602 /MAX17605 devices have one noninverting and oneinverting input. These devices are provided with enablepins (ENA, ENB) for better control of driver operation.
標簽: 17600 MAX 數(shù)據(jù)資料
上傳時間: 2013-12-20
上傳用戶:zhangxin
Abstract: Alexander Graham Bell patented twisted pair wires in 1881. We still use them today because they work so well. In addition we have the advantage ofincredible computer power within our world. Circuit simulators and filter design programs are available for little or no cost. We combine the twisted pair and lowpassfilters to produce spectacular rejection of radio frequency interference (RFI) and electromagnetic interference (EMI). We also illustrate use of a precision resistorarray to produce a customizable differential amplifier. The precision resistors set the gain and common mode rejection ratios, while we choose the frequencyresponse.
上傳時間: 2014-11-26
上傳用戶:Vici
With more and more multi-frequency clocks being used in today's chips, especially in the communications field, it is often necessary to switch the source of a clock line while the chip is running.
上傳時間: 2013-10-10
上傳用戶:1214209695
The LT®6552 is a specialized dual-differencing 75MHzoperational amplifier ideal for rejecting common modenoise as a video line receiver. The input pairs are designedto operate with equal but opposite large-signal differencesand provide exceptional high frequency commonmode rejection (CMRR of 65dB at 10MHz), therebyforming an extremely versatile gain block structure thatminimizes component count in most situations. The dualinput pairs are free to take on independent common modelevels, while the two voltage differentials are summedinternally to form a net input signal.
上傳時間: 2014-12-23
上傳用戶:13691535575
Photodiodes can be broken into two categories: largearea photodiodes with their attendant high capacitance(30pF to 3000pF) and smaller area photodiodes withrelatively low capacitance (10pF or less). For optimalsignal-to-noise performance, a transimpedance amplifi erconsisting of an inverting op amp and a feedback resistoris most commonly used to convert the photodiode currentinto voltage. In low noise amplifi er design, large areaphotodiode amplifi ers require more attention to reducingop amp input voltage noise, while small area photodiodeamplifi ers require more attention to reducing op amp inputcurrent noise and parasitic capacitances.
上傳時間: 2013-10-28
上傳用戶:hanbeidang
The MAX2691 low-noise amplifier (LNA) is designed forGPS L2 applications. Designed in Maxim’s advancedSiGe process, the device achieves high gain andlow noise figure while maximizing the input-referred 1dBcompression point and the 3rd-order intercept point. TheMAX2691 provides a high gain of 17.5dB and sub 1dBnoise figure.
標簽: Amplifier Low-Noise 2691 Band
上傳時間: 2014-12-04
上傳用戶:zaocan888
The LM20, LM45, LM50, LM60, LM61, and LM62 are analog output temperature sensors. They have various output voltage slopes (6.25mV/°C to 17mV/°C) and power supply voltage ranges (2.4V to 10V).The LM20 is the smallest, lowest power consumption analog output temperature sensor National Semiconductor has released. The LM70 and LM74 are MICROWIRE/SPI compatible digital temperature sensors. The LM70 has a resolution of 0.125°C while the LM74 has a resolution of 0.625°C. The LM74 is the most accurate of the two with an accuracy better than ±1.25°C. The LM75 is National’s first digital output temperature sensor, released several years ago.
標簽: temperatu tiny 遠程系統(tǒng) 溫度傳感器
上傳時間: 2014-12-23
上傳用戶:yl8908
This document provides practical, common guidelines for incorporating PCI Express interconnect layouts onto Printed Circuit Boards (PCB) ranging from 4-layer desktop baseboard designs to 10- layer or more server baseboard designs. Guidelines and constraints in this document are intended for use on both baseboard and add-in card PCB designs. This includes interconnects between PCI Express devices located on the same baseboard (chip-to-chip routing) and interconnects between a PCI Express device located “down” on the baseboard and a device located “up” on an add-in card attached through a connector. This document is intended to cover all major components of the physical interconnect including design guidelines for the PCB traces, vias and AC coupling capacitors, as well as add-in card edge-finger and connector considerations. The intent of the guidelines and examples is to help ensure that good high-speed signal design practices are used and that the timing/jitter and loss/attenuation budgets can also be met from end-to-end across the PCI Express interconnect. However, while general physical guidelines and suggestions are given, they may not necessarily guarantee adequate performance of the interconnect for all layouts and implementations. Therefore, designers should consider modeling and simulation of the interconnect in order to ensure compliance to all applicable specifications. The document is composed of two main sections. The first section provides an overview of general topology and interconnect guidelines. The second section concentrates on physical layout constraints where bulleted items at the beginning of a topic highlight important constraints, while the narrative that follows offers additional insight.
標簽: pci PCB 設(shè)計規(guī)范
上傳時間: 2013-10-15
上傳用戶:busterman
蟲蟲下載站版權(quán)所有 京ICP備2021023401號-1