Updating Arduino Registers Value From Simulink
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Taimur Zaman
am 14 Mai 2018
Kommentiert: Ameer Hamza
am 15 Mai 2018
HI Everyone! I am working currently on the transformation of Arduino code to Simulink blocks. However, at some points in my code, i am using feedback which changes the respected values of timer registers like TCCR1A and TCCR1B and accordingly i have updated values of TCNT and OCR aswell. is there any one, to comment on this.
0 Kommentare
Akzeptierte Antwort
Ameer Hamza
am 14 Mai 2018
Simulink support package for Arduino does not provide a block to directly change internal registers. You might be able to do this by creating your custom block as described here. Defining your custom block allow you to implement functionality which is provided by the hardware but not currently supported by Simulink support package.
2 Kommentare
Ameer Hamza
am 15 Mai 2018
From the documentation, it appears that there is no other alternative to change register values directly from Simulink, by just using the default blocks provided by the support package.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Modeling finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!