| View previous topic :: View next topic | 
	
	
		| Author | Message | 
	
		| nicotec 
 
 
 Joined: 07 Nov 2008
 Posts: 60
 
 
 
			    
 
 | 
			
				| Hardware UART with bit stop 1.5 |  
				|  Posted: Mon Nov 24, 2008 12:34 pm |   |  
				| 
 |  
				| Hi  , as in subject I need to use UART serial module of PIC24FJ16GA002 with bit stop 1.5, but noted that is possible to set 1 (as default) or 2. Since I need to connect a camera using RS232 with stop bit 1.5, I ask if it is possible.
   Thank in advance.
 Regards
 |  | 
	
		|  | 
	
		| FvM 
 
 
 Joined: 27 Aug 2008
 Posts: 2337
 Location: Germany
 
 
			    
 
 | 
			
				|  |  
				|  Posted: Mon Nov 24, 2008 1:36 pm |   |  
				| 
 |  
				| It sounds somewhat unlikely, but may be, 1.5 stop bits is actually used. Microchip processors don't directly provide this setting, you have to use workarounds. On reception, you need to set 1 stop bit not to cause errors. You may either switch to 2 stop bits on send (assuming a half duplex protocol) or send individual characters with a delay. |  | 
	
		|  | 
	
		| Ttelmah Guest
 
 
 
 
 
 
 
			
			
			
			
			
			
			
			
			
 
 | 
			
				|  |  
				|  Posted: Mon Nov 24, 2008 2:56 pm |   |  
				| 
 |  
				| Yes. A UART set to 1 stop bit, will receive characters with 1.5 stop bits fine, while one set to 2 stop bits will send data that a UART set to use 1.5 stop bits will use fine. Remember that stop bit values are _minima_, so a receiver must always accept data with more stop bits (just a gap between the characters). 
 Best Wishes
 |  | 
	
		|  | 
	
		| nicotec 
 
 
 Joined: 07 Nov 2008
 Posts: 60
 
 
 
			    
 
 | 
			
				| Solution |  
				|  Posted: Tue Nov 25, 2008 1:11 am |   |  
				| 
 |  
				| Ok, thank You, so to send data to equipment with specification stop bit =1.5 I can use 2 stop bit, since I need only to send command to a camera. I'll try and post here my result.
 Bye
 |  | 
	
		|  | 
	
		|  |