How to read and write to an upper half or a specific bit from a decimal number in Simulink?
Afficher commentaires plus anciens
Hi.
Can you please tell me how to read and write integer number to the upper part of the register and read and write only one bit?
I can read only the whole register as an integer, but I need only part of it (TBPHS value). Similarly, how to write integer number only to an upper-half?

For the second case, how to read and write value for PHSDIR (one bit) if I am only able to read the whole TBCTL register?

Thank you in advance.
Edit:
What to use to write to upper-half or specific bit?
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Simulink Functions dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!