CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

DS1302 in PIC16F648A

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
digisol



Joined: 02 Jul 2005
Posts: 11
Location: Hermosillo, Sonora, Mexico

View user's profile Send private message

DS1302 in PIC16F648A
PostPosted: Fri Aug 26, 2005 6:04 pm     Reply with quote

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

View user's profile Send private message

PostPosted: Fri Aug 26, 2005 6:14 pm     Reply with quote

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

View user's profile Send private message

IT Works!
PostPosted: Sat Aug 27, 2005 1:57 am     Reply with quote

SUPERB IT WORKS NOW.

That was the cause.

Thank you very much!!! Very Happy
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group