LEARNdsPIC

  • Home
  • Tutorials
    • Programming in C
    • Introduction
    • Pinout & Block Diagram
    • LCD (Parallel Interface)
    • IC - Input Capture
    • I2C - Inter Integrated Circuit
    • ADC
    • PWM
  • About
  • Contact
  • Blog/Comments Page
  • Home
  • Tutorials
    • Programming in C
    • Introduction
    • Pinout & Block Diagram
    • LCD (Parallel Interface)
    • IC - Input Capture
    • I2C - Inter Integrated Circuit
    • ADC
    • PWM
  • About
  • Contact
  • Blog/Comments Page

Programming in C

It is recommended that you search the MICROCHIP site and download the following documents:
  • xc16_compiler_users_guide.pdf
  • xc16_users_guide_for_embedded_engineers.pdf
They are both useful references which will prove valuable as you expand your capability with the dsPIC.

The style used in the initial tutorials is to put code for each peripheral in its own .c file with an appropriate .h file listing function prototypes. The streamlined main.c file lists only the general code while the peripheral .c files contain relevant specific code for that peripheral. If there are non-peripheral functions, their prototypes/definitions are placed in user.c and user.h files.

If you wish to comment on this page, please do so here.

Copyright 2016