what PIC should i use

Status
Not open for further replies.
Ya. After that it's a limited demo or cough up 500 clams. Ouch!

I'm stickin with BoostC. Only $75 for a compiler for 16F, 18F and some 12F's. Great deal!
I am not saying BoostC is not good. I have not used it.

Why are we even talking about this? The free C18 works but does not optimize so you use more flash. In the few cases where you need more flalsh buy a PIC with more memory. Same for speed.
 
3v0,do you know the assembly language...what are C18 C or Swordfish Basic??a sofware or PIC?i really need all of you help in programming cause i don't have much experience

I prefer C. See this link

3v0's Tutorials for ABSOLUTE BEGINNER C,PIC 18F,MPLAB® and MCC18 Compiler

below for a introduction to C18 that you should be able to follow.
 
I'm stickin with BoostC. Only $75 for a compiler for 16F, 18F and some 12F's. Great deal!
Futz,

I downloaded the free/lite version of BoostC a couple weeks ago because I saw you were using it for the 16F88. It's limited to 2K of code space and 2 banks of RAM but that's all of the memory space on my 12F683 and the majority of memory space on most other 12F and 16F devices so I don't consider the free/lite version very limited or crippled for those devices.

Honestly, I'm tickled to be writing 12F683 programs in C for the first time. It's a treat, an interesting puzzle, and a fun challenge trying to write C code that's as efficient as my assembly language code.

Mike
 
Last edited:
If i already download the MPLAB IDE,is it still new download the C18 C?
Not sure if this is what you mean (English is obviously not your first language), but if you want C18 then yes, you must download and install it separately. It does not come with MPLAB.
 
To download the C18 compiler.

First you need to setup an account (register) and log in.
This does not require a credit card or money.

On the microchip homepage find DESIGN
Under that click on DEVELOPMENT TOOLS

On this page find SOFTWARE
Under that click on MPLAB C COMPILERS

On this page find and click on
MPLAB C Compiler for PIC18 MCUs

On this page find DOWNLOADS (near bottom of page)
Under that click on
MPLAB C Compiler for PIC18 MCUs v3.20 - Student Edition
 
Start with lesson 1
JunebugTut1.pdf


I prefer to answer questions here. If I answer it once here everyone can find it. If I answer it via email I have to answer it many times.
 
i have many question here
1)your program(LED) can compile in C++ language??i have try compile in C++ but have error occur(unknown pragma & Cannot open include file: 'p18f1320.h')if not C++,then can you show the step how to compile it
2)what's the function of Oscillator selection,watchdog timer,low voltage ICSP
3)is it the ADCON1 = 0x7F is fixed..can i change ADCON2 and what's mean 0x7F and why we need convert RA0 to digital
4)if we want turn LED on isit must need the 2 step
TRISA = 0b10111110; why is this value,can i change to other value
PORTA = 0b00000001; the bit0 is 1, mean turn on LED bit0?
5)#pragma isit tell compiler what value of PIC we use like PIC18F1320
 
Last edited:
i have many question here
1)your program(LED) can compile in C++ language??i have try compile in C++ but have error occur(unknown pragma & Cannot open include file: 'p18f1320.h')if not C++,then can you show the step how to compile it

Why are you talking about C++, download C18 as explained above and use that - C++ is no use for PIC's.
 
The tutorial explains most everything in great detail. Read it carefuly. Do not skip any of it because you think you already know it. I will answer the questions that are not in the tutorial.

#pragma can be used to tell the compiler many things. But what PIC we are using is not one of them. That is done in the code by including the right processor header file #include <pic18F1320.h> and in the MPLAB user interface by clicking on CONFIGUR>SELECT_DEVICE and picking PIC18F1320. MPLAB passes the processor type to the compiler.
 
Last edited:
hey,sorry everyone.i'm busy my assignment and test so no time login.next 2week i'll post my question again.thanks for you all supported me so far.
 
anyone know how these circuit work??please help..thanks in advance
**broken link removed**
**broken link removed**
**broken link removed**
**broken link removed**
**broken link removed**
**broken link removed**
 
any expert please help me...i'm beginner to learn electronics circuit..can you all guide me
 
Last edited:
the documentation do not explain anything. that is why i need your explain them.these are no using PIC..just IC
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…