View previous topic :: View next topic |
Author |
Message |
Thomas Blake
Joined: 18 Jan 2004 Posts: 22 Location: Burbank CA
|
Latest 12F675.h ? |
Posted: Wed Jun 22, 2005 11:04 am |
|
|
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 )
Regards
tcb |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Wed Jun 22, 2005 1:45 pm |
|
|
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
|
|
Posted: Wed Jun 22, 2005 3:55 pm |
|
|
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
|
|
Posted: Wed Jun 22, 2005 3:59 pm |
|
|
The preceding comment was mine. I guess the "log me on each time" button is broken. Or something.
tcb |
|
|
|