| View previous topic :: View next topic | 
	
	
		| Author | Message | 
	
		| digisol 
 
 
 Joined: 02 Jul 2005
 Posts: 11
 Location: Hermosillo, Sonora, Mexico
 
 
			    
 
 | 
			
				| DS1302 in PIC16F648A |  
				|  Posted: Fri Aug 26, 2005 6:04 pm |   |  
				| 
 |  
				| Hello! I have a PIC16F84A using driver DS1302 running in a protoboard.
 I need to use the same code with ds1302 driver in a PIC16F648A,
 I am using (in both PICs):
 
 #define RTC_SCLK     PIN_B4
 #define RTC_IO         PIN_B5
 #define RTC_RST       PIN_B6
 
 It does not work with 648A pic!
 
 I made a new pic wizard project for the PIC16F648A.
 If I place the PIC16F84A in place of the PIC16F648A it woks, so the wiring is OK!
 
 Any hints?
 
 best regards
 |  | 
	
		|  | 
	
		| PCM programmer 
 
 
 Joined: 06 Sep 2003
 Posts: 21708
 
 
 
			    
 
 | 
			
				|  |  
				|  Posted: Fri Aug 26, 2005 6:14 pm |   |  
				| 
 |  
				| The 16F648A has low voltage programming capability. 
 You should add NOLVP to the end of your #fuses statement
 to disable this feature.
 
 Otherwise, a high level on RB4 will put your PIC into LVP mode,
 and it will lock up.
 |  | 
	
		|  | 
	
		| digisol 
 
 
 Joined: 02 Jul 2005
 Posts: 11
 Location: Hermosillo, Sonora, Mexico
 
 
			    
 
 | 
			
				| IT Works! |  
				|  Posted: Sat Aug 27, 2005 1:57 am |   |  
				| 
 |  
				| SUPERB IT WORKS NOW. 
 That was the cause.
 
 Thank you very much!!!
  |  | 
	
		|  | 
	
		|  |