User Tools

Site Tools


pic32mx270f256b

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
pic32mx270f256b [2019/04/25 12:53]
sausage [Wiring up to the breadboard]
pic32mx270f256b [2019/05/29 07:54]
sausage
Line 1: Line 1:
 ====== Minimum setup for a PIC32MX270F256B on a Breadboard + PICkit3 ====== ====== Minimum setup for a PIC32MX270F256B on a Breadboard + PICkit3 ======
  
-After discovering that my PIC32MX170F256B did not sport a USB module, I then purchased a PIC32MX270F256B which did have one.+My first experiments with PIC Microcontrollers was on the PIC32MX170F256B. But after discovering that there was no USB module ​on that controller, I then purchased a PIC32MX270F256B which did have one.
  
 This article serves as a reminder for the minimum setup for this microcontroller. This article serves as a reminder for the minimum setup for this microcontroller.
Line 28: Line 28:
   * Pin 2 (RA0) to the positive side of an LED. Negative side of the LED to a 10 Ohm resistor. Then to GND.   * Pin 2 (RA0) to the positive side of an LED. Negative side of the LED to a 10 Ohm resistor. Then to GND.
   * Pin 3 (RA1) to the positive side of an LED. Negative side of the LED to a 10 Ohm resistor. Then to GND.   * Pin 3 (RA1) to the positive side of an LED. Negative side of the LED to a 10 Ohm resistor. Then to GND.
- 
-{{ :​pic32mx270f256b-breadboard-components.jpg?​nolink |}} 
  
 On both the Power and Ground rails on the breadboard, add a 0.1uf capacitor each. On both the Power and Ground rails on the breadboard, add a 0.1uf capacitor each.
Line 67: Line 65:
 In the MPLABX IDE, create a new C project and in the main.c file, add the following before the while loop: In the MPLABX IDE, create a new C project and in the main.c file, add the following before the while loop:
  
-<​code>​+<​code ​C>
 TRISA = 0b00000000; //all PortA pins are output TRISA = 0b00000000; //all PortA pins are output
 PORTA = 0b00000010; //set pin 3 (RA1) to on. (supply 3.3 volts) PORTA = 0b00000010; //set pin 3 (RA1) to on. (supply 3.3 volts)
pic32mx270f256b.txt ยท Last modified: 2021/12/14 12:07 by sausage