Dare2Tech
  • Home
    • Electronics
    • About
    • Contact
  • Electronics
    • PIC32 Topics
    • Transistors
  • About
  • Contact
  • Home
    • Electronics
    • About
    • Contact
  • Electronics
    • PIC32 Topics
    • Transistors
  • About
  • Contact

Pinout Printout chipKIT PI and DP32 - PIC32MX250F128B

5/31/2015

0 Comments

 
Here is a printout that I put together to be able to tape on top of your microcontroller to display the pin numbers according to your board settings chosen while programming, either the chipKIT Pi or the DP32 (both use the same microcontroller).

This is also perfect for people that are building their own DIY PIC32 board found in this link below:
http://chipkit.net/diy-chipkit-board/

Your can print them on one page or print them double sided selecting 'flip on long edge' so you can just cut the paper in half saving paper. The chipKIT Pi version is on the first page and the DP32 version is on the second page. Print it out, cut it, and tape it on.

If requested I can put this together for other boards and/or I can make a colored version that I am currently working on to help decipher PWM pins, analog pins, voltage inputs, and ground.

Printout Key:
R = MCLR
V = VDD = 3.3v
G = VSS = GND
C1 = OSC1 = crystal oscillator
C2 = OSC2 = crystal oscillator
T = Tantalum capacitor 10uF (positive side)
B = VBUS

L = Bootload LED output (blinks when in bootloader mode)
P = Program/Bootload button input pin

Hope someone finds this useful.

See the image attached below as an example and the PDF file to print as well.
Pinout Printout chipKIT PI and DP32 - PIC32MX250F128B
pinout_pic32_three_boards_makemico32_&_dp32_&_chipkit_pi.pdf
File Size: 101 kb
File Type: pdf
Download File

Disclaimer - About Page

0 Comments

Change 14 pins all at once - pic32

5/31/2015

0 Comments

 
Most of the time you would simply toggle one pin at a time on a microcontroller, but each pin takes its own small amount of time to be turned on. Using the code below you can change the state of 14 pins at the same time with a max frequency of 5Mhz all at one time.

If you want the fastest way to turn on a pin see the following code below. This simultaneously turns on 14 pins and then off 14 pins using a PIC32MX250F128B microcontroller.


// PIC32MX250B128F microcontroller
//using DP32 board setting in MPIDE or UECIDE

void setup() {   
  delay(2500); 
  // sets pins 0-8 as outputs and turned low
  for(int i = 0; i<9; i++)
  {
    pinMode(i, OUTPUT);
    digitalWrite(i, LOW);    
  }
  // sets pins 11-14 as outputs and turned low
  for (int i =11; i<15; i++)
  {
    pinMode(i, OUTPUT);
    digitalWrite(i, LOW);
  }
  // pin 17
  pinMode(17, OUTPUT);
  digitalWrite(17,LOW);

}

void loop() {
  while(true)
  {
    LATB |= 0xEFBF;
    LATB &= 0x0000;
  }
}
Below is a screenshot using a logic analyzer to see all 14 pins changing at the same time on the PIC32MX250F128B microcontroller.  This was taken using the Analog Discovery™ using WaveForms™.
Picture
Picture
Disclaimer - About Page

0 Comments

tip120 transistor pinout

5/29/2015

0 Comments

 
This is the pinout for the TIP120 transistor using a transistor tester.
tip120 transistor pinout
Picture
An example showing how to use it as a switch with an LED coming soon.
Disclaimer - About Page

0 Comments

PN2222A transistor pinout

5/29/2015

0 Comments

 
This is the pinout for the PN2222A transistor using a transistor tester.
PN2222A transistor pinout
Picture
An example showing how to use it as a switch with an LED coming soon.
Disclaimer - About Page

0 Comments

IRLU024NPBF transistor pinout

5/29/2015

0 Comments

 
This is the pinout for the IRLU024NPBF transistor using a transistor tester.
IRLU024NPBF transistor pinout
Picture
An example showing how to use it as a switch with an LED coming soon.
Disclaimer - About Page

0 Comments

IRF520N TRANSISTOR PINOUT 

5/29/2015

0 Comments

 
This is the pinout for the IRF520N transistor using a transistor tester.
IRF520N TRANSISTOR PINOUT
Picture
An example showing how to use it as a switch with an LED coming soon.
Disclaimer - About Page

0 Comments

Ways to Toggle digital pin

5/26/2015

0 Comments

 
There are many different ways to toggle a digital pin on a PIC32 microcontroller using MPIDE or UECIDE.

I will be going over a few different ways available and then going over the details for each if there is any interest in a complete code example to run.



1)    digitalWrite(14, HIGH);
       digitalWrite(14, LOW);

2)    LATA |= 1;
       LATA &= ~1;

3)    LATAbits.LATA1 = 1;
       LATAbits.LATA1 = 0;

4)    digitalWrite(14, ~digitalRead(14));

5)    digitalWrite(14, !digitalRead(14));

6)    LATAINV =1;

7)    LATASET=1;
       LATACLR=1;

Do you have a favorite way to access a digital pin or another way not listed?

Feel free to leave a comment below.
Disclaimer - About Page

0 Comments

    Author

    I'm a Computer Engineer with passion for hardware & software.

    Categories

    All
    PIC32
    Transistors

    Archives

    August 2015
    June 2015
    May 2015

    RSS Feed

Electronics
About
Contact
Mobile Site