Play tones on a PIC32MX550F256L dev board. Millisecond timer interrupt generated by Timer 1. Generates PWM on OC2 (pin 72, P7 pin 14). Five LEDs show the progress of the tune.
- LED1 RE6 pin 4
- LED2 RE7 pin 5
- LED3 RE1 pin 94
- LED4 RA7 pin 91
- LED5 RA6 pin 92
- U1TX RE5 pin 3
- U2TX RG0 pin 90
- U3TX RF1 pin 88
- U4TX RD4 pin 81
- U5TX RD12 pin 79
- SCK2 RG6 pin 10
- SDO2 RC13 pin 73
- SS2 RD9 pin 69
- SCK3 RF13 pin 39
- SDO3 RG8 pin 12
- SS3 RA0 pin 17
- PWM RD8/OC1 pin 68
- PWM RD0/OC2 pin 72
PIC32 pin numbers are for the 100-pin package.
LEDs light when the pin is pulled LOW.
MPLAB X V6.20 and 'xc32' V4.60. These are not quite the latest versions, but MPLAB X V6.20 is the last version to support my "long obsolete" ICD3 programmer.
Microchip ICD3. Other programmers should work, e.g. ICD4 or PICkit4.