xTimer V1.0

[05-23 02:47:29]   来源:http://www.88dzw.com  单片机电路图   阅读:8450

文章摘要:The opto-transistor can be any type. Usually some opto output can drive relay directly, but I think better to use a darlington transistor, says ULN2003, ULN2803 to drive the relay. With this method, there is no galvanic contact between HV and digital board. The EMI produced from inductive load turni

xTimer V1.0,标签:电路图讲解,电路图练习,http://www.88dzw.com

The opto-transistor can be any type. Usually some opto output can drive relay directly, but I think better to use a darlington transistor, says ULN2003, ULN2803 to drive the relay. With this method, there is no galvanic contact between HV and digital board. The EMI produced from inductive load turning off will only propagate to the control board by induction and radiation. This design is quite save for digital control board.

Now get back to run sdcc, below steps show how to use sdcc to compile the source code. After the sdcc has installed in drive c:, we must set path to let the dos know where is the folder of exe files of sdcc. To compile just type sdcc program.c. If everything OK, we will get the machine code in hex file. However the hex file produced by sdcc has *.ihx extension. We can convert it to hex file with *.hex simply by a program packihx. See example below.

The hex file produced by sdcc is only 1877 bytes! You can use 89C2051 instead of 89C4051 for U2!
 

Microsoft(R) Windows 98
   (C)Copyright Microsoft Corp 1981-1999.

C:\WINDOWS>cd\

C:\>cd sdcc

C:\sdcc>cd app

C:\sdcc\app>path=c:\sdcc\bin

C:\sdcc\app>sdcc xtimer1.c

library file /sdcc/share/sdcc/lib/small/libsdcc.lib
library file /sdcc/share/sdcc/lib/small/libint.lib
library file /sdcc/share/sdcc/lib/small/liblong.lib
library file /sdcc/share/sdcc/lib/small/libfloat.lib

C:\sdcc\app>

C:\sdcc\app>packihx xtimer1.ihx>xtimer1.hex
packihx: read 308 lines, wrote 122: OK.

C:\sdcc\app>
 
 


程序资料下载.rar

上一页  [1] [2] [3] [4] [5] 


Tag:单片机电路图电路图讲解,电路图练习电子电路图 - 单片机电路图

《xTimer V1.0》相关文章