I have spent a few weeks attempting to remap PWM pins to the Pic24fjGB002 device without success. Reading the data sheet indicates IOLOCK conditions, device reset one time assignment conditions, and a slurry of changes to the device config in FC9 has had no rewards for me.
I'm running out of time with this project, and only have a single PWM channel running on pin 7 RB3. I have attached the file I am using. Can you look at this and determine if this is compiling correctly?
I have approached the problem with the idea that configuration setting have to be wrong, but with all my empirical actions, I have failed.
I originally used the "GA" chip and figured that was the issue, so ordered the "GB" PIC. I certainly got the 5 timers available for the PWM channels, but no luck with pin peripheral assignments.
Thanks in advance.
PIC24fj64GB002 revisit - Remapping pins
-
- Posts: 117
- http://meble-kuchenne.info.pl
- Joined: Fri Dec 04, 2020 2:29 pm
- Has thanked: 24 times
- Been thanked: 7 times
PIC24fj64GB002 revisit - Remapping pins
Last edited by alanwms on Mon Mar 01, 2021 1:36 am, edited 1 time in total.
Re: PIC24fj64GB002 revisit - Remapping pins
More quandaries:
I see that the IOLOCK One-Way Set Enable is maybe combined? The manual suggests there is an IOLOCK bit and an IOL1WAY bit independent from each other.
It also suggests that the IOLOCK bit can only be changed once an unlocking sequence has been executed.
I see that the IOLOCK One-Way Set Enable is maybe combined? The manual suggests there is an IOLOCK bit and an IOL1WAY bit independent from each other.
It also suggests that the IOLOCK bit can only be changed once an unlocking sequence has been executed.
- Attachments
-
- IOLOCK.jpg (53.18 KiB) Viewed 1744 times
-
- Matrix Staff
- Posts: 1756
- Joined: Mon Dec 07, 2020 10:06 am
- Has thanked: 446 times
- Been thanked: 606 times
Re: PIC24fj64GB002 revisit - Remapping pins
Hello,
I've replied to your other topic with some suggestions of how to proceed.
The IOLOCK I beleive allows you to set the peripheral pin once but blocks you from then altering the value without an unlock sequence. Leaving it desabled for now should remove it from the equasion.
I've replied to your other topic with some suggestions of how to proceed.
The IOLOCK I beleive allows you to set the peripheral pin once but blocks you from then altering the value without an unlock sequence. Leaving it desabled for now should remove it from the equasion.
Regards Ben Rowland - MatrixTSL
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel