| Author |
Message |
hbaocr
Joined: 13 May 2007 Posts: 229 Helped: 15 Location: Hochiminh City university of technology (VietNam)
|
17 Aug 2007 1:57 how to make SPI programmer for AT89Sxx using VB |
|
|
|
hello, everyone
can you show me what principle of SPI of that uC is. And how to make SPI programmer to load my program into uC through LPT port like as SPI flash programmmer by Asimkhan.
I want to make that program using Visual Basic , plZ help me
thank for attension my topic
Last edited by hbaocr on 20 Aug 2007 15:35; edited 1 time in total |
|
| Back to top |
|
 |
sivasujith
Joined: 19 Aug 2006 Posts: 120 Helped: 3 Location: Chennai
|
17 Aug 2007 11:59 how to make SPI programmer for AT89Sxx using VB |
|
|
|
Hi,
that can also be done thru serial port too.. the thing is u hav to note down the intel hex standards and transfer the address and data either serialy or thru the parallel port of ur PC....
regards,
sujit
|
|
| Back to top |
|
 |
Kurenai_ryu
Joined: 10 Jun 2006 Posts: 108 Helped: 7 Location: Bolivia
|
17 Aug 2007 17:21 how to make SPI programmer for AT89Sxx using VB |
|
|
|
hello hbaocr, just send 8bits trough SPI... if you check the datasheets, you can see 3 or 4 bytes packets for programming commands... in the datasheet you can see the serial programing sequence (VDD, on, RST=high, & command=PROG_ENABLE), and the commands...
it works!
(I forgot my usb-stick at home. so i canīt load my VB at89s8252 programmer, sorry, maybe next time...)
|
|
| Back to top |
|
 |
hbaocr
Joined: 13 May 2007 Posts: 229 Helped: 15 Location: Hochiminh City university of technology (VietNam)
|
18 Aug 2007 12:19 how to make SPI programmer for AT89Sxx using VB |
|
|
|
Hi,Kurenai_ryu
If u don't mind plz send me some codes about it! Thank you very much! hbaocr(at)yahoo.com
|
|
| Back to top |
|
 |
vandelay
Joined: 16 Aug 2007 Posts: 115 Helped: 2 Location: Norway
|
19 Aug 2007 19:05 Re: how to make SPI programmer for AT89Sxx using VB |
|
|
|
| Just thought I'd inform that FTDI has a chip (namely the FT2232) that acts as a USB->SPI interface. 6MHz max IIRC. If you hate SMD soldering, you can get it as a DIP40 breakout board with USB connector on it. FTDI has a dll that provide SPI APIs. You can even use the same chip for host emulation.
|
|
| Back to top |
|
 |
Kurenai_ryu
Joined: 10 Jun 2006 Posts: 108 Helped: 7 Location: Bolivia
|
21 Aug 2007 17:10 Re: how to make SPI programmer for AT89Sxx using VB |
|
|
|
this is all the project.... hope itīs useful...
|
|
| Back to top |
|
 |
hbaocr
Joined: 13 May 2007 Posts: 229 Helped: 15 Location: Hochiminh City university of technology (VietNam)
|
21 Aug 2007 17:40 how to make SPI programmer for AT89Sxx using VB |
|
|
|
Thank Kurenai_ryu very much.
But The project you Uploaded have some problems.File Circuit can not open by orcad.And The programmer miss IO.DLL. Can you upload it again which include IO.DLL and circuit(File DSN)
|
|
| Back to top |
|
 |
Kurenai_ryu
Joined: 10 Jun 2006 Posts: 108 Helped: 7 Location: Bolivia
|
24 Aug 2007 17:38 how to make SPI programmer for AT89Sxx using VB |
|
|
|
mmm io.dll you can download from...
[url]
http://www.geekhideout.com/iodll.shtml
[/url]
sorry i didn't note that.
and design is for proteus 6.9 (or 6.7 donīt remember...) the image is the circuit... I think you can redraw in the worst case...
|
|
| Back to top |
|
 |
mvs sarma
Joined: 23 Apr 2006 Posts: 134 Helped: 11 Location: Hyderabad, India.
|
15 Nov 2007 16:49 Re: how to make SPI programmer for AT89Sxx using VB |
|
|
|
the schematic shows 89c51
it may not programm in ISP mode. Also, the EA* pin may have to be pulled up
Sarma
|
|
| Back to top |
|
 |
Kurenai_ryu
Joined: 10 Jun 2006 Posts: 108 Helped: 7 Location: Bolivia
|
29 Nov 2007 18:33 how to make SPI programmer for AT89Sxx using VB |
|
|
|
| sorry! proteus doesn't have an at89S51, so I used the pinout of the at89C51, and yes! the EA pin, should be pulled up! sorry I didn`t note it before..
|
|
| Back to top |
|
 |
electronic6000
Joined: 05 Apr 2005 Posts: 12 Location: IRAN-MIANE
|
08 Dec 2007 16:43 Re: how to make SPI programmer for AT89Sxx using VB |
|
|
|
hi dear
i need a english code for vb or any compilers
programming 89s51 with spi and 74hc244 buffer
TNX to all
|
|
| Back to top |
|
 |
ctownsend
Joined: 27 Nov 2004 Posts: 136 Helped: 9
|
11 Dec 2007 0:32 Re: how to make SPI programmer for AT89Sxx using VB |
|
|
|
| electronic6000 wrote: |
hi dear
i need a english code for vb or any compilers
programming 89s51 with spi and 74hc244 buffer
TNX to all |
you can use the above code with the 74HC244 buffer, you just need to bring the enable pins low when sending data. Or join them together so you only have one extra pin. (Remember that the output from the 74HC244 will be inverted)
OR you can use one section of the 244 for receiving, and the other side for transmitting.
If you need to translate the code there is a good online translator at altavista.com.
Just translate what you need to(the comments), don't do the whole code or it might not compile correctly.
I understand the above code, if you have any questions, please ask in the forums, I will try to help.
Good Luck
|
|
| Back to top |
|
 |
ronydc
Joined: 17 Nov 2005 Posts: 68
|
04 Feb 2008 20:42 how to make SPI programmer for AT89Sxx using VB |
|
|
|
DEAR FRIENDS,
HAS ANY ONE DONE THIS WORK WITH 89S52 CONNECTED WITH SERIAL PORT( with some convertor -- serial to SPI ) And the access code with VB.?
IF THIS WILL BE DONE , IT WILL BE USEFULL TO MANY MANY OTHERS AND TO ME.
THANKING U ALL.
RONY.
|
|
| Back to top |
|
 |
hbaocr
Joined: 13 May 2007 Posts: 229 Helped: 15 Location: Hochiminh City university of technology (VietNam)
|
05 Feb 2008 7:16 how to make SPI programmer for AT89Sxx using VB |
|
|
|
hello,ronydc
Using IC74LS164 ( SIPO) and set up UART port of 8051 in mode 0 ( mode shift register).
|
|
| Back to top |
|
 |
ctownsend
Joined: 27 Nov 2004 Posts: 136 Helped: 9
|
05 Feb 2008 12:31 Re: how to make SPI programmer for AT89Sxx using VB |
|
|
|
| ronydc wrote: |
DEAR FRIENDS,
HAS ANY ONE DONE THIS WORK WITH 89S52 CONNECTED WITH SERIAL PORT( with some convertor -- serial to SPI ) And the access code with VB.?
IF THIS WILL BE DONE , IT WILL BE USEFULL TO MANY MANY OTHERS AND TO ME.
THANKING U ALL.
RONY. |
http://www.edaboard.com/viewtopic.php?t=283581&highlight=
I did a standalone programmer, does not need any software or PC except to load the file you are programming. File loads with a terminal @9600 baud and is stored in an eeprom. Then you can program the 89S device anywhere.
All of the source is included. It would be fairly easy to use the my code and write a vb app to send the hex file.
Good Luck
|
|
| Back to top |
|
 |
ronydc
Joined: 17 Nov 2005 Posts: 68
|
07 Feb 2008 16:24 how to make SPI programmer for AT89Sxx using VB |
|
|
|
Dear ctownsend,
really nice work you have done for the same.
BRAVO...!!
but unfortunately i am working only with "C" so i could not work on the .asm file to get it converted
forthe interface like VB.
I SCIENCERLY HOPE SOME ONE HAS MADE THE "C" PROGRAM FOR IT.. OHH.
THANKS ANY WAY,
RONY.
|
|
| Back to top |
|
 |
lian
Joined: 05 Jul 2008 Posts: 3 Location: REDS Planet
|
14 Jul 2008 5:04 how to make SPI programmer for AT89Sxx using VB |
|
|
|
Nice work Kurenai_ryu... I'll build soon..
Thanks!
|
|
| Back to top |
|
 |
lian
Joined: 05 Jul 2008 Posts: 3 Location: REDS Planet
|
15 Jul 2008 23:37 Re: how to make SPI programmer for AT89Sxx using VB |
|
|
|
Hi Kurenai_ryu.
Your code didn't work. Too much line missing..
But never mind, I finished my project (modifiy your code & hardware).
Thanks anyway..
LIAN
|
|
| Back to top |
|
 |