<?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/8335" />

	<title>Objective Development Forums</title>
	
	<link href="https://forums.obdev.at/index.php" />
	<updated>2013-06-25T15:51:04+02:00</updated>

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

		<entry>
		<author><name><![CDATA[ulao]]></name></author>
		<updated>2013-06-25T15:51:04+02:00</updated>

		<published>2013-06-25T15:51:04+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=8335&amp;p=25490#p25490</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=8335&amp;p=25490#p25490"/>
		<title type="html"><![CDATA[Re: HID keys port problem]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=8335&amp;p=25490#p25490"><![CDATA[
I think d+ needs to go to an int pin. Other then that they should work on any pin.  see in code  <strong class="text-strong">Please note that D+ must also be connected<br /> * to interrupt pin INT0!</strong><br /><br />#<div class="codebox"><p>Code: </p><pre><code>define USB_CFG_IOPORTNAME      D<br />/* This is the port where the USB bus is connected. When you configure it to<br /> * &quot;B&quot;, the registers PORTB, PINB and DDRB will be used.<br /> */<br />#define USB_CFG_DMINUS_BIT      0<br />/* This is the bit number in USB_CFG_IOPORT where the USB D- line is connected.<br /> * This may be any bit in the port.<br /> */<br />#define USB_CFG_DPLUS_BIT       2<br />/* This is the bit number in USB_CFG_IOPORT where the USB D+ line is connected.<br /> * This may be any bit in the port. Please note that D+ must also be connected<br /> * to interrupt pin INT0!<br /> */</code></pre></div><br /><br />also make sure to set the pull up<br /><div class="codebox"><p>Code: </p><pre><code> #define USB_CFG_PULLUP_IOPORTNAME   D<br />/* If you connect the 1.5k pullup resistor from D- to a port pin instead of<br /> * V+, you can connect and disconnect the device from firmware by calling<br /> * the macros usbDeviceConnect() and usbDeviceDisconnect() (see usbdrv.h).<br /> * This constant defines the port on which the pullup resistor is connected.<br /> */<br /> #define USB_CFG_PULLUP_BIT          1<br />/* This constant defines the bit number in USB_CFG_PULLUP_IOPORT (defined<br /> * above) where the 1.5k pullup resistor is connected. See description<br /> * above for details.<br /> */</code></pre></div><p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=1281">ulao</a> — Tue Jun 25, 2013 3:51 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Trindade]]></name></author>
		<updated>2013-03-08T16:05:54+02:00</updated>

		<published>2013-03-08T16:05:54+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=8335&amp;p=24895#p24895</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=8335&amp;p=24895#p24895"/>
		<title type="html"><![CDATA[HID keys port problem]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=8335&amp;p=24895#p24895"><![CDATA[
Hi,<br /><br />I'm trying to create a project based on Hid Keys. My problem starts when trying to connect the D + and D-port to another.<br /><br />What happens is that I change the port in the library usbconfig.h and connect the pins where I want but after compiling the program and go to the atmega 8, this always works with the configuration of the original design.<br /><br />I also changed the configuration of PORT's in main.c but the same thing always happens.<br /><br />I started just by changing the D-, keeping the D+ connected to INT0. For example, in the port's initial project are defined DDRD, D-= 0 and D + = 2. I changed the D-= 3 but when I connect it to the pc it says the device is unknown. If reconnecting the D-= 0, whith no compile or copy back to the atmega8, it works correctly.<br /><br />What am I doing wrong?<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=19593">Trindade</a> — Fri Mar 08, 2013 4:05 pm</p><hr />
]]></content>
	</entry>
	</feed>
