Skip to content

Trivial demo (obvious blinking LED) for dsPIC33FJ on Microstick II board

Notifications You must be signed in to change notification settings

hpaluch/dsPIC33fj-hello.X

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Demo for dsPIC33FJ on Microstick II

Here is modified LED blinking demo for dsPIC33FJ128MC802 that is provided with Microstick II board.

Now it does following (I use it to measure FRC oscillator frequency):

    • Blinking LED on RA0 PIN 2 at frequency F_cy / 10,000,000 (TMR1 interrupt freq is f_cy / 1,000,000)
    • f_cy / 1000 output on RA1 PIN 3

In my case default f_cy = 40 MHz kHz, so f_pll = 80 MHz

Now we use PLL, so we may say:

  • f_frc = 7.37 MHz
  • f_pll = 80 MHz
  • f_cy = 40 MHz (40 MIPS) instruction clock

Why not use MCC tool to generate sources?

The whole dsPICFJ series is NOT supported by MCC configuration tool (at least not on 2021-05-20). So you must create most of sources manually... and that's where adventure starts...

This example is originaly based on source from:

Setup

Hardware:

Software:

  • XC16 v1.70
  • MPLAB X IDE v5.45
  • Device Family Pack (DFP): dsPIC33F-GP-MC_DFP 1.0.6 (not sure)

You can debug and/or run this project as usual (no special instructions needed).

Resources

About

Trivial demo (obvious blinking LED) for dsPIC33FJ on Microstick II board

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published