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
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 C:\sdcc\app> C:\sdcc\app>packihx xtimer1.ihx>xtimer1.hex C:\sdcc\app> |

程序资料下载.rar
- 上一篇:XC4003的最小系统电路
《xTimer V1.0》相关文章
- › xTimer V1.0
- 在百度中搜索相关文章:xTimer V1.0
- 在谷歌中搜索相关文章:xTimer V1.0
- 在soso中搜索相关文章:xTimer V1.0
- 在搜狗中搜索相关文章:xTimer V1.0