Quantcast
Channel: MSP low-power microcontrollers
Viewing all articles
Browse latest Browse all 62309

Forum Post: RE: How to build a Look Up Table with CCS 6.2 assembly code?

$
0
0
[quote user="Antony Chiang"] I will like to using Assembly code to build a Look Up Table for output a Sine wave, which complier is CCS V6.2. ;Look Up Table Start Address &0FFC0 . data 0C00H: 1024 0C02H: 1023 0C04H: 1021 0C06H: 1025 0C08H: 1026 0C0AH: 1020 0C0CH: 1021 0C0EH: 1029 0C10H: 1025 0C12H: 1016 0C14H: 1025 . 0FFFh: 0000. ;-------------------------------------------- End of data. [/quote] I am not using CCS, but is should be possible in any assembler to store table like this... TabLen equ (TabEnd - TabBegin) / 2 org 0C00h TabBegin dw 1024, 1023, 1021, 1025 ... dw 1029, 1025, 1016, 1025 TabEnd

Viewing all articles
Browse latest Browse all 62309

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>