Send data from target thru ISP3 to Delphi ??

Vincent00
 
Avatar
 
Betreff:

Send data from target thru ISP3 to Delphi ??

 · 
Gepostet: 01.03.2013 - 18:17 Uhr  ·  #1
Hello,

I would like to send datas from target ATMEGA and SPI connected to the ISP3 programmer, and receive them on computer under Delphi program. Is it possible ? what components to import to Delphi 5 ?

The idea is to help for debug, as I have not the JTAG interface on my project...only the ISP connector, so nice if I can send out bytes datas to control...

Thanks,
rh
Administrator
Avatar
Geschlecht:
Herkunft: Germany
Alter: 25
Homepage: e-lab.de
Beiträge: 5558
Dabei seit: 03 / 2002
Betreff:

Re: Send data from target thru ISP3 to Delphi ??

 · 
Gepostet: 04.03.2013 - 17:31 Uhr  ·  #2
Hello Vincent,

sorry, this is impossible. The programmer interface is completely different to the standard SPI function.

rolf
Vincent00
 
Avatar
 
Betreff:

Re: Send data from target thru ISP3 to Delphi ??

 · 
Gepostet: 05.03.2013 - 15:47 Uhr  ·  #3
Hello Rolf,

Sade :-)

In this case, it would be nice for your company to product a new product, very simple, on USB out to connect on the SPI pins by the standard ISP connector, and Delphi components to exchange datas with Target board via SPI !
The advantage for all customers would be to use USB interface very easily, without modify the hardware, with standard AVRs and only ISP connector :-)
rh
Administrator
Avatar
Geschlecht:
Herkunft: Germany
Alter: 25
Homepage: e-lab.de
Beiträge: 5558
Dabei seit: 03 / 2002
Betreff:

Re: Send data from target thru ISP3 to Delphi ??

 · 
Gepostet: 08.03.2013 - 20:33 Uhr  ·  #4
Avra
Schreiberling
Avatar
Geschlecht:
Herkunft: Belgrade, Serbia
Alter: 54
Homepage: rs.linkedin.com/in…
Beiträge: 653
Dabei seit: 07 / 2002
Betreff:

Re: Send data from target thru ISP3 to Delphi ??

 · 
Gepostet: 09.03.2013 - 06:45 Uhr  ·  #5
There was a BusPirate (27$) compatible AVR project called BusNinja, which could allow you to issue i2c, spi and some other commands over serial line. I have just checked and site is down, but you can access it's files here: https://github.com/jobytaffey/bus-ninja. It shouldn't be hard to interface it with any serial component for Delphi/Lazarus/FPC.
SPI commands and serial communication then looks something like this:
Zitat
spi
[0x40 0x0A 0x28]
CS ENABLED
WRITE: 0x40
WRITE: 0x0A
WRITE: 0x28
CS DISABLED
Gewählte Zitate für Mehrfachzitierung:   0

Registrierte in diesem Topic

Aktuell kein registrierter in diesem Bereich

Die Statistik zeigt, wer in den letzten 5 Minuten online war. Erneuerung alle 90 Sekunden.
MySQL Queries: 8 · Cache Hits: 14   91   105 · Page-Gen-Time: 0.013564s · Speichernutzung: 2 MB · GZIP: ein · Viewport: SMXL-HiDPI