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

Latest 12F675.h ?

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



Joined: 18 Jan 2004
Posts: 22
Location: Burbank CA

View user's profile Send private message

Latest 12F675.h ?
PostPosted: Wed Jun 22, 2005 11:04 am     Reply with quote

Hi,

I'm looking for a copy (free or otherwise) of the latest header file for the 12F675. I have PCM v. 3.092, which supports the chip, but my copy of the header file omits a lot of constants.

(Yes, I know I have to manually turn off the ADCs and comparators Wink )

Regards

tcb
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Wed Jun 22, 2005 1:45 pm     Reply with quote

Your version of the compiler won't support the constants used for
the setup_comparator() function in vs. 3.226. The new constants
are 3 bytes wide. In your version, they are one byte wide.
It's a totally different routine, in the new version.


The same thing is true for the setup_adc() function. The constants
are both byte-wide but are quite different, and it's clear that the
compiler uses them in a different way to build the ASM code
between the two versions.

The same is true for setup_adc_ports().

I'm not going to compare any more of it, but the new constants
won't do any good and will break your existing functions, assuming
that they work in that version in the first place.
Guest








PostPosted: Wed Jun 22, 2005 3:55 pm     Reply with quote

Actually, a number of them work. The pullup resistors and ADCs are a complete mess, so I redid those in assembler and it works pretty well. Setup_timer_0 and #INT_RTCC just worked, so I didn't bother to redo those from scratch.

This hybrid will work until I get really motivated to upgrade the compiler, e.g., if I do any more projects with the 12f675. It's actually a pretty cool device.

tcb
Thomas Blake



Joined: 18 Jan 2004
Posts: 22
Location: Burbank CA

View user's profile Send private message

PostPosted: Wed Jun 22, 2005 3:59 pm     Reply with quote

The preceding comment was mine. I guess the "log me on each time" button is broken. Or something.

tcb
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