| View previous topic :: View next topic   | 
	
	
	
		| Author | 
		Message | 
	
	
		
			codewrecker2
 
 
  Joined: 23 Dec 2005 Posts: 23
  
			
			 
			 
			
			
			
			
			
			
			
  
		  | 
		
			
				| Alternative to CCP module | 
			 
			
				 Posted: Tue Nov 21, 2006 10:44 pm     | 
				     | 
			 
			
				
  | 
			 
			
				Hello,i wud like to know whats the best possible alternative to using a CCP module.I so badly miss it in my PIC 16F689,as pointed out by PCM PR.....(sorry 2 bother ,dude)
 
 
what i need to do is send data over 3 data lines and use a clock (10KHz),which should fall for each high on a data line. how can i have that much control on the clock n how easy is that or is it?
 
 
thanx in anticipation | 
			 
		  | 
	
	
		  | 
	
	
		
			PCM programmer
 
 
  Joined: 06 Sep 2003 Posts: 21708
  
			
			 
			 
			
			
			
			
			
			
			
  
		  | 
		
			
				 | 
			 
			
				 Posted: Tue Nov 21, 2006 11:00 pm     | 
				     | 
			 
			
				
  | 
			 
			
				 	  | Quote: | 	 		  
 
what i need to do is send data over 3 data lines and use a clock
 
(10KHz),which should fall for each high on a data line. | 	  
 
Are you trying to do SPI  ?   That would have a data-in and a data-out
 
line, and a chip select and a clock.  You could use the SSP module for that.
 
 
Tell us what chip you are trying to talk to. | 
			 
		  | 
	
	
		  | 
	
	
		
			codewrecker2
 
 
  Joined: 23 Dec 2005 Posts: 23
  
			
			 
			 
			
			
			
			
			
			
			
  
		  | 
		
			
				 | 
			 
			
				 Posted: Wed Nov 22, 2006 1:19 am     | 
				     | 
			 
			
				
  | 
			 
			
				| Thanx but SSP aint gonna work for me, i believe.The pic16F689  is being interfaced to motorola 68HC11.The pic has 30 bits to be sent to 68H... which have to be sent on 3 data lines in exactly 10 clock pulses (sadly,this is a compulsion ,so as to keep compatibility with older interfaces). The motorola is on capture mode and interrupts on rising/falling edge of clock till it receives its 10 clocks of data.could be possible to use the  a clock of SSP((timer2 o/p)/2) to get my 10 KHz clock and use general purpose port pins to o/p data? | 
			 
		  | 
	
	
		  | 
	
	
		
			PCM programmer
 
 
  Joined: 06 Sep 2003 Posts: 21708
  
			
			 
			 
			
			
			
			
			
			
			
  
		  | 
		
			
				 | 
			 
			
				 Posted: Wed Nov 22, 2006 2:08 am     | 
				     | 
			 
			
				
  | 
			 
			
				| I think you'll have to bit-bang the clock and the data. | 
			 
		  | 
	
	
		  | 
	
	
		 |