<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forums.obdev.at/app.php/feed/topic/6077" />

	<title>Objective Development Forums</title>
	
	<link href="https://forums.obdev.at/index.php" />
	<updated>2011-10-10T05:26:06+02:00</updated>

	<author><name><![CDATA[Objective Development Forums]]></name></author>
	<id>https://forums.obdev.at/app.php/feed/topic/6077</id>

		<entry>
		<author><name><![CDATA[ardiansyah_mrit]]></name></author>
		<updated>2011-10-10T05:26:06+02:00</updated>

		<published>2011-10-10T05:26:06+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=6077&amp;p=19816#p19816</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=6077&amp;p=19816#p19816"/>
		<title type="html"><![CDATA[Re: USB to SPI with ATMEL16]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=6077&amp;p=19816#p19816"><![CDATA[
thank's form reply  <img class="smilies" src="./../../../images/smilies/icon_smile.gif" alt=":)" title="Smile" /> , but i'm still confius about that.  <img class="smilies" src="./../../../images/smilies/icon_sad.gif" alt=":(" title="Sad" /> <br />i want to write and read the eeprom (AT93c465) via USB from my PC.<br />i'm using v-usb last update, in the source i'm confused how to edit the source so i can write and read the eeprom (AT93c46) from PC via USB PORT using SPI comunication in ATMEGA16..<br /><br />please help me on the source bellow :<br /><strong class="text-strong">main.c on D:\vusb-20100715\examples\hid-data\firmware</strong><br /><blockquote class="uncited"><div>uchar   usbFunctionRead(uchar *data, uchar len)<br />{<br />    if(len &gt; bytesRemaining)<br />        len = bytesRemaining;<br />   <strong class="text-strong"> eeprom_read_block(data, (uchar *)0 + currentAddress, len); //how to change this line, so i can read the EEPROM from PC via USB Port</strong><br />    currentAddress += len;<br />    bytesRemaining -= len;<br />    return len;<br />}<br /><br />/* usbFunctionWrite() is called when the host sends a chunk of data to the<br /> * device. For more information see the documentation in usbdrv/usbdrv.h.<br /> */<br />uchar   usbFunctionWrite(uchar *data, uchar len)<br />{<br />    if(bytesRemaining == 0)<br />        return 1;               /* end of transfer */<br />    if(len &gt; bytesRemaining)<br />        len = bytesRemaining;<br />   <strong class="text-strong"> eeprom_write_block(data, (uchar *)0 + currentAddress, len); //how to change this line, so i can write the EEPROM from PC via USB Port</strong><br />    currentAddress += len;<br />    bytesRemaining -= len;<br />    return bytesRemaining == 0; /* return 1 if this was the last chunk */<br />}<br /></div></blockquote><br /><br />and this my block diagram of my project :<br />PC to ATMEGA16 using USB, ATMEGA to EEPROM (AT93C46) module using SPI PORT<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=5842">ardiansyah_mrit</a> — Mon Oct 10, 2011 5:26 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[maxi]]></name></author>
		<updated>2011-10-09T20:29:41+02:00</updated>

		<published>2011-10-09T20:29:41+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=6077&amp;p=19810#p19810</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=6077&amp;p=19810#p19810"/>
		<title type="html"><![CDATA[Re: USB to SPI with ATMEL16]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=6077&amp;p=19810#p19810"><![CDATA[
Something like this perhaps <a href="http://www.recursion.jp/avrcdc/cdc-spi.html" class="postlink">http://www.recursion.jp/avrcdc/cdc-spi.html</a>?<br /><br />There is a version for mega8, shouldn't be too difficult to compile for mega16.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=2570">maxi</a> — Sun Oct 09, 2011 8:29 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ardiansyah_mrit]]></name></author>
		<updated>2011-10-09T06:23:28+02:00</updated>

		<published>2011-10-09T06:23:28+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=6077&amp;p=19808#p19808</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=6077&amp;p=19808#p19808"/>
		<title type="html"><![CDATA[USB to SPI with ATMEL16]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=6077&amp;p=19808#p19808"><![CDATA[
hey.. morning all  <img class="smilies" src="./../../../images/smilies/icon_biggrin.gif" alt=":D" title="Very Happy" /> <br />can you help me about that topic??<br />i'm using v-usb to create that project but i don't know how to use the frimware in v-usb..  <img class="smilies" src="./../../../images/smilies/icon_cry.gif" alt=":cry:" title="Crying or Very sad" /> <br />i'm want to write / read eeprom via usb using SPI protocol.<br />please help me this my final project in my education... <img class="smilies" src="./../../../images/smilies/icon_sad.gif" alt=":(" title="Sad" /><p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=5842">ardiansyah_mrit</a> — Sun Oct 09, 2011 6:23 am</p><hr />
]]></content>
	</entry>
	</feed>
