Hi,
I am trying to toggle a B9 pin on chip 33EP32MC504 and for some reason, it doesn't work when tested with a digital oscilloscope. I cannot get the bit to switch on and off. Same program when written using MPLAB in C, works fine, but for some reason, doesn't work in Flowcode. It probably has something to do with the project options, but I cannot figure out what is it exactly. The program doesn't do anything else and we measure 2V on B9, but it should be 3.3V. Please see the program attached. Thanks!
Bit toggling doesn't work
Moderator: Benj
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: Bit toggling doesn't work
Hello,
If you are teting with a multimeter then it might be the pin is toggling on and off too fast for it to see 0V and 3V3.
This is a good simple test to get you started and to confirm your configuration settings.
https://www.matrixtsl.com/wiki/index.ph ... ED_flasher
Basically what you have but a bit slower.
I might try changing the XT config oscillator setting to HS depending on the value of your crystal.
If you are teting with a multimeter then it might be the pin is toggling on and off too fast for it to see 0V and 3V3.
This is a good simple test to get you started and to confirm your configuration settings.
https://www.matrixtsl.com/wiki/index.ph ... ED_flasher
Basically what you have but a bit slower.
I might try changing the XT config oscillator setting to HS depending on the value of your crystal.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel