Tool/software: Code Composer Studio
Hi everyone.
I'm studying .hex file and .asm file. I heard that .hex file made from ccs is same with .asm file in same project.
But, I can't read the hex file. Can anybody help me? Is there any manual to read msp430's hex instructions?
%4E6F0800005C008100005CB11330000C43B11300001C43B1132A00F2E032000202001332D01000 %16660800005C20FD3F0343 %1265C80000FFD21C5C %1265E80000FFD41C5C %1266080000FFD61C5C %1266280000FFD81C5C %1266480000FFDA1C5C %1266680000FFDC1C5C %1266880000FFDE1C5C %1265B80000FFE01C5C %1265D80000FFE21C5C %1265F80000FFE41C5C %1266180000FFE61C5C %1266380000FFE81C5C %1266580000FFEA1C5C %1265F80000FFEC145C %1266980000FFEE1C5C %1265C80000FFF01C5C %1265E80000FFF21C5C %1266080000FFF41C5C %1266280000FFF61C5C %1266480000FFF81C5C %1266680000FFFA1C5C %1266880000FFFC1C5C %1265D80000FFFE005C %4E624800010000B240805A5C01D2D30402B24010004203B240FF7F5203B24014014003034332D0 %366A68000100201800034303430C4310010343FF3F03431C431001 %0E82F800005C00
#include <msp430.h> int main(void) { WDTCTL = WDTPW + WDTHOLD; // Stop WDT P1DIR |= 0x01; // P1.0 output TA0CCTL0 = CCIE; // CCR0 interrupt enabled TA0CCR0 = 32767; TA0CTL = TASSEL_1 + MC_1 + TACLR; // SMCLK, upmode, clear TAR __bis_SR_register(LPM0_bits + GIE); // Enter LPM0, enable interrupts __no_operation(); // For debugger } // Timer0 A0 interrupt service routine #if defined(__TI_COMPILER_VERSION__) || defined(__IAR_SYSTEMS_ICC__) #pragma vector=TIMER0_A0_VECTOR __interrupt void TIMER0_A0_ISR(void) #elif defined(__GNUC__) void __attribute__ ((interrupt(TIMER0_A0_VECTOR))) TIMER0_A0_ISR (void) #else #error Compiler not supported! #endif { P1OUT ^= 0x32; // Toggle P1.0 }
Thanks.