Search found 3 matches

Return

by Benj
Mon Nov 26, 2018 6:15 pm
Jump to forum
Jump to topic

Re: Comparator PC10f204

Hello, I read that the flowcode not simulate the internal comparator, is correct? Currently Flowcode doesn't support internal comparator modules. If you want to use them you have to use your own C code inside C icons to drive the peripheral registers. We have tried a number of times to include compa...
by STibor
Tue Nov 27, 2018 8:29 pm
Jump to forum
Jump to topic

Re: Comparator PC10f204

Hello!

I attach an example.
Not tested in hardware.
by Benj
Tue Nov 27, 2018 1:16 pm
Jump to forum
Jump to topic

Re: Comparator PC10f204

Hello, For general purpose bit manipulation using a C code icon you can call these functions. set_bit(var,bitno) //Sets a single bit clear_bit(var,bitno) //Clears a single bit test_bit(var,bitno) //Tests a single bit for example set_bit(FCV_MYVAR, 0); Will set bit 0 in the MyVar Flowcode global vari...