This shows you the differences between two versions of the page.
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/09 02:55] 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 39: | Line 39: | ||
That should be the minimum required to test the microcontroller. | That should be the minimum required to test the microcontroller. | ||
- | {{ :pic32mx270f256b-breadboard-components.jpg?nolink |}} | ||
You can also get a diagram of the recommended setup on [[https://docs-apac.rs-online.com/webdocs/1385/0900766b8138548d.pdf#G3.1116201|page 28 of the PIC32MX270F256B Datasheet]], Figure 2-1. | You can also get a diagram of the recommended setup on [[https://docs-apac.rs-online.com/webdocs/1385/0900766b8138548d.pdf#G3.1116201|page 28 of the PIC32MX270F256B Datasheet]], Figure 2-1. | ||
Line 67: | Line 66: | ||
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) |