Programming PICs in C: Resource Guide

  • Thread starter Thread starter Jammin_James
  • Start date Start date
  • Tags Tags
    Programming
Click For Summary

Discussion Overview

The discussion revolves around programming PIC microcontrollers, specifically the PIC16F690, in C and assembly language. Participants share resources, experiences, and challenges related to programming these devices, including inquiries about specific programming tools and techniques.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested

Main Points Raised

  • One participant expresses a desire to transition from assembly programming to C for PIC microcontrollers and seeks free resources for learning.
  • Another participant suggests visiting the Microchip website to download necessary tools and mentions the need for a programmer, recommending the PicKit as an affordable option.
  • A different participant shares their experience using the CC5X compiler for PIC16F and notes that it is free for basic use, while mentioning that Microchip may offer a better compiler for the PIC16 series.
  • One participant inquires about writing an extended Kalman filter algorithm in microC for dspic and asks for help with matrix inversion, indicating a need for specific programming commands.
  • Another participant reflects on the differences between Atmel and PIC chips, questioning the number of general-purpose registers available in the PIC16 series.

Areas of Agreement / Disagreement

Participants present various resources and experiences, but there is no consensus on the best approach or tools for programming PICs in C or assembly. The discussion includes differing opinions on the ease of programming between Atmel and PIC microcontrollers.

Contextual Notes

Some participants reference specific tools and compilers without detailing their limitations or dependencies on particular project requirements. The inquiry about matrix inversion in microC remains unresolved, as no solutions are provided.

Who May Find This Useful

This discussion may be useful for individuals interested in programming PIC microcontrollers, particularly those transitioning from assembly to C, or those seeking resources and advice on specific programming challenges.

Jammin_James
Messages
49
Reaction score
0
Hey all!

So I recently purchased a PIC16F690 for a project and I've been trying to learn the assembly language for it and it's turning into a somewhat daunting task. I've programmed in assembly before but it was with an ATMEL chip. This was about two years ago, so everything is kinda fuzzy. I've decided to try to apply what I've learned in C to this project now, since I assume it's a more general language I can use in any microcontroller project.

Is there a good, free resource I can look at to get started programming PICs in C? Maybe even a good resource of programming PICs in their assembly language.

Thanks guys!
 
Engineering news on Phys.org
Go to the Microchip web-site and download everything you need. You will need to purchase a programmer. A PicKit isn't too expensive.
 
I don't remember why but I settled on CC5X http://www.bknd.com/cc5x/ for the PIC 16F's.
Free for the basic version and seems to work fine. Microchip may have something better for the 16's -- I use their free 18F compiler -- but I ignored it.

If you are doing in-circuit programming see Microchip's PICkit's or look at sparkfun.com for some other options ICSP and not.
 
Hi all.
Iam trying to write extended kalman filter algorithm in microC (dspic) software.
My question is how to invert a matrix in that software? I have read the manual but could'nt find any command for matrix inversion.pls check out the attachment.
can anyone help me out...!
thanks in advance.
 
Hmm this is vaguely on topic but I remember the Atmel chips were easier to program in asm because of the number of registers which were freely usable.

Do the PIC 16 series only have 1 general purpose register?
 

Similar threads

  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 4 ·
Replies
4
Views
6K
  • · Replies 10 ·
Replies
10
Views
3K
Replies
4
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
6K
  • · Replies 5 ·
Replies
5
Views
2K
Replies
1
Views
3K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 17 ·
Replies
17
Views
25K