Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

C18 and rfPIC

Status
Not open for further replies.

YAN-1

New Member
Hello. I intend to use the rfPIC12F675K for a certain project and I have a couple of inquiries. Does the C18 Microchip compiler support this PIC? I'm also wondering about the instructions and registers for the transmitter module of this PIC. From the datasheets, I got the impression that there are no registers to be programmed for the ASK or FSK modules. The modules are just activated through proper hardware connections and the data to be modulated can be inputted to the DATA_FSK or DATA_ASK pins from the same PIC or from other sources. Is that correct? Your help is much appreciated. Thanks a lot.

Nichola V. Abdo
 
No, it's not an 18 series core, so you can't use the C18 compiler. It's actually a 16 series (14 bit core), despite the model number, essentially a 12F675 with an in-built transmitter.

I most admit, I did look at these (as they looked really useful), but after studying the datasheet decided they were far too complicated to bother with, particularly the companion receiver device!. Presumably you would also have to submit the completed device for 'licence free' testing?.
 
Well then what compiler by Microchip can I use for the rfPIC? Someone told me the C30 will do (since it is backward compatible). Is that correct? Thanks a lot.
 
Because C is much easier at this point to me and besides, it's what I'm required to use. But I just don't get the linker files and other files that I'm supposed to include in a project. I'm used to just source files and header files.
 
So people..does anyone know of any C compiler that I can use to write and build code for the rfPIC12F675? Thanks a lot.
 
You should be able to use HiTech C.

I think it is included with MPLAB but if not can be downloaded and installed separately.

I just checked their web site and it appears that PICC-Lite is no longer available. There is a demo available. They're at https://www.htsoft.com

Mike.
 
It looks like PICC-Lite is still available (see This link) but I think their site is messed up at the moment.

Mike.
 
The site seems to be back and PICC-Lite supports the 16F675 without any restrictions.

For some reason I cannot edit my previous posts.

Mike.
 
Pommie said:
The site seems to be back and PICC-Lite supports the 16F675 without any restrictions.

For some reason I cannot edit my previous posts.

I think you are only allowed to edit your post within a certain time, so if you make a mistake you can correct it, but not to go back later and change it.
 
Pommie said:
The site seems to be back and PICC-Lite supports the 16F675 without any restrictions.

For some reason I cannot edit my previous posts.

Mike.

Thanks. But don't you mean 12F675?
 
Sorry for the slow response, but there are several compilers you can try for the 14 bit cores. Most of these provide a demo, and some of them are quite cheap.
CC5X seems quite popular, and inexpensive:
http://www.bknd.com/cc5x/

Source Boost (c2c) is also inexpensive:
http://www.geocities.com/SiliconValley/Network/3656/c2c/c.html

CCSC is also inexpensive:
http://www.ccsinfo.com/

Another inexpensive one is MikroC:
**broken link removed**

Then for the more expensive (about $900 USD) is the HiTech:
http://www.htsoft.com/

and the IAR compiler:
http://www.iar.com/

There have been some comparisons made, and you can find the results here:
**broken link removed**

and here:
http://www.microchipc.com/reviews/Hi-Tech_C/

In addition, there is the free JAL (Just Another Language) which is very much like PASCAL, which can be found here:
http://jal.sourceforge.net/

That should keep you busy for a while! I may have missed a few, and some of them will be closer to ANSI C than others. Some of them use libraries, and device drivers, while the more 'ANSI' compliant ones force you to write your own, but keep your code more portable. It all depends on what you wish to do, and how much use you will make of your choice.
 
Last edited:
Thanks a lot. Well I've been using the HITECH compiler v9 but my license expired and so I tried the v8.05PL2 that I had before. It is supposed to support the rfPIC12F675 and it is opperated under MPLAB environment. I constructed a test project and tried to compile it. I included the: #include <pic12rf675.h> header and chose the rfPIC12F675k device from MPLAB. However, when I tried to compile, I got an error regarding the type of the device chosen meaning that the compiler didn't recognize the rfPIC12F675k. But when I change the selected device to 12F675 but still include the <pic12rf675.h> header, it compiles succesfully. Why does that happen? The include folder of the compiler includes the pic12rf675.h file so it's supposed to recognize it, right? And one more question, if I compile the project while choosing the 12F675 device, would it generate a hex file that won't work with the rfPIC12f675 or would it be just as fine since they both have the exact same registers and bit-core? Thanks a lot.

Nichola V. Abdo
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top