Learning Programming: MicroChip, MPLABS X IDE, etc.

  • Thread starter KonaGorrila
  • Start date
  • Tags
    Programming
In summary, Aloha guys,I am a recently graduated physics major going on my next adventure in education. I am trying to teach myself programming through the Microchip platform, lucky I have a large learning curve working for my family business.I was wondering if anyone had insight or any suggestions on the best way to go about teaching myself the layout and the how to on programming micro controllers?I would recommend studying C before attempting to program at the register level where assembly languages operate. Matlab is a much higher-level language than C, so it doesn't expose the low-level functionality like bit shifting and bitwise operations that C does.So far I have gotten quite familiar with the inter working
  • #1
KonaGorrila
12
0
Aloha guys,

I am a recently graduated physics major going on my next adventure in education. I am trying to teach my self programming through the Micro Chip platform, lucky I have a large learning curve working for my family business.
I was wondering if anyone had insight or any suggestions on the best way to go about teaching myself the layout and the how to on programming micro controllers?
(Classes, books, websites, help chats, etc.)

Mahalo for all the help in advanced you guys always give great advice!
 
Technology news on Phys.org
  • #2
What is your current level of programming? For instance, do you know how to do hex->dec conversion and vice versa? Do you know about memory addresses, pointers, and the like?

Do you also have experience with analog electronics?
 
  • Like
Likes KonaGorrila
  • #3
Curiose said:
What is your current level of programming? For instance, do you know how to do hex->dec conversion and vice versa? Do you know about memory addresses, pointers, and the like?

Do you also have experience with analog electronics?
I have very minimal programming knowledge and I am only medium/sufficient MATLAB due to my academic career (Physics/Math/Chem). I do have a good understanding of how the electronics work and have diagnosed and built electronics since I was 15, but have no prior knowledge in embedded C language, C, or C++ and minimal knowledge or at least minimal experience with hexidecimal and boolean algebra.
The platform and Software I am currently using is MPLAB X IDE, ICD3, Explorer 8 development board, PIC18LF25K42. I am programming or at least trying to learn to exploit the PICs touch sensing capabilities via the ADC.
So far I have gotten quite familiar with the inter working of the pic from a physical stand point and feel I am struggling mainly with the language itself, or how to build and write files for import to the PICs .h and .c files.
 
  • #4
KonaGorrila said:
I have very minimal programming knowledge and I am only medium/sufficient MATLAB due to my academic career (Physics/Math/Chem). I do have a good understanding of how the electronics work and have diagnosed and built electronics since I was 15, but have no prior knowledge in embedded C language, C, or C++ and minimal knowledge or at least minimal experience with hexidecimal and boolean algebra.
The minimal programming background you describe doesn't go far in helping you learn very low-level programming. My recommendation would be to study C first before attempting to program at the register level where assembly languages operate. Matlab is a much higher-level language than C, so it doesn't expose the low-level functionality like bit shifting and bitwise operations that C does.

KonaGorrila said:
So far I have gotten quite familiar with the inter working of the pic from a physical stand point and feel I am struggling mainly with the language itself, or how to build and write files for import to the PICs .h and .c files.
Writing files can probably be done using an ordinary text editor, such as Notepad or the like. Getting some experience with C, as I recommend above, would help you understand what code should go in a .c file and what should go in a header (.h) file. The term "build" usually means "compile and link," but doesn't usually mean the process of actually creating the code files.

As for struggling with the language, you need to become familiar with the Microchip instruction set, the set of commands (instructions) that are available for the processor you're attempting to learn about. To do this, get very familiar with the documentation that Microchip publishes. You also need to know the layout of the CPU, particularly the register set (or register file). Here's a link to a PDF on this processor -- http://ww1.microchip.com/downloads/en/DeviceDoc/31029a.pdf.

You can also do web searches for projects people have done using Microchip processors. Presumably they will include their code, so you can get a chance to see and study some complete applications to help you learn.
 
  • Like
Likes ChrisVer, Curiose and QuantumQuest
  • #5

1. What is MicroChip and what is its role in programming?

MicroChip is a company that produces microcontrollers, which are small computers used for controlling devices and systems. They also provide a development environment called MPLAB X IDE, which is used for writing and testing code for their microcontrollers.

2. What is MPLAB X IDE and how does it help with learning programming?

MPLAB X IDE is an integrated development environment (IDE) used for writing and testing code for MicroChip's microcontrollers. It provides a user-friendly interface and tools such as code debugging and simulation, making it easier for beginners to learn and practice programming.

3. What are the benefits of learning programming with MicroChip and MPLAB X IDE?

Learning programming with MicroChip and MPLAB X IDE allows you to develop skills in embedded systems programming, which is in high demand in industries such as automotive, healthcare, and consumer electronics. It also provides hands-on experience with real-world applications, leading to a deeper understanding of programming concepts.

4. Do I need any prior programming experience to start learning with MicroChip and MPLAB X IDE?

No, you do not need any prior programming experience. MicroChip and MPLAB X IDE are designed for beginners and provide a user-friendly interface and resources for learning the basics of programming and embedded systems development.

5. Are there any resources available for learning programming with MicroChip and MPLAB X IDE?

Yes, MicroChip and MPLAB X IDE provide tutorials, user guides, and community forums for beginners to learn and ask questions. There are also online courses and books available for learning programming with MicroChip and MPLAB X IDE.

Similar threads

  • Programming and Computer Science
Replies
15
Views
1K
  • Programming and Computer Science
2
Replies
58
Views
3K
  • Programming and Computer Science
2
Replies
54
Views
3K
  • Programming and Computer Science
Replies
32
Views
2K
  • Programming and Computer Science
Replies
17
Views
4K
  • Engineering and Comp Sci Homework Help
Replies
8
Views
1K
  • Programming and Computer Science
Replies
3
Views
1K
  • Programming and Computer Science
Replies
9
Views
2K
  • Sticky
  • Programming and Computer Science
Replies
13
Views
4K
Replies
40
Views
2K
Back
Top