Hi
The attached code for PIC16F1789 (written under V9) is setup to direct DACoutput1 to port RB7 instead of RA2.
The code worked last time it was compiled on version 9. V10 simulator shows the correct value but a programmed chip does not. DAC Voltage is set at 3.1V, I measure 1.6V on RB7 (pin40) and 3.2V on RA2 (pin 4) which I am using as an input. I haven't clarified it but RA0 (pin 2) might not be working as an input as well. I have tried several micros including new parts ordered from RS this week.
Please advise solution
DAC output not appearing on alternate pin RB7
-
- Posts: 69
- http://meble-kuchenne.info.pl
- Joined: Wed Dec 02, 2020 10:58 am
- Has thanked: 27 times
- Been thanked: 8 times
DAC output not appearing on alternate pin RB7
- Attachments
-
- RBV80_ST_RIG_16F1789_V1-12.fcfx
- (152.29 KiB) Downloaded 20 times
-
- Matrix Staff
- Posts: 1777
- Joined: Mon Dec 07, 2020 10:06 am
- Has thanked: 454 times
- Been thanked: 614 times
Re: DAC output not appearing on alternate pin RB7
Many thanks for letting us know.
It seems the DAC alt pin code was a late addition in v9 and had not made it into the code for v10 so it's now been added in for you via a library update.
It seems the DAC alt pin code was a late addition in v9 and had not made it into the code for v10 so it's now been added in for you via a library update.
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