General discussions about V-USB, our firmware-only implementation of a low speed USB device on Atmel's AVR microcontrollers
			
		
		
			- 
				
																			
								WarNick							 
									
		- Posts: 2
 		- Joined: Mon Oct 06, 2008 12:52 pm
 		
		
						
						
		
		
						
						
													
							
						
									
						Post
					
								by WarNick » Mon Oct 06, 2008 12:58 pm
			
			
			
			
			Hello, I have a little problem (maybe very stupid, by I'm novice in USB stuff)
As I understand, to config the pins on port D (for D+ and D-) it's neccesary to define these lines
#define USB_CFG_DMINUS_BIT     0
#define USB_CFG_DPLUS_BIT       2
But if I define DMINUS_BIT with bit 4 or other (and connect pin to USB circuit) Windows can't find the device. It works ONLY with DMINUS_BIT = 0. But I want to free the USART pin.
Orig. schematic I use:
http://i138.photobucket.com/albums/q278 ... AVRUSB.jpg 
			
			
									
									
						 
		 
				
		
		 
	 
	
				
		
		
			- 
				
																			
								christian							 
						- Objective Development

 			
		- Posts: 1443
 		- Joined: Thu Nov 09, 2006 11:46 am
 		
		
						
						
		
		
						
						
													
							
						
									
						Post
					
								by christian » Thu Oct 09, 2008 4:50 pm
			
			
			
			
			Did you do a "make clean" after the change? Most of the makefiles don't have dependencies on usbconfig.h and don't recompile after a change.
Other than that: Are you sure the wiring is OK?
			
			
									
									
						 
		 
				
		
		 
	 
	
				
		
		
			- 
				
																			
								WarNick							 
									
		- Posts: 2
 		- Joined: Mon Oct 06, 2008 12:52 pm
 		
		
						
						
		
		
						
						
													
							
						
									
						Post
					
								by WarNick » Thu Oct 23, 2008 1:00 pm
			
			
			
			
			yep, I did "clean all". I solved the problem shifted D+ & D- to the port B bit0 and bit1 and connected D+ line to the Pd2/Int0 pin (Atmega8)
In this config it works )