Need simple "square wave bit" HAL component

More
8 years 4 months ago #112089 by Sparky961
I wasn't able to find a HAL component that outputs a square wave as a bit type. The closest I found was the siggen component, but it is complete overkill for my application and the output would need to be converted to bit type, which I don't know how to do. I just want to flash an indicator LED at constant low frequency, say 0.25 Hz or so. I'd be gating this with another signal, so building the gating into a component would be useful.

I think for someone experienced, this should be a simple component and timing isn't critical as long as it appears somewhat constant/consistent, though something that had low overhead and could work to higher frequencies may also be useful to me in the future.

I've looked into the basics of making a component but can someone help me get started with this one?

That, or point out the existing component I missed that does exactly what I'm looking for. ;)

Thanks..

Please Log in to join the conversation.

More
8 years 4 months ago #112090 by PCW
siggen has a clock output of type bit you can use

Please Log in to join the conversation.

More
8 years 4 months ago #112091 by Sparky961
Thank you, I missed that while reading through.

Since this runs in the base thread, does it consume appreciable system resources? It seems like there would be a lot of extra processing going on that I wouldn't be using.

Please Log in to join the conversation.

More
8 years 4 months ago #112105 by PCW
Unless you need a high frequency output you can just run it in a servo thread

Please Log in to join the conversation.

Time to create page: 0.082 seconds
Powered by Kunena Forum