This book addresses programmer attitudes, but it’s not some kind of psychology textbook. We’ll investigate many topics, including: Source code presentation Defensive coding techniques How to debug programs effectively Good teamworking skills Managing your source code Take a quick glance through the table of contents to see exactly what’s covered. What is the rationale behind my selection of topics? I’ve been mentor- ing trainee programmers for many years, and these are the topics that have come up time and time again. I’ve also worked in the software factory for long enough to have seen the recurring problems—I address these too. If you can conquer all of these programming demons, you’ll progress from an apprentice coder to a real code craftsman.
標簽: excellent practice writing Craft Code code the of
上傳時間: 2021-11-09
上傳用戶:danix800
74HC595 A4950 MAX3232 ULN2003AD STM32F207VCT6 AD集成封裝庫,原理圖庫器件型號列表:Library Component Count : 53Name Description----------------------------------------------------------------------------------------------------1N4148 High Conductance Fast Diode1N4448 High Conductance Fast Diode1N914 High Conductance Fast Diode1N914A High Conductance Fast Diode1N914B High Conductance Fast Diode1N916 High Conductance Fast Diode1N916A High Conductance Fast Diode1N916B High Conductance Fast Diode2N3904 NPN General Purpose Amplifier74ALS86 74HC595 8M貼片晶振 A4950 直流電機驅動AO4805CAP CapacitorCAP SMD CapacitorCON2 ConnectorCON2*10 ConnectorCON2*12P ConnectorCON2*7 ConnectorCON2*9 ConnectorCON3 ConnectorCON4 ConnectorCON5 ConnectorCON7 ConnectorCap Pol 極性電解電容DIODE DiodeFUSE1 FuseFUSE2 FuseINDUCTOR2 IRF7351PbF N-MOSJS1-12V-FLED MAX487 MAX809RD R0.125 Less than 1/4 Watt Power Resistor.RES2 RGRPI*4 Res1 ResistorSGM8955XN5G/TR 測量放大器SM712 SN74LV4052AD SP3232ESST25VF016B-50-4I-S2AFI2C Real-Time Clock.STM32F107VTC6 STM32F107VTC6SW DIP-4 編碼開關SW-PB SwitchTPS54302 45UA靜態電流 3ATVS SMBJ30CAULN2003 XC6214XTAL Crystal OscillatorPCB封裝庫列表:Component Count : 40Component Name-----------------------------------------------4G模塊-外置7D181K0603-LED0603C0603R0805C12061210181232255569-2*1P直針5569-2*2P直針AT-26CAP-D8DO-214AANHSOP-8J-SPDT-5JTAGL
上傳時間: 2021-11-15
上傳用戶:ttalli
Util para programar en plc SIEMENS enlazado con FactoryI/OFactory I/O es un software para automatización en tiempo real donde se puede construir y simular sistemas industriales y utilizarlos con las tecnologías de automatización más comunes. Esta simulación es totalmente interactiva e incluye gráficos de alta calidad y sonido, proporcionando un entorno realista industrial.Factory I/O utiliza una tecnología innovadora que permite una creación fácil y rápida de los sistemas industriales en 3D con solo arrastrar y soltar. Cualquiera de los sistemas construidos se pueden controlar en tiempo real mediante la conexión de Factory I/O y equipos externos como PLC′s, microcontroladores, FPGA, etc.Factory I/O es una valiosa herramienta de ense?anza para la formación de futuros técnicos e ingenieros en varios programas y cursos tales como automatización industrial, Mecatrónica, Ingeniería Eléctrica, Ingeniería Mecánica, Instrumentación y muchos más.Plantillas para Tia PortalTenga en cuenta que debe utilizar un proyecto de plantilla de TIA Portal al conectarse a S7-PLCSIM v13-16. La E / S de Factory IO no podrá comunicarse con S7-PLCSIM de lo contrario.
上傳時間: 2022-01-30
上傳用戶:
設計了農業溫濕度智能控制系統,該系統采用DHT11溫濕度傳感器作為溫濕度采集模塊,單片機選用AT89C52代替并調用Virtual terminal模擬串口通信,LCD1604液晶顯示器實時顯示溫濕度,實現了溫濕度的測量、顯示,可自動控制加熱、降溫、加濕、通風,實現溫濕度控制以及超限報警處理,并利用Proteus與Keil進行實際電路的仿真。試驗表明,該系統實現了可靠的溫濕度監控。We described the design of an intelligent control system of agriculture temperature and humidity.The system uses DHT11 temperature and humidity sensor as the temperature and humidity acquisition module.The SCM adopts AT89C52 to replace and call the virtual terminal for simulating serial communication.LCD1604 displays temperature and humidity in real time,which implements the measurement and display of temperature and humidity.The system is able to automatically control heating,cooling,humidification and ventilation,to achieve temperature and humidity control and over-limit alarm processing.The system also uses Proteus and Keil for actual circuit simulation.The experiment shows that the system is capable of reliable temperature and humidity monitoring.
上傳時間: 2022-03-26
上傳用戶:aben
配電網中,各種配電終端的電流、電壓、有功功率及無功功率等模擬量的采集是配電網自動化的重要環節。這些模擬量的采集也是各種儀器和家用電器的必要功能。因此,設計了基于嵌入式STM32F103單片機的交流電壓、交流電流及有功功率的采集系統,通過電壓互感器TV1005M和電流互感器TA1005M分別檢測交流電壓和交流電流值;屏幕或者手機APP和WiFi模塊互聯后,可以實時顯示交流電壓、交流電流、功率及電量值;通過設定閾值功率,可以實現對電流的監控和對電路的保護。In the distribution network,the collection of analog,such as current,voltage,active power,and reactive power at various distribution terminals is a very important part of distribution network automation. These analog acquisitions are also for various instruments and household appliances. Very important technology. Therefore,an AC voltage,AC current and active power acquisition system based on embedded STM32 F103 machine is designed,and AC voltage and AC current values are detected by voltage transformer TV1005 M and current Transformer TA1005 M respectively;After the screen or mobile phone APP and WiFi modules are interconnected,AC voltage,AC current,power,and power values can be displayed in real time;By setting the threshold power,the current can be monitored and the circuit can be protected.
上傳時間: 2022-03-27
上傳用戶:shjgzh
設計了自動控制系統綜合實驗案例“基于LabVIEW和單片機的溫度控制系統設計”。實驗系統硬件部分由單片機、溫度傳感器、D/A轉換模塊、調壓模塊和電烤箱組成,設計了單片機與各個模塊之間的接口電路。軟件部分采用LabVIEW軟件實現控制算法,并設計監控界面實現參數設定、溫度數據實時監控等功能。設計了單片機與LabVIEW軟件之間的串口通信程序,實現了輸入、輸出數據的傳輸。通過綜合實驗系統設計,使學生得到控制系統設計和實驗調試等綜合能力的訓練。A comprehensive experimental case of the automatic control system is presented,which is the design of the temperature control system based on LabVIEW and SCM.The hardware part of the experimental system is composed of the SCM,temperature sensor,D/A conversion module,voltage regulating module and electric oven.The interface circuit between the SCM and each module is designed.In the software part,LabVIEW software is used to realize the control algorithm,and the monitoring interface is designed to realize the functions of parameter setting,temperature data real-time monitoring,etc.The serial communication program between the SCM and LabVIEW software is designed to realize the transmission of input and output data.Through the design of this comprehensive experimental system,students can get the comprehensive ability training for the control system design,experiment debugging,etc.
上傳時間: 2022-03-27
上傳用戶:qdxqdxqdxqdx
因此,您想編寫一個內核模塊。您知道C,您已經編寫了一些可以作為進程運行的常規程序,現在您想知道真正的動作在哪里,一個通配指針可以擦掉文件系統,核心轉儲意味著重新啟動。內核模塊到底是什么?模塊是可以根據需要加載和卸載的代碼段。它們擴展了內核的功能,而無需重新引導系統。例如。模塊驅動程序的一種類型是設備驅動程序,它允許內核訪問沒有模塊的系統硬件,我們將不得不構建單片內核并將新功能直接添加到內核映像中,除了具有更大的內核之外,這還具有缺點每次我們想要新功能時都要求我們重建并重新啟動內核的過程So, you want to write a kernel module. You know C, you, ve written a few normal programs to run as processes, and now you want to get to where the real action is, to where a single wild pointer can wipe out your file system and a core dump means a reboot.What exactly is a kernel module? Modules are pieces of code that can be loaded and unloaded into th upon demand. They extend the functionality of the kernel without the need to reboot the system. For example.one type of module is the device driver, which allows the kernel to access hardware connected to the syste without modules, we would have to build monolithic kernels and add new functionality directly into the em ernel image, Besides having larger kernels
標簽: linux
上傳時間: 2022-03-30
上傳用戶:
為了實時檢測血氧量,能使缺氧特別敏感的腦組織或心臟類疾病患者得到及時治療,采用近紅外雙波長透射式光電脈搏血氧測定法,以H橋電路對發射光源進行控制及通用運算放大器搭建濾波電路。運用參數理論計算和計算機仿真結果相對比的方法,通過Mu ltisim軟件對所設計電路進行仿真,仿真結果與理論參數計算相吻合,證明了電路參數設計的可行性,為血氧儀的實物制作提供參考。For real-time detection of oxygen saturation for timely treatment of the brain or heart,which are very sensitive to oxygen inadequacy,the near-infrared wavelengths double photoelectric pulse oximeter transmission method is adopted.The illuminant is controlled with the H bridge circuit and the filter circuit is built with general op-amps.Parameters by theoretical calculation is compared with the computer simulation results in Multisim and satisfactory results are obtained.It is shown that the design of the circuit parameters is feasible and can be a help in making the physical blood-oxygen monitor.
上傳時間: 2022-05-12
上傳用戶:
說明: 基于stm32f103c8t6單片機的RTC實時時鐘源碼,固件庫為3.5版本(Based on the real-time clock source stm32f103c8t6 MCU RTC firmware library version 3.5)
上傳時間: 2022-05-16
上傳用戶:得之我幸78
RX-8801 SA Features built-in 32.768 kHz DTCXO, High Stability Supports l'C-Bus's high speed mode (400 kHz)Alarm interrupt function for day, date, hour, and minute settings Fixed-cycle timer interrupt function Time update interrupt function32.768 kHz output with OE function Auto correction of leap years Wide interface voltage range: 2.2 V to 5.5 V Wide time-keeping voltage range:1.8 V to 5.5 V Low current consumption: 0.84A/3V (Typ.)is an IC bus interface-compliant real-time clock which includes a 32.768 kHz DTCXO In addition to providing a calendar (year, month, date, day, hour, minute, second) function and a clock counter function, this module provides an abundance of other functions including an alarm function, fixed-cycle timer unction, time update interrupt function, and 32.768 kHz output function.The devices in this module are fabricated via a C-MOS process for low current consumption, which enables ong-term battery back-up.
上傳時間: 2022-06-17
上傳用戶: