16f18877 internal Zero Cross Detector

For general Flowcode discussion that does not belong in the other sections.
chipfryer27
Valued Contributor
Posts: 1912
http://meble-kuchenne.info.pl
Joined: Thu Dec 03, 2020 10:57 am
Has thanked: 415 times
Been thanked: 641 times

Re: 16f18877 internal Zero Cross Detector

Post by chipfryer27 »

Hi

Maybe not quite what you are after but you can reference pins directly, for example in a decision


Screenshot 2026-02-12 214622.jpg
Screenshot 2026-02-12 214622.jpg (87.23 KiB) Viewed 104 times
Regards

mnfisher
Valued Contributor
Posts: 1855
Joined: Wed Dec 09, 2020 9:37 pm
Has thanked: 154 times
Been thanked: 875 times

Re: 16f18877 internal Zero Cross Detector

Post by mnfisher »

Possibly!

I suspect you might be able to do $PORTA0 = 1 in a calculation too?

Though - this is new to me - and I've not tried it...

chipfryer27
Valued Contributor
Posts: 1912
Joined: Thu Dec 03, 2020 10:57 am
Has thanked: 415 times
Been thanked: 641 times

Re: 16f18877 internal Zero Cross Detector

Post by chipfryer27 »

Hi

You can indeed reference ports/pins in calculations.

This calculation immediately turns on the inbuilt LED on a lolin-lite (pin 22, active low)

Screenshot 2026-02-13 051633.jpg
Screenshot 2026-02-13 051633.jpg (48.19 KiB) Viewed 76 times

Regards

Post Reply