1 (edited by nicolas0481 02-06-2022 15:18:03)

Topic: Constant value more than 4 digits Hex


Is there a way in future release to allow constant value to be more than 4 digits hex?
I would like to write the entire data frame (without ID) in a constant block and then use an homemade Compostite Block to parse value in a correct order (using shifts and masking) to feed D0:D1, D2:D3 registers.
I'm quite lazy to write pair of swapped data bytes on each Dx:Dy registers.

Thank you

Best regards

Always happy to use such a great tool!


Re: Constant value more than 4 digits Hex

Thanks for the kind feedback and for sharing your experience with us!

It seems that I cannot promise the support for long constant values in the nearest releases of the CannyLab.
But you may be glad to know that you can carelessly use constant-only operations in the diagram. Everything that can be calculated in the compilation time will be calculated in the... compilation time and will not waste controller resources during operation in HW.

Post's attachments

swap8.png, 41.39 kb, 878 x 608
swap8.png 41.39 kb, 4 downloads since 2022-06-14 


Re: Constant value more than 4 digits Hex

Clever idea!
In line placement of the constants is simple but effective.