Bit toggling doesn't work

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 8.

Moderator: Benj

Post Reply
viliusrem
Posts: 1
Joined: Fri Jul 31, 2020 1:45 pm
Contact:

Bit toggling doesn't work

Post by viliusrem »

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!
Attachments
b9.fcfx
(7.31 KiB) Downloaded 111 times

User avatar
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

Post by Benj »

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.

Post Reply