anachrocomputer / PIC32Tone

Tone generation via PWM on a PIC32MX550F256L. Should also work on other PIC32MX chips with similar peripherals, e.g. PIC32MX250F256L.

Repository from Github https://github.comanachrocomputer/PIC32ToneRepository from Github https://github.comanachrocomputer/PIC32Tone

Static Badge Static Badge Static Badge

PIC32Tone

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.

PIC32 Toolchain

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.

PIC32 Programmer

Microchip ICD3. Other programmers should work, e.g. ICD4 or PICkit4.

About

Tone generation via PWM on a PIC32MX550F256L. Should also work on other PIC32MX chips with similar peripherals, e.g. PIC32MX250F256L.


Languages

Language:C 85.5%Language:Makefile 14.5%