https://github.com/anachrocomputer/pic32tone
Tone generation via PWM on a PIC32MX550F256L. Should also work on other PIC32MX chips with similar peripherals, e.g. PIC32MX250F256L.
https://github.com/anachrocomputer/pic32tone
pic32 pic32mx pwm
Last synced: about 1 month ago
JSON representation
Tone generation via PWM on a PIC32MX550F256L. Should also work on other PIC32MX chips with similar peripherals, e.g. PIC32MX250F256L.
- Host: GitHub
- URL: https://github.com/anachrocomputer/pic32tone
- Owner: anachrocomputer
- Created: 2019-01-31T22:21:17.000Z (over 7 years ago)
- Default Branch: main
- Last Pushed: 2024-11-30T13:51:33.000Z (over 1 year ago)
- Last Synced: 2025-01-16T10:49:17.158Z (over 1 year ago)
- Topics: pic32, pic32mx, pwm
- Language: C
- Homepage:
- Size: 24.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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 V5.20 and 'xc32' V2.15. These are quite old versions now, so I really ought to upgrade!
## PIC32 Programmer ##
Microchip ICD3. Other programmers should work, e.g. ICD4 or PICkit4.