Easy-Downloader V1.1 with SDCC
[05-23 02:47:29] 来源:http://www.88dzw.com 单片机电路图 阅读:8924次
文章摘要: Figure 4: Component placment layout.Bill Of Materials The component list is shown in Figure 5. U1 the master chip must be programmed with writer1.hex before the programmer board can run properly. Q2 and Q3 are TO92 plastic package! With a CAN package, pin positions may differ on the layout. You can
Easy-Downloader V1.1 with SDCC,标签:电路图讲解,电路图练习,http://www.88dzw.comFigure 4: Component placment layout.
Bill Of Materials
The component list is shown in Figure 5. U1 the master chip must be programmed with writer1.hex before the programmer board can run properly. Q2 and Q3 are TO92 plastic package! With a CAN package, pin positions may differ on the layout. You can use any small signal transistors to replace them. VB1 is male type! All resistors can be 1/4W or 1/8W 5%.
Bill Of Materials January 4,2004 10:44:35 Page1 |
Figure 5: Component list.
Software
sdcc has the header file that declares bit variables and we can use them in program directly. We can define the specified bits as below,
#define LM317 P3_5 #define LE P3_7 #define prog P3_2 #define rdy P3_3 #define xtal P3_4 #define p10 P1_0 #define p11 P1_1 #define p12 P1_2 #define p13 P1_3 #define p14 P1_4 |
In c program, we can use assignment statement to set or clear them directly. For instance, function that makes low to high transition at P3.2,
pulseProg()
{
prog = 0;
prog = 0;
prog = 0;
prog = 1;
}
The ASCII strings were defined with modifier, 'code', so the compiled code will place them in code memory space.char code title[] = '\n\r Easy-Downloader V1.3 for ATMEL 89C2051/4051 (sdcc version)';
char code prompt[] = '\n\r >';
char code ok[] = '\n\r ok';I have built function that print string to terminal, to make it compatible with the old version with Micro-C. Look at the source cod here,
putstr(char *s)
{
char i=0;
char c;
while((c=*(s+(i++)))!= 0) putchar(c); // while byte is not terminator, keep sending
}
The pointer s points to the start address of string. It will send character to serial port with function putchar while the character is not the terminator byte!
Tag:单片机电路图,电路图讲解,电路图练习,电子电路图 - 单片机电路图
- 上一篇:CF卡转IDE接口电路图
《Easy-Downloader V1.1 with SDCC》相关文章
- › Easy-Downloader V1.1 with SDCC
- › EasyDriver步进电机驱动器
- 在百度中搜索相关文章:Easy-Downloader V1.1 with SDCC
- 在谷歌中搜索相关文章:Easy-Downloader V1.1 with SDCC
- 在soso中搜索相关文章:Easy-Downloader V1.1 with SDCC
- 在搜狗中搜索相关文章:Easy-Downloader V1.1 with SDCC