added more code
This commit is contained in:
		
							
								
								
									
										726
									
								
								CPE325/Lab6_Problem1/Debug/Lab6_Problem1.map
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										726
									
								
								CPE325/Lab6_Problem1/Debug/Lab6_Problem1.map
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,726 @@ | ||||
| ****************************************************************************** | ||||
|                   MSP430 Linker PC v20.2.5                      | ||||
| ****************************************************************************** | ||||
| >> Linked Fri Oct  1 15:16:30 2021 | ||||
|  | ||||
| OUTPUT FILE NAME:   <Lab6_Problem1.out> | ||||
| ENTRY POINT SYMBOL: "RESET"  address: 00003100 | ||||
|  | ||||
|  | ||||
| MEMORY CONFIGURATION | ||||
|  | ||||
|          name            origin    length      used     unused   attr    fill | ||||
| ----------------------  --------  ---------  --------  --------  ----  -------- | ||||
|   SFR                   00000000   00000010  00000000  00000010  RWIX | ||||
|   PERIPHERALS_8BIT      00000010   000000f0  00000000  000000f0  RWIX | ||||
|   PERIPHERALS_16BIT     00000100   00000100  00000000  00000100  RWIX | ||||
|   INFOB                 00001000   00000080  00000000  00000080  RWIX | ||||
|   INFOA                 00001080   00000080  00000000  00000080  RWIX | ||||
|   RAM                   00001100   00002000  00000000  00002000  RWIX | ||||
|   FLASH                 00003100   0000cebe  00000088  0000ce36  RWIX | ||||
|   BSLSIGNATURE          0000ffbe   00000002  00000002  00000000  RWIX  ffff  | ||||
|   INT00                 0000ffc0   00000002  00000000  00000002  RWIX | ||||
|   INT01                 0000ffc2   00000002  00000000  00000002  RWIX | ||||
|   INT02                 0000ffc4   00000002  00000000  00000002  RWIX | ||||
|   INT03                 0000ffc6   00000002  00000000  00000002  RWIX | ||||
|   INT04                 0000ffc8   00000002  00000000  00000002  RWIX | ||||
|   INT05                 0000ffca   00000002  00000000  00000002  RWIX | ||||
|   INT06                 0000ffcc   00000002  00000000  00000002  RWIX | ||||
|   INT07                 0000ffce   00000002  00000000  00000002  RWIX | ||||
|   INT08                 0000ffd0   00000002  00000000  00000002  RWIX | ||||
|   INT09                 0000ffd2   00000002  00000000  00000002  RWIX | ||||
|   INT10                 0000ffd4   00000002  00000000  00000002  RWIX | ||||
|   INT11                 0000ffd6   00000002  00000000  00000002  RWIX | ||||
|   INT12                 0000ffd8   00000002  00000000  00000002  RWIX | ||||
|   INT13                 0000ffda   00000002  00000000  00000002  RWIX | ||||
|   INT14                 0000ffdc   00000002  00000002  00000000  RWIX | ||||
|   INT15                 0000ffde   00000002  00000002  00000000  RWIX | ||||
|   INT16                 0000ffe0   00000002  00000002  00000000  RWIX | ||||
|   INT17                 0000ffe2   00000002  00000002  00000000  RWIX | ||||
|   INT18                 0000ffe4   00000002  00000002  00000000  RWIX | ||||
|   INT19                 0000ffe6   00000002  00000002  00000000  RWIX | ||||
|   INT20                 0000ffe8   00000002  00000002  00000000  RWIX | ||||
|   INT21                 0000ffea   00000002  00000002  00000000  RWIX | ||||
|   INT22                 0000ffec   00000002  00000002  00000000  RWIX | ||||
|   INT23                 0000ffee   00000002  00000002  00000000  RWIX | ||||
|   INT24                 0000fff0   00000002  00000002  00000000  RWIX | ||||
|   INT25                 0000fff2   00000002  00000002  00000000  RWIX | ||||
|   INT26                 0000fff4   00000002  00000002  00000000  RWIX | ||||
|   INT27                 0000fff6   00000002  00000002  00000000  RWIX | ||||
|   INT28                 0000fff8   00000002  00000002  00000000  RWIX | ||||
|   INT29                 0000fffa   00000002  00000002  00000000  RWIX | ||||
|   INT30                 0000fffc   00000002  00000002  00000000  RWIX | ||||
|   RESET                 0000fffe   00000002  00000002  00000000  RWIX | ||||
|   FLASH2                00010000   00010000  00000000  00010000  RWIX | ||||
|  | ||||
|  | ||||
| SECTION ALLOCATION MAP | ||||
|  | ||||
|  output                                  attributes/ | ||||
| section   page    origin      length       input sections | ||||
| --------  ----  ----------  ----------   ---------------- | ||||
| .stack     0    00003100    00000000      | ||||
|  | ||||
| .text      0    00003100    00000080      | ||||
|                   00003100    00000080     main.obj (.text) | ||||
|  | ||||
| .text:_isr  | ||||
| *          0    00003180    00000008      | ||||
|                   00003180    00000008     rts430_eabi.lib : isr_trap.asm.obj (.text:_isr:__TI_ISR_TRAP) | ||||
|  | ||||
| .cinit     0    00003100    00000000     UNINITIALIZED | ||||
|  | ||||
| .binit     0    00003100    00000000      | ||||
|  | ||||
| .init_array  | ||||
| *          0    00003100    00000000     UNINITIALIZED | ||||
|  | ||||
| DAC12      0    0000ffdc    00000002      | ||||
|                   0000ffdc    00000002     rts430_eabi.lib : int14.asm.obj (.int14) | ||||
|  | ||||
| DMA        0    0000ffde    00000002      | ||||
|                   0000ffde    00000002     rts430_eabi.lib : int15.asm.obj (.int15) | ||||
|  | ||||
| BASICTIMER  | ||||
| *          0    0000ffe0    00000002      | ||||
|                   0000ffe0    00000002     rts430_eabi.lib : int16.asm.obj (.int16) | ||||
|  | ||||
| PORT2      0    0000ffe2    00000002      | ||||
|                   0000ffe2    00000002     rts430_eabi.lib : int17.asm.obj (.int17) | ||||
|  | ||||
| USART1TX   0    0000ffe4    00000002      | ||||
|                   0000ffe4    00000002     rts430_eabi.lib : int18.asm.obj (.int18) | ||||
|  | ||||
| USART1RX   0    0000ffe6    00000002      | ||||
|                   0000ffe6    00000002     rts430_eabi.lib : int19.asm.obj (.int19) | ||||
|  | ||||
| PORT1      0    0000ffe8    00000002      | ||||
|                   0000ffe8    00000002     main.obj (.int20) | ||||
|  | ||||
| TIMERA1    0    0000ffea    00000002      | ||||
|                   0000ffea    00000002     rts430_eabi.lib : int21.asm.obj (.int21) | ||||
|  | ||||
| TIMERA0    0    0000ffec    00000002      | ||||
|                   0000ffec    00000002     rts430_eabi.lib : int22.asm.obj (.int22) | ||||
|  | ||||
| ADC12      0    0000ffee    00000002      | ||||
|                   0000ffee    00000002     rts430_eabi.lib : int23.asm.obj (.int23) | ||||
|  | ||||
| USCIAB0TX  | ||||
| *          0    0000fff0    00000002      | ||||
|                   0000fff0    00000002     rts430_eabi.lib : int24.asm.obj (.int24) | ||||
|  | ||||
| USCIAB0RX  | ||||
| *          0    0000fff2    00000002      | ||||
|                   0000fff2    00000002     rts430_eabi.lib : int25.asm.obj (.int25) | ||||
|  | ||||
| WDT        0    0000fff4    00000002      | ||||
|                   0000fff4    00000002     rts430_eabi.lib : int26.asm.obj (.int26) | ||||
|  | ||||
| COMPARATORA  | ||||
| *          0    0000fff6    00000002      | ||||
|                   0000fff6    00000002     rts430_eabi.lib : int27.asm.obj (.int27) | ||||
|  | ||||
| TIMERB1    0    0000fff8    00000002      | ||||
|                   0000fff8    00000002     rts430_eabi.lib : int28.asm.obj (.int28) | ||||
|  | ||||
| TIMERB0    0    0000fffa    00000002      | ||||
|                   0000fffa    00000002     rts430_eabi.lib : int29.asm.obj (.int29) | ||||
|  | ||||
| NMI        0    0000fffc    00000002      | ||||
|                   0000fffc    00000002     rts430_eabi.lib : int30.asm.obj (.int30) | ||||
|  | ||||
| .reset     0    0000fffe    00000002      | ||||
|                   0000fffe    00000002     main.obj (.reset) | ||||
|  | ||||
| $fill000   0    0000ffbe    00000002      | ||||
|                   0000ffbe    00000002     --HOLE-- [fill = ffff] | ||||
|  | ||||
| MODULE SUMMARY | ||||
|  | ||||
|        Module             code   ro data   rw data | ||||
|        ------             ----   -------   ------- | ||||
|     .\ | ||||
|        main.obj           128    4         0       | ||||
|     +--+------------------+------+---------+---------+ | ||||
|        Total:             128    4         0       | ||||
|                                                    | ||||
|     C:\ti\ccs1040\ccs\tools\compiler\ti-cgt-msp430_20.2.5.LTS\lib\rts430_eabi.lib | ||||
|        isr_trap.asm.obj   8      0         0       | ||||
|        int14.asm.obj      0      2         0       | ||||
|        int15.asm.obj      0      2         0       | ||||
|        int16.asm.obj      0      2         0       | ||||
|        int17.asm.obj      0      2         0       | ||||
|        int18.asm.obj      0      2         0       | ||||
|        int19.asm.obj      0      2         0       | ||||
|        int21.asm.obj      0      2         0       | ||||
|        int22.asm.obj      0      2         0       | ||||
|        int23.asm.obj      0      2         0       | ||||
|        int24.asm.obj      0      2         0       | ||||
|        int25.asm.obj      0      2         0       | ||||
|        int26.asm.obj      0      2         0       | ||||
|        int27.asm.obj      0      2         0       | ||||
|        int28.asm.obj      0      2         0       | ||||
|        int29.asm.obj      0      2         0       | ||||
|        int30.asm.obj      0      2         0       | ||||
|     +--+------------------+------+---------+---------+ | ||||
|        Total:             8      32        0       | ||||
|                                                    | ||||
|     +--+------------------+------+---------+---------+ | ||||
|        Grand Total:       136    36        0       | ||||
|  | ||||
|  | ||||
| GLOBAL SYMBOLS: SORTED ALPHABETICALLY BY Name  | ||||
|  | ||||
| address   name                 | ||||
| -------   ----                 | ||||
| 000001a0  ADC12CTL0            | ||||
| 000001a2  ADC12CTL1            | ||||
| 000001a6  ADC12IE              | ||||
| 000001a4  ADC12IFG             | ||||
| 000001a8  ADC12IV              | ||||
| 00000080  ADC12MCTL0           | ||||
| 00000081  ADC12MCTL1           | ||||
| 0000008a  ADC12MCTL10          | ||||
| 0000008b  ADC12MCTL11          | ||||
| 0000008c  ADC12MCTL12          | ||||
| 0000008d  ADC12MCTL13          | ||||
| 0000008e  ADC12MCTL14          | ||||
| 0000008f  ADC12MCTL15          | ||||
| 00000082  ADC12MCTL2           | ||||
| 00000083  ADC12MCTL3           | ||||
| 00000084  ADC12MCTL4           | ||||
| 00000085  ADC12MCTL5           | ||||
| 00000086  ADC12MCTL6           | ||||
| 00000087  ADC12MCTL7           | ||||
| 00000088  ADC12MCTL8           | ||||
| 00000089  ADC12MCTL9           | ||||
| 00000140  ADC12MEM0            | ||||
| 00000142  ADC12MEM1            | ||||
| 00000154  ADC12MEM10           | ||||
| 00000156  ADC12MEM11           | ||||
| 00000158  ADC12MEM12           | ||||
| 0000015a  ADC12MEM13           | ||||
| 0000015c  ADC12MEM14           | ||||
| 0000015e  ADC12MEM15           | ||||
| 00000144  ADC12MEM2            | ||||
| 00000146  ADC12MEM3            | ||||
| 00000148  ADC12MEM4            | ||||
| 0000014a  ADC12MEM5            | ||||
| 0000014c  ADC12MEM6            | ||||
| 0000014e  ADC12MEM7            | ||||
| 00000150  ADC12MEM8            | ||||
| 00000152  ADC12MEM9            | ||||
| 00000046  BTCNT1               | ||||
| 00000046  BTCNT12              | ||||
| 00000047  BTCNT2               | ||||
| 00000040  BTCTL                | ||||
| 00000059  CACTL1               | ||||
| 0000005a  CACTL2               | ||||
| 0000005b  CAPD                 | ||||
| 000001c0  DAC12_0CTL           | ||||
| 000001c8  DAC12_0DAT           | ||||
| 000001c2  DAC12_1CTL           | ||||
| 000001ca  DAC12_1DAT           | ||||
| 000001d0  DMA0CTL              | ||||
| 000001d6  DMA0DA               | ||||
| 000001d6  DMA0DAL              | ||||
| 000001d2  DMA0SA               | ||||
| 000001d2  DMA0SAL              | ||||
| 000001da  DMA0SZ               | ||||
| 000001dc  DMA1CTL              | ||||
| 000001e2  DMA1DA               | ||||
| 000001e2  DMA1DAL              | ||||
| 000001de  DMA1SA               | ||||
| 000001de  DMA1SAL              | ||||
| 000001e6  DMA1SZ               | ||||
| 000001e8  DMA2CTL              | ||||
| 000001ee  DMA2DA               | ||||
| 000001ee  DMA2DAL              | ||||
| 000001ea  DMA2SA               | ||||
| 000001ea  DMA2SAL              | ||||
| 000001f2  DMA2SZ               | ||||
| 00000122  DMACTL0              | ||||
| 00000124  DMACTL1              | ||||
| 00000126  DMAIV                | ||||
| 00000128  FCTL1                | ||||
| 0000012a  FCTL2                | ||||
| 0000012c  FCTL3                | ||||
| 00000053  FLL_CTL0             | ||||
| 00000054  FLL_CTL1             | ||||
| 00000000  IE1                  | ||||
| 00000001  IE2                  | ||||
| 00000002  IFG1                 | ||||
| 00000003  IFG2                 | ||||
| 00000090  LCDACTL              | ||||
| 000000ac  LCDAPCTL0            | ||||
| 000000ad  LCDAPCTL1            | ||||
| 000000ae  LCDAVCTL0            | ||||
| 000000af  LCDAVCTL1            | ||||
| 00000091  LCDM1                | ||||
| 0000009a  LCDM10               | ||||
| 0000009b  LCDM11               | ||||
| 0000009c  LCDM12               | ||||
| 0000009d  LCDM13               | ||||
| 0000009e  LCDM14               | ||||
| 0000009f  LCDM15               | ||||
| 000000a0  LCDM16               | ||||
| 000000a1  LCDM17               | ||||
| 000000a2  LCDM18               | ||||
| 000000a3  LCDM19               | ||||
| 00000092  LCDM2                | ||||
| 000000a4  LCDM20               | ||||
| 00000093  LCDM3                | ||||
| 00000094  LCDM4                | ||||
| 00000095  LCDM5                | ||||
| 00000096  LCDM6                | ||||
| 00000097  LCDM7                | ||||
| 00000098  LCDM8                | ||||
| 00000099  LCDM9                | ||||
| 00000134  MAC                  | ||||
| 00000136  MACS                 | ||||
| 00000005  ME2                  | ||||
| 00000130  MPY                  | ||||
| 00000132  MPYS                 | ||||
| 000000c0  OA0CTL0              | ||||
| 000000c1  OA0CTL1              | ||||
| 000000c2  OA1CTL0              | ||||
| 000000c3  OA1CTL1              | ||||
| 000000c4  OA2CTL0              | ||||
| 000000c5  OA2CTL1              | ||||
| 00000138  OP2                  | ||||
| 0000000d  P10DIR               | ||||
| 00000009  P10IN                | ||||
| 0000000b  P10OUT               | ||||
| 0000000f  P10SEL               | ||||
| 00000022  P1DIR                | ||||
| 00000025  P1IE                 | ||||
| 00000024  P1IES                | ||||
| 00000023  P1IFG                | ||||
| 00000020  P1IN                 | ||||
| 00000021  P1OUT                | ||||
| 00000026  P1SEL                | ||||
| 0000002a  P2DIR                | ||||
| 0000002d  P2IE                 | ||||
| 0000002c  P2IES                | ||||
| 0000002b  P2IFG                | ||||
| 00000028  P2IN                 | ||||
| 00000029  P2OUT                | ||||
| 0000002e  P2SEL                | ||||
| 0000001a  P3DIR                | ||||
| 00000018  P3IN                 | ||||
| 00000019  P3OUT                | ||||
| 0000001b  P3SEL                | ||||
| 0000001e  P4DIR                | ||||
| 0000001c  P4IN                 | ||||
| 0000001d  P4OUT                | ||||
| 0000001f  P4SEL                | ||||
| 00000032  P5DIR                | ||||
| 00000030  P5IN                 | ||||
| 00000031  P5OUT                | ||||
| 00000033  P5SEL                | ||||
| 00000036  P6DIR                | ||||
| 00000034  P6IN                 | ||||
| 00000035  P6OUT                | ||||
| 00000037  P6SEL                | ||||
| 0000003c  P7DIR                | ||||
| 00000038  P7IN                 | ||||
| 0000003a  P7OUT                | ||||
| 0000003e  P7SEL                | ||||
| 0000003d  P8DIR                | ||||
| 00000039  P8IN                 | ||||
| 0000003b  P8OUT                | ||||
| 0000003f  P8SEL                | ||||
| 0000000c  P9DIR                | ||||
| 00000008  P9IN                 | ||||
| 0000000a  P9OUT                | ||||
| 0000000e  P9SEL                | ||||
| 0000003c  PADIR                | ||||
| 00000038  PAIN                 | ||||
| 0000003a  PAOUT                | ||||
| 0000003e  PASEL                | ||||
| 0000000c  PBDIR                | ||||
| 00000008  PBIN                 | ||||
| 0000000a  PBOUT                | ||||
| 0000000e  PBSEL                | ||||
| 00003100  RESET                | ||||
| 0000013c  RESHI                | ||||
| 0000013a  RESLO                | ||||
| 00000041  RTCCTL               | ||||
| 0000004c  RTCDATE              | ||||
| 0000004c  RTCDAY               | ||||
| 0000004d  RTCMON               | ||||
| 00000042  RTCNT1               | ||||
| 00000043  RTCNT2               | ||||
| 00000044  RTCNT3               | ||||
| 00000045  RTCNT4               | ||||
| 00000042  RTCTIM0              | ||||
| 00000044  RTCTIM1              | ||||
| 00000040  RTCTL                | ||||
| 0000004e  RTCYEAR              | ||||
| 0000004f  RTCYEARH             | ||||
| 0000004e  RTCYEARL             | ||||
| 00000050  SCFI0                | ||||
| 00000051  SCFI1                | ||||
| 00000052  SCFQCTL              | ||||
| 0000013e  SUMEXT               | ||||
| 00000056  SVSCTL               | ||||
| 00000172  TACCR0               | ||||
| 00000174  TACCR1               | ||||
| 00000176  TACCR2               | ||||
| 00000162  TACCTL0              | ||||
| 00000164  TACCTL1              | ||||
| 00000166  TACCTL2              | ||||
| 00000160  TACTL                | ||||
| 0000012e  TAIV                 | ||||
| 00000170  TAR                  | ||||
| 00000192  TBCCR0               | ||||
| 00000194  TBCCR1               | ||||
| 00000196  TBCCR2               | ||||
| 00000198  TBCCR3               | ||||
| 0000019a  TBCCR4               | ||||
| 0000019c  TBCCR5               | ||||
| 0000019e  TBCCR6               | ||||
| 00000182  TBCCTL0              | ||||
| 00000184  TBCCTL1              | ||||
| 00000186  TBCCTL2              | ||||
| 00000188  TBCCTL3              | ||||
| 0000018a  TBCCTL4              | ||||
| 0000018c  TBCCTL5              | ||||
| 0000018e  TBCCTL6              | ||||
| 00000180  TBCTL                | ||||
| 0000011e  TBIV                 | ||||
| 00000190  TBR                  | ||||
| 0000007c  U1BR0                | ||||
| 0000007d  U1BR1                | ||||
| 00000078  U1CTL                | ||||
| 0000007b  U1MCTL               | ||||
| 0000007a  U1RCTL               | ||||
| 0000007e  U1RXBUF              | ||||
| 00000079  U1TCTL               | ||||
| 0000007f  U1TXBUF              | ||||
| 0000005d  UCA0ABCTL            | ||||
| 00000062  UCA0BR0              | ||||
| 00000063  UCA0BR1              | ||||
| 00000060  UCA0CTL0             | ||||
| 00000061  UCA0CTL1             | ||||
| 0000005f  UCA0IRRCTL           | ||||
| 0000005e  UCA0IRTCTL           | ||||
| 00000064  UCA0MCTL             | ||||
| 00000066  UCA0RXBUF            | ||||
| 00000065  UCA0STAT             | ||||
| 00000067  UCA0TXBUF            | ||||
| 0000006a  UCB0BR0              | ||||
| 0000006b  UCB0BR1              | ||||
| 00000068  UCB0CTL0             | ||||
| 00000069  UCB0CTL1             | ||||
| 0000006c  UCB0I2CIE            | ||||
| 00000118  UCB0I2COA            | ||||
| 0000011a  UCB0I2CSA            | ||||
| 0000006e  UCB0RXBUF            | ||||
| 0000006d  UCB0STAT             | ||||
| 0000006f  UCB0TXBUF            | ||||
| 00000120  WDTCTL               | ||||
| 00003100  __STACK_END          | ||||
| 00000000  __STACK_SIZE         | ||||
| 00003180  __TI_ISR_TRAP        | ||||
| 0000ffdc  __TI_int14           | ||||
| 0000ffde  __TI_int15           | ||||
| 0000ffe0  __TI_int16           | ||||
| 0000ffe2  __TI_int17           | ||||
| 0000ffe4  __TI_int18           | ||||
| 0000ffe6  __TI_int19           | ||||
| 0000ffe8  __TI_int20           | ||||
| 0000ffea  __TI_int21           | ||||
| 0000ffec  __TI_int22           | ||||
| 0000ffee  __TI_int23           | ||||
| 0000fff0  __TI_int24           | ||||
| 0000fff2  __TI_int25           | ||||
| 0000fff4  __TI_int26           | ||||
| 0000fff6  __TI_int27           | ||||
| 0000fff8  __TI_int28           | ||||
| 0000fffa  __TI_int29           | ||||
| 0000fffc  __TI_int30           | ||||
| ffffffff  __TI_pprof_out_hndl  | ||||
| ffffffff  __TI_prof_data_size  | ||||
| ffffffff  __TI_prof_data_start | ||||
| ffffffff  __c_args__           | ||||
|  | ||||
|  | ||||
| GLOBAL SYMBOLS: SORTED BY Symbol Address  | ||||
|  | ||||
| address   name                 | ||||
| -------   ----                 | ||||
| 00000000  IE1                  | ||||
| 00000000  __STACK_SIZE         | ||||
| 00000001  IE2                  | ||||
| 00000002  IFG1                 | ||||
| 00000003  IFG2                 | ||||
| 00000005  ME2                  | ||||
| 00000008  P9IN                 | ||||
| 00000008  PBIN                 | ||||
| 00000009  P10IN                | ||||
| 0000000a  P9OUT                | ||||
| 0000000a  PBOUT                | ||||
| 0000000b  P10OUT               | ||||
| 0000000c  P9DIR                | ||||
| 0000000c  PBDIR                | ||||
| 0000000d  P10DIR               | ||||
| 0000000e  P9SEL                | ||||
| 0000000e  PBSEL                | ||||
| 0000000f  P10SEL               | ||||
| 00000018  P3IN                 | ||||
| 00000019  P3OUT                | ||||
| 0000001a  P3DIR                | ||||
| 0000001b  P3SEL                | ||||
| 0000001c  P4IN                 | ||||
| 0000001d  P4OUT                | ||||
| 0000001e  P4DIR                | ||||
| 0000001f  P4SEL                | ||||
| 00000020  P1IN                 | ||||
| 00000021  P1OUT                | ||||
| 00000022  P1DIR                | ||||
| 00000023  P1IFG                | ||||
| 00000024  P1IES                | ||||
| 00000025  P1IE                 | ||||
| 00000026  P1SEL                | ||||
| 00000028  P2IN                 | ||||
| 00000029  P2OUT                | ||||
| 0000002a  P2DIR                | ||||
| 0000002b  P2IFG                | ||||
| 0000002c  P2IES                | ||||
| 0000002d  P2IE                 | ||||
| 0000002e  P2SEL                | ||||
| 00000030  P5IN                 | ||||
| 00000031  P5OUT                | ||||
| 00000032  P5DIR                | ||||
| 00000033  P5SEL                | ||||
| 00000034  P6IN                 | ||||
| 00000035  P6OUT                | ||||
| 00000036  P6DIR                | ||||
| 00000037  P6SEL                | ||||
| 00000038  P7IN                 | ||||
| 00000038  PAIN                 | ||||
| 00000039  P8IN                 | ||||
| 0000003a  P7OUT                | ||||
| 0000003a  PAOUT                | ||||
| 0000003b  P8OUT                | ||||
| 0000003c  P7DIR                | ||||
| 0000003c  PADIR                | ||||
| 0000003d  P8DIR                | ||||
| 0000003e  P7SEL                | ||||
| 0000003e  PASEL                | ||||
| 0000003f  P8SEL                | ||||
| 00000040  BTCTL                | ||||
| 00000040  RTCTL                | ||||
| 00000041  RTCCTL               | ||||
| 00000042  RTCNT1               | ||||
| 00000042  RTCTIM0              | ||||
| 00000043  RTCNT2               | ||||
| 00000044  RTCNT3               | ||||
| 00000044  RTCTIM1              | ||||
| 00000045  RTCNT4               | ||||
| 00000046  BTCNT1               | ||||
| 00000046  BTCNT12              | ||||
| 00000047  BTCNT2               | ||||
| 0000004c  RTCDATE              | ||||
| 0000004c  RTCDAY               | ||||
| 0000004d  RTCMON               | ||||
| 0000004e  RTCYEAR              | ||||
| 0000004e  RTCYEARL             | ||||
| 0000004f  RTCYEARH             | ||||
| 00000050  SCFI0                | ||||
| 00000051  SCFI1                | ||||
| 00000052  SCFQCTL              | ||||
| 00000053  FLL_CTL0             | ||||
| 00000054  FLL_CTL1             | ||||
| 00000056  SVSCTL               | ||||
| 00000059  CACTL1               | ||||
| 0000005a  CACTL2               | ||||
| 0000005b  CAPD                 | ||||
| 0000005d  UCA0ABCTL            | ||||
| 0000005e  UCA0IRTCTL           | ||||
| 0000005f  UCA0IRRCTL           | ||||
| 00000060  UCA0CTL0             | ||||
| 00000061  UCA0CTL1             | ||||
| 00000062  UCA0BR0              | ||||
| 00000063  UCA0BR1              | ||||
| 00000064  UCA0MCTL             | ||||
| 00000065  UCA0STAT             | ||||
| 00000066  UCA0RXBUF            | ||||
| 00000067  UCA0TXBUF            | ||||
| 00000068  UCB0CTL0             | ||||
| 00000069  UCB0CTL1             | ||||
| 0000006a  UCB0BR0              | ||||
| 0000006b  UCB0BR1              | ||||
| 0000006c  UCB0I2CIE            | ||||
| 0000006d  UCB0STAT             | ||||
| 0000006e  UCB0RXBUF            | ||||
| 0000006f  UCB0TXBUF            | ||||
| 00000078  U1CTL                | ||||
| 00000079  U1TCTL               | ||||
| 0000007a  U1RCTL               | ||||
| 0000007b  U1MCTL               | ||||
| 0000007c  U1BR0                | ||||
| 0000007d  U1BR1                | ||||
| 0000007e  U1RXBUF              | ||||
| 0000007f  U1TXBUF              | ||||
| 00000080  ADC12MCTL0           | ||||
| 00000081  ADC12MCTL1           | ||||
| 00000082  ADC12MCTL2           | ||||
| 00000083  ADC12MCTL3           | ||||
| 00000084  ADC12MCTL4           | ||||
| 00000085  ADC12MCTL5           | ||||
| 00000086  ADC12MCTL6           | ||||
| 00000087  ADC12MCTL7           | ||||
| 00000088  ADC12MCTL8           | ||||
| 00000089  ADC12MCTL9           | ||||
| 0000008a  ADC12MCTL10          | ||||
| 0000008b  ADC12MCTL11          | ||||
| 0000008c  ADC12MCTL12          | ||||
| 0000008d  ADC12MCTL13          | ||||
| 0000008e  ADC12MCTL14          | ||||
| 0000008f  ADC12MCTL15          | ||||
| 00000090  LCDACTL              | ||||
| 00000091  LCDM1                | ||||
| 00000092  LCDM2                | ||||
| 00000093  LCDM3                | ||||
| 00000094  LCDM4                | ||||
| 00000095  LCDM5                | ||||
| 00000096  LCDM6                | ||||
| 00000097  LCDM7                | ||||
| 00000098  LCDM8                | ||||
| 00000099  LCDM9                | ||||
| 0000009a  LCDM10               | ||||
| 0000009b  LCDM11               | ||||
| 0000009c  LCDM12               | ||||
| 0000009d  LCDM13               | ||||
| 0000009e  LCDM14               | ||||
| 0000009f  LCDM15               | ||||
| 000000a0  LCDM16               | ||||
| 000000a1  LCDM17               | ||||
| 000000a2  LCDM18               | ||||
| 000000a3  LCDM19               | ||||
| 000000a4  LCDM20               | ||||
| 000000ac  LCDAPCTL0            | ||||
| 000000ad  LCDAPCTL1            | ||||
| 000000ae  LCDAVCTL0            | ||||
| 000000af  LCDAVCTL1            | ||||
| 000000c0  OA0CTL0              | ||||
| 000000c1  OA0CTL1              | ||||
| 000000c2  OA1CTL0              | ||||
| 000000c3  OA1CTL1              | ||||
| 000000c4  OA2CTL0              | ||||
| 000000c5  OA2CTL1              | ||||
| 00000118  UCB0I2COA            | ||||
| 0000011a  UCB0I2CSA            | ||||
| 0000011e  TBIV                 | ||||
| 00000120  WDTCTL               | ||||
| 00000122  DMACTL0              | ||||
| 00000124  DMACTL1              | ||||
| 00000126  DMAIV                | ||||
| 00000128  FCTL1                | ||||
| 0000012a  FCTL2                | ||||
| 0000012c  FCTL3                | ||||
| 0000012e  TAIV                 | ||||
| 00000130  MPY                  | ||||
| 00000132  MPYS                 | ||||
| 00000134  MAC                  | ||||
| 00000136  MACS                 | ||||
| 00000138  OP2                  | ||||
| 0000013a  RESLO                | ||||
| 0000013c  RESHI                | ||||
| 0000013e  SUMEXT               | ||||
| 00000140  ADC12MEM0            | ||||
| 00000142  ADC12MEM1            | ||||
| 00000144  ADC12MEM2            | ||||
| 00000146  ADC12MEM3            | ||||
| 00000148  ADC12MEM4            | ||||
| 0000014a  ADC12MEM5            | ||||
| 0000014c  ADC12MEM6            | ||||
| 0000014e  ADC12MEM7            | ||||
| 00000150  ADC12MEM8            | ||||
| 00000152  ADC12MEM9            | ||||
| 00000154  ADC12MEM10           | ||||
| 00000156  ADC12MEM11           | ||||
| 00000158  ADC12MEM12           | ||||
| 0000015a  ADC12MEM13           | ||||
| 0000015c  ADC12MEM14           | ||||
| 0000015e  ADC12MEM15           | ||||
| 00000160  TACTL                | ||||
| 00000162  TACCTL0              | ||||
| 00000164  TACCTL1              | ||||
| 00000166  TACCTL2              | ||||
| 00000170  TAR                  | ||||
| 00000172  TACCR0               | ||||
| 00000174  TACCR1               | ||||
| 00000176  TACCR2               | ||||
| 00000180  TBCTL                | ||||
| 00000182  TBCCTL0              | ||||
| 00000184  TBCCTL1              | ||||
| 00000186  TBCCTL2              | ||||
| 00000188  TBCCTL3              | ||||
| 0000018a  TBCCTL4              | ||||
| 0000018c  TBCCTL5              | ||||
| 0000018e  TBCCTL6              | ||||
| 00000190  TBR                  | ||||
| 00000192  TBCCR0               | ||||
| 00000194  TBCCR1               | ||||
| 00000196  TBCCR2               | ||||
| 00000198  TBCCR3               | ||||
| 0000019a  TBCCR4               | ||||
| 0000019c  TBCCR5               | ||||
| 0000019e  TBCCR6               | ||||
| 000001a0  ADC12CTL0            | ||||
| 000001a2  ADC12CTL1            | ||||
| 000001a4  ADC12IFG             | ||||
| 000001a6  ADC12IE              | ||||
| 000001a8  ADC12IV              | ||||
| 000001c0  DAC12_0CTL           | ||||
| 000001c2  DAC12_1CTL           | ||||
| 000001c8  DAC12_0DAT           | ||||
| 000001ca  DAC12_1DAT           | ||||
| 000001d0  DMA0CTL              | ||||
| 000001d2  DMA0SA               | ||||
| 000001d2  DMA0SAL              | ||||
| 000001d6  DMA0DA               | ||||
| 000001d6  DMA0DAL              | ||||
| 000001da  DMA0SZ               | ||||
| 000001dc  DMA1CTL              | ||||
| 000001de  DMA1SA               | ||||
| 000001de  DMA1SAL              | ||||
| 000001e2  DMA1DA               | ||||
| 000001e2  DMA1DAL              | ||||
| 000001e6  DMA1SZ               | ||||
| 000001e8  DMA2CTL              | ||||
| 000001ea  DMA2SA               | ||||
| 000001ea  DMA2SAL              | ||||
| 000001ee  DMA2DA               | ||||
| 000001ee  DMA2DAL              | ||||
| 000001f2  DMA2SZ               | ||||
| 00003100  RESET                | ||||
| 00003100  __STACK_END          | ||||
| 00003180  __TI_ISR_TRAP        | ||||
| 0000ffdc  __TI_int14           | ||||
| 0000ffde  __TI_int15           | ||||
| 0000ffe0  __TI_int16           | ||||
| 0000ffe2  __TI_int17           | ||||
| 0000ffe4  __TI_int18           | ||||
| 0000ffe6  __TI_int19           | ||||
| 0000ffe8  __TI_int20           | ||||
| 0000ffea  __TI_int21           | ||||
| 0000ffec  __TI_int22           | ||||
| 0000ffee  __TI_int23           | ||||
| 0000fff0  __TI_int24           | ||||
| 0000fff2  __TI_int25           | ||||
| 0000fff4  __TI_int26           | ||||
| 0000fff6  __TI_int27           | ||||
| 0000fff8  __TI_int28           | ||||
| 0000fffa  __TI_int29           | ||||
| 0000fffc  __TI_int30           | ||||
| ffffffff  __TI_pprof_out_hndl  | ||||
| ffffffff  __TI_prof_data_size  | ||||
| ffffffff  __TI_prof_data_start | ||||
| ffffffff  __c_args__           | ||||
|  | ||||
| [271 symbols] | ||||
							
								
								
									
										
											BIN
										
									
								
								CPE325/Lab6_Problem1/Debug/Lab6_Problem1.out
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								CPE325/Lab6_Problem1/Debug/Lab6_Problem1.out
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										2610
									
								
								CPE325/Lab6_Problem1/Debug/Lab6_Problem1_linkInfo.xml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										2610
									
								
								CPE325/Lab6_Problem1/Debug/Lab6_Problem1_linkInfo.xml
									
									
									
									
									
										Normal file
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
							
								
								
									
										1
									
								
								CPE325/Lab6_Problem1/Debug/ccsObjs.opt
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								CPE325/Lab6_Problem1/Debug/ccsObjs.opt
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1 @@ | ||||
| "./main.obj" "../lnk_msp430fg4618.cmd" -llibc.a  | ||||
							
								
								
									
										
											BIN
										
									
								
								CPE325/Lab6_Problem1/Debug/main.obj
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								CPE325/Lab6_Problem1/Debug/main.obj
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										166
									
								
								CPE325/Lab6_Problem1/Debug/makefile
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										166
									
								
								CPE325/Lab6_Problem1/Debug/makefile
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,166 @@ | ||||
| ################################################################################ | ||||
| # Automatically-generated file. Do not edit! | ||||
| ################################################################################ | ||||
|  | ||||
| SHELL = cmd.exe | ||||
|  | ||||
| CG_TOOL_ROOT := C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS | ||||
|  | ||||
| GEN_OPTS__FLAG :=  | ||||
| GEN_CMDS__FLAG :=  | ||||
|  | ||||
| ORDERED_OBJS += \ | ||||
| "./main.obj" \ | ||||
| "../lnk_msp430fg4618.cmd" \ | ||||
| $(GEN_CMDS__FLAG) \ | ||||
| -llibc.a \ | ||||
|  | ||||
| -include ../makefile.init | ||||
|  | ||||
| RM := DEL /F | ||||
| RMDIR := RMDIR /S/Q | ||||
|  | ||||
| # All of the sources participating in the build are defined here | ||||
| -include sources.mk | ||||
| -include subdir_vars.mk | ||||
| -include subdir_rules.mk | ||||
| -include objects.mk | ||||
|  | ||||
| ifneq ($(MAKECMDGOALS),clean) | ||||
| ifneq ($(strip $(C55_DEPS)),) | ||||
| -include $(C55_DEPS) | ||||
| endif | ||||
| ifneq ($(strip $(C_UPPER_DEPS)),) | ||||
| -include $(C_UPPER_DEPS) | ||||
| endif | ||||
| ifneq ($(strip $(S67_DEPS)),) | ||||
| -include $(S67_DEPS) | ||||
| endif | ||||
| ifneq ($(strip $(S62_DEPS)),) | ||||
| -include $(S62_DEPS) | ||||
| endif | ||||
| ifneq ($(strip $(S_DEPS)),) | ||||
| -include $(S_DEPS) | ||||
| endif | ||||
| ifneq ($(strip $(OPT_DEPS)),) | ||||
| -include $(OPT_DEPS) | ||||
| endif | ||||
| ifneq ($(strip $(C??_DEPS)),) | ||||
| -include $(C??_DEPS) | ||||
| endif | ||||
| ifneq ($(strip $(ASM_UPPER_DEPS)),) | ||||
| -include $(ASM_UPPER_DEPS) | ||||
| endif | ||||
| ifneq ($(strip $(S??_DEPS)),) | ||||
| -include $(S??_DEPS) | ||||
| endif | ||||
| ifneq ($(strip $(C64_DEPS)),) | ||||
| -include $(C64_DEPS) | ||||
| endif | ||||
| ifneq ($(strip $(CXX_DEPS)),) | ||||
| -include $(CXX_DEPS) | ||||
| endif | ||||
| ifneq ($(strip $(S64_DEPS)),) | ||||
| -include $(S64_DEPS) | ||||
| endif | ||||
| ifneq ($(strip $(INO_DEPS)),) | ||||
| -include $(INO_DEPS) | ||||
| endif | ||||
| ifneq ($(strip $(CLA_DEPS)),) | ||||
| -include $(CLA_DEPS) | ||||
| endif | ||||
| ifneq ($(strip $(S55_DEPS)),) | ||||
| -include $(S55_DEPS) | ||||
| endif | ||||
| ifneq ($(strip $(SV7A_DEPS)),) | ||||
| -include $(SV7A_DEPS) | ||||
| endif | ||||
| ifneq ($(strip $(C62_DEPS)),) | ||||
| -include $(C62_DEPS) | ||||
| endif | ||||
| ifneq ($(strip $(C67_DEPS)),) | ||||
| -include $(C67_DEPS) | ||||
| endif | ||||
| ifneq ($(strip $(PDE_DEPS)),) | ||||
| -include $(PDE_DEPS) | ||||
| endif | ||||
| ifneq ($(strip $(K_DEPS)),) | ||||
| -include $(K_DEPS) | ||||
| endif | ||||
| ifneq ($(strip $(C_DEPS)),) | ||||
| -include $(C_DEPS) | ||||
| endif | ||||
| ifneq ($(strip $(CC_DEPS)),) | ||||
| -include $(CC_DEPS) | ||||
| endif | ||||
| ifneq ($(strip $(C++_DEPS)),) | ||||
| -include $(C++_DEPS) | ||||
| endif | ||||
| ifneq ($(strip $(C43_DEPS)),) | ||||
| -include $(C43_DEPS) | ||||
| endif | ||||
| ifneq ($(strip $(S43_DEPS)),) | ||||
| -include $(S43_DEPS) | ||||
| endif | ||||
| ifneq ($(strip $(ASM_DEPS)),) | ||||
| -include $(ASM_DEPS) | ||||
| endif | ||||
| ifneq ($(strip $(S_UPPER_DEPS)),) | ||||
| -include $(S_UPPER_DEPS) | ||||
| endif | ||||
| ifneq ($(strip $(CPP_DEPS)),) | ||||
| -include $(CPP_DEPS) | ||||
| endif | ||||
| ifneq ($(strip $(SA_DEPS)),) | ||||
| -include $(SA_DEPS) | ||||
| endif | ||||
| endif | ||||
|  | ||||
| -include ../makefile.defs | ||||
|  | ||||
| # Add inputs and outputs from these tool invocations to the build variables  | ||||
| EXE_OUTPUTS += \ | ||||
| Lab6_Problem1.out \ | ||||
|  | ||||
| EXE_OUTPUTS__QUOTED += \ | ||||
| "Lab6_Problem1.out" \ | ||||
|  | ||||
| BIN_OUTPUTS += \ | ||||
| Lab6_Problem1.hex \ | ||||
|  | ||||
| BIN_OUTPUTS__QUOTED += \ | ||||
| "Lab6_Problem1.hex" \ | ||||
|  | ||||
|  | ||||
| # All Target | ||||
| all: $(OBJS) $(CMD_SRCS) $(GEN_CMDS) | ||||
| 	@$(MAKE) --no-print-directory -Onone "Lab6_Problem1.out" | ||||
|  | ||||
| # Tool invocations | ||||
| Lab6_Problem1.out: $(OBJS) $(CMD_SRCS) $(GEN_CMDS) | ||||
| 	@echo 'Building target: "$@"' | ||||
| 	@echo 'Invoking: MSP430 Linker' | ||||
| 	"C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/bin/cl430" -vmsp --code_model=small --data_model=small --use_hw_mpy=16 --advice:power=all --define=__MSP430FG4618__ -g --printf_support=minimal --diag_warning=225 --diag_wrap=off --display_error_number --silicon_errata=CPU19 -z -m"Lab6_Problem1.map" --heap_size=0 --stack_size=0 --cinit_hold_wdt=on -i"C:/ti/ccs1040/ccs/ccs_base/msp430/include" -i"C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/lib" -i"C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/include" --reread_libs --diag_wrap=off --display_error_number --warn_sections --xml_link_info="Lab6_Problem1_linkInfo.xml" --entry_point=RESET --use_hw_mpy=16 -o "Lab6_Problem1.out" $(ORDERED_OBJS) | ||||
| 	@echo 'Finished building target: "$@"' | ||||
| 	@echo ' ' | ||||
|  | ||||
| Lab6_Problem1.hex: $(EXE_OUTPUTS) | ||||
| 	@echo 'Building secondary target: "$@"' | ||||
| 	@echo 'Invoking: MSP430 Hex Utility' | ||||
| 	"C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/bin/hex430" --memwidth=8 --romwidth=8 --diag_wrap=off -o "Lab6_Problem1.hex" $(EXE_OUTPUTS__QUOTED) | ||||
| 	@echo 'Finished building secondary target: "$@"' | ||||
| 	@echo ' ' | ||||
|  | ||||
| # Other Targets | ||||
| clean: | ||||
| 	-$(RM) $(BIN_OUTPUTS__QUOTED)$(EXE_OUTPUTS__QUOTED) | ||||
| 	-$(RM) "main.obj"  | ||||
| 	-$(RM) "main.d"  | ||||
| 	-@echo 'Finished clean' | ||||
| 	-@echo ' ' | ||||
|  | ||||
| .PHONY: all clean dependents | ||||
| .SECONDARY: | ||||
|  | ||||
| -include ../makefile.targets | ||||
|  | ||||
							
								
								
									
										8
									
								
								CPE325/Lab6_Problem1/Debug/objects.mk
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								CPE325/Lab6_Problem1/Debug/objects.mk
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,8 @@ | ||||
| ################################################################################ | ||||
| # Automatically-generated file. Do not edit! | ||||
| ################################################################################ | ||||
|  | ||||
| USER_OBJS := | ||||
|  | ||||
| LIBS := -llibc.a | ||||
|  | ||||
							
								
								
									
										115
									
								
								CPE325/Lab6_Problem1/Debug/sources.mk
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										115
									
								
								CPE325/Lab6_Problem1/Debug/sources.mk
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,115 @@ | ||||
| ################################################################################ | ||||
| # Automatically-generated file. Do not edit! | ||||
| ################################################################################ | ||||
|  | ||||
| C55_SRCS :=  | ||||
| A_SRCS :=  | ||||
| ASM_UPPER_SRCS :=  | ||||
| EXE_SRCS :=  | ||||
| LDS_UPPER_SRCS :=  | ||||
| CPP_SRCS :=  | ||||
| CMD_SRCS :=  | ||||
| O_SRCS :=  | ||||
| ELF_SRCS :=  | ||||
| C??_SRCS :=  | ||||
| C64_SRCS :=  | ||||
| C67_SRCS :=  | ||||
| SA_SRCS :=  | ||||
| S64_SRCS :=  | ||||
| OPT_SRCS :=  | ||||
| CXX_SRCS :=  | ||||
| S67_SRCS :=  | ||||
| S??_SRCS :=  | ||||
| PDE_SRCS :=  | ||||
| SV7A_SRCS :=  | ||||
| K_SRCS :=  | ||||
| CLA_SRCS :=  | ||||
| S55_SRCS :=  | ||||
| LD_UPPER_SRCS :=  | ||||
| OUT_SRCS :=  | ||||
| INO_SRCS :=  | ||||
| LIB_SRCS :=  | ||||
| ASM_SRCS :=  | ||||
| S_UPPER_SRCS :=  | ||||
| S43_SRCS :=  | ||||
| LD_SRCS :=  | ||||
| CMD_UPPER_SRCS :=  | ||||
| C_UPPER_SRCS :=  | ||||
| C++_SRCS :=  | ||||
| C43_SRCS :=  | ||||
| OBJ_SRCS :=  | ||||
| LDS_SRCS :=  | ||||
| S_SRCS :=  | ||||
| CC_SRCS :=  | ||||
| S62_SRCS :=  | ||||
| C62_SRCS :=  | ||||
| C_SRCS :=  | ||||
| C55_DEPS :=  | ||||
| C_UPPER_DEPS :=  | ||||
| S67_DEPS :=  | ||||
| S62_DEPS :=  | ||||
| S_DEPS :=  | ||||
| OPT_DEPS :=  | ||||
| C??_DEPS :=  | ||||
| ASM_UPPER_DEPS :=  | ||||
| S??_DEPS :=  | ||||
| C64_DEPS :=  | ||||
| CXX_DEPS :=  | ||||
| S64_DEPS :=  | ||||
| INO_DEPS :=  | ||||
| CLA_DEPS :=  | ||||
| S55_DEPS :=  | ||||
| SV7A_DEPS :=  | ||||
| EXE_OUTPUTS :=  | ||||
| C62_DEPS :=  | ||||
| C67_DEPS :=  | ||||
| PDE_DEPS :=  | ||||
| K_DEPS :=  | ||||
| C_DEPS :=  | ||||
| CC_DEPS :=  | ||||
| BIN_OUTPUTS :=  | ||||
| C++_DEPS :=  | ||||
| C43_DEPS :=  | ||||
| S43_DEPS :=  | ||||
| OBJS :=  | ||||
| ASM_DEPS :=  | ||||
| S_UPPER_DEPS :=  | ||||
| CPP_DEPS :=  | ||||
| SA_DEPS :=  | ||||
| C++_DEPS__QUOTED :=  | ||||
| OPT_DEPS__QUOTED :=  | ||||
| S_UPPER_DEPS__QUOTED :=  | ||||
| SA_DEPS__QUOTED :=  | ||||
| C??_DEPS__QUOTED :=  | ||||
| S67_DEPS__QUOTED :=  | ||||
| C55_DEPS__QUOTED :=  | ||||
| CC_DEPS__QUOTED :=  | ||||
| ASM_UPPER_DEPS__QUOTED :=  | ||||
| SV7A_DEPS__QUOTED :=  | ||||
| S??_DEPS__QUOTED :=  | ||||
| OBJS__QUOTED :=  | ||||
| C67_DEPS__QUOTED :=  | ||||
| K_DEPS__QUOTED :=  | ||||
| S55_DEPS__QUOTED :=  | ||||
| INO_DEPS__QUOTED :=  | ||||
| C62_DEPS__QUOTED :=  | ||||
| C_DEPS__QUOTED :=  | ||||
| C_UPPER_DEPS__QUOTED :=  | ||||
| C43_DEPS__QUOTED :=  | ||||
| CPP_DEPS__QUOTED :=  | ||||
| BIN_OUTPUTS__QUOTED :=  | ||||
| C64_DEPS__QUOTED :=  | ||||
| CXX_DEPS__QUOTED :=  | ||||
| CLA_DEPS__QUOTED :=  | ||||
| S_DEPS__QUOTED :=  | ||||
| ASM_DEPS__QUOTED :=  | ||||
| S43_DEPS__QUOTED :=  | ||||
| EXE_OUTPUTS__QUOTED :=  | ||||
| S64_DEPS__QUOTED :=  | ||||
| S62_DEPS__QUOTED :=  | ||||
| PDE_DEPS__QUOTED :=  | ||||
|  | ||||
| # Every subdirectory with source files must be described here | ||||
| SUBDIRS := \ | ||||
| . \ | ||||
|  | ||||
							
								
								
									
										15
									
								
								CPE325/Lab6_Problem1/Debug/subdir_rules.mk
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								CPE325/Lab6_Problem1/Debug/subdir_rules.mk
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,15 @@ | ||||
| ################################################################################ | ||||
| # Automatically-generated file. Do not edit! | ||||
| ################################################################################ | ||||
|  | ||||
| SHELL = cmd.exe | ||||
|  | ||||
| # Each subdirectory must supply rules for building sources it contributes | ||||
| %.obj: ../%.asm $(GEN_OPTS) | $(GEN_FILES) $(GEN_MISC_FILES) | ||||
| 	@echo 'Building file: "$<"' | ||||
| 	@echo 'Invoking: MSP430 Compiler' | ||||
| 	"C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/bin/cl430" -vmsp --code_model=small --data_model=small --use_hw_mpy=16 --include_path="C:/ti/ccs1040/ccs/ccs_base/msp430/include" --include_path="C:/CPE325_Workspace/Lab6_Problem1" --include_path="C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/include" --advice:power=all --define=__MSP430FG4618__ -g --printf_support=minimal --diag_warning=225 --diag_wrap=off --display_error_number --silicon_errata=CPU19 --preproc_with_compile --preproc_dependency="$(basename $(<F)).d_raw" $(GEN_OPTS__FLAG) "$<" | ||||
| 	@echo 'Finished building: "$<"' | ||||
| 	@echo ' ' | ||||
|  | ||||
|  | ||||
							
								
								
									
										29
									
								
								CPE325/Lab6_Problem1/Debug/subdir_vars.mk
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										29
									
								
								CPE325/Lab6_Problem1/Debug/subdir_vars.mk
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,29 @@ | ||||
| ################################################################################ | ||||
| # Automatically-generated file. Do not edit! | ||||
| ################################################################################ | ||||
|  | ||||
| SHELL = cmd.exe | ||||
|  | ||||
| # Add inputs and outputs from these tool invocations to the build variables  | ||||
| CMD_SRCS += \ | ||||
| ../lnk_msp430fg4618.cmd  | ||||
|  | ||||
| ASM_SRCS += \ | ||||
| ../main.asm  | ||||
|  | ||||
| OBJS += \ | ||||
| ./main.obj  | ||||
|  | ||||
| ASM_DEPS += \ | ||||
| ./main.d  | ||||
|  | ||||
| OBJS__QUOTED += \ | ||||
| "main.obj"  | ||||
|  | ||||
| ASM_DEPS__QUOTED += \ | ||||
| "main.d"  | ||||
|  | ||||
| ASM_SRCS__QUOTED += \ | ||||
| "../main.asm"  | ||||
|  | ||||
|  | ||||
							
								
								
									
										70
									
								
								CPE325/Lab6_Problem1/Lab6_D1.asm
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										70
									
								
								CPE325/Lab6_Problem1/Lab6_D1.asm
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,70 @@ | ||||
| ;------------------------------------------------------------------------------- | ||||
| ;   File:        Lab6_D1.asm | ||||
| ;   Description: The program toggles LEDs periodically. | ||||
| ;                The LEDs are initialized off. An endless loop is entered. | ||||
| ;                A SWDelay1 loop creates 1s delay before toggling the LEDs. | ||||
| ;                LEDs will toggle: off for 1s and on for 1s. | ||||
| ; | ||||
| ;   Clocks:      ACLK = 32.768kHz, MCLK = SMCLK = default DCO = 2^20=1,048,576 Hz | ||||
| ;   Platform:    TI Experimenter's Board | ||||
| ; | ||||
| ;                 MSP430xG461x | ||||
| ;             ----------------- | ||||
| ;         /|\|                 | | ||||
| ;          | |                 | | ||||
| ;          --|RST              | | ||||
| ;            |             P2.2|-->LED1(GREEN) | ||||
| ;            |             P2.1|-->LED2(YELLOW) | ||||
| ; | ||||
| ;   Author:  Aleksandar Milenkovic, milenkovic@computer.org | ||||
| ;   Date:    September 14, 2018 | ||||
| ;------------------------------------------------------------------------------- | ||||
|             .cdecls C,LIST,"msp430.h"       ; Include device header file | ||||
|              | ||||
| ;------------------------------------------------------------------------------- | ||||
|             .def    RESET                   ; Export program entry-point to | ||||
|                                             ; make it known to linker. | ||||
| ;------------------------------------------------------------------------------- | ||||
|             .text                           ; Assemble into program memory. | ||||
|             .retain                         ; Override ELF conditional linking | ||||
|                                             ; and retain current section. | ||||
|             .retainrefs                     ; And retain any sections that have | ||||
|                                             ; references to current section. | ||||
|  | ||||
| ;------------------------------------------------------------------------------- | ||||
| RESET:      mov.w   #__STACK_END,SP         ; Initialize stack pointer | ||||
| StopWDT:    mov.w   #WDTPW|WDTHOLD,&WDTCTL  ; Stop watchdog timer | ||||
| Setup:      bis.b   #0x06,&P2DIR            ; Set P2.2 and P2.1 to output | ||||
|                                             ; direction (0000_0110) | ||||
|             bic.b   #0x04,&P2OUT             ; Set P2OUT to 0x0000_0100 (LEDS off) | ||||
| InfLoop:    mov.w    #0xFFFF, R5            ; Software delay (65,535*16cc/2^20 ~ 1s) | ||||
| SWDelay1:   nop                             ; 1cc (total delay is 16 cc) | ||||
|             nop | ||||
|             nop | ||||
|             nop | ||||
|             nop | ||||
|             nop | ||||
|             nop | ||||
|             nop | ||||
|             nop | ||||
|             nop | ||||
|             nop | ||||
|             nop | ||||
|             nop | ||||
|             dec.w  R5                       ; 1cc | ||||
|             jnz    SWDelay1                 ; 2cc | ||||
|             xor.b  #0x06, P2OUT             ; toggle LEDs | ||||
|             jmp    InfLoop                  ; goto InfLoop | ||||
|                                              | ||||
| ;------------------------------------------------------------------------------- | ||||
| ; Stack Pointer definition | ||||
| ;------------------------------------------------------------------------------- | ||||
|             .global __STACK_END | ||||
|             .sect   .stack | ||||
|              | ||||
| ;------------------------------------------------------------------------------- | ||||
| ; Interrupt Vectors | ||||
| ;------------------------------------------------------------------------------- | ||||
|             .sect   ".reset"                ; MSP430 RESET Vector | ||||
|             .short  RESET | ||||
|              | ||||
							
								
								
									
										80
									
								
								CPE325/Lab6_Problem1/Lab6_D2.asm
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										80
									
								
								CPE325/Lab6_Problem1/Lab6_D2.asm
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,80 @@ | ||||
| ;------------------------------------------------------------------------------- | ||||
| ;   File:        Lab6_D2.asm | ||||
| ;   Description: The program demonstrates Press/Release using SW1 and LED1. | ||||
| ;                LED1 is initialized off. | ||||
| ;                When SW1 press is detected, a software delay of 20 ms | ||||
| ;                is used to implement debouncing. The switch is checked | ||||
| ;                again, and if on, LED1 is turned on until SW1 is released. | ||||
| ; | ||||
| ;   Clocks:      ACLK = 32.768kHz, MCLK = SMCLK = default DCO = 2^20=1,048,576 Hz | ||||
| ;   Platform:    TI Experimenter's Board | ||||
| ; | ||||
| ;                 MSP430xG461x | ||||
| ;             ----------------- | ||||
| ;         /|\|                 | | ||||
| ;          | |                 | | ||||
| ;          --|RST              | | ||||
| ;            |             P2.2|-->LED1(GREEN) | ||||
| ;            |             P1.0|<--SW1 | ||||
| ; | ||||
| ;   Author:  Aleksandar Milenkovic, milenkovic@computer.org | ||||
| ;   Date:    September 14, 2018 | ||||
| ;------------------------------------------------------------------------------- | ||||
|  | ||||
|             .cdecls C,LIST,"msp430.h"       ; Include device header file | ||||
|              | ||||
| ;------------------------------------------------------------------------------- | ||||
|             .def    RESET                   ; Export program entry-point to | ||||
|                                             ; make it known to linker. | ||||
| ;------------------------------------------------------------------------------- | ||||
|             .text                           ; Assemble into program memory. | ||||
|             .retain                         ; Override ELF conditional linking | ||||
|                                             ; and retain current section. | ||||
|             .retainrefs                     ; And retain any sections that have | ||||
|                                             ; references to current section. | ||||
|  | ||||
| ;------------------------------------------------------------------------------- | ||||
| RESET:      mov.w   #__STACK_END,SP         ; Initialize stack pointer | ||||
| StopWDT:    mov.w   #WDTPW|WDTHOLD,&WDTCTL  ; Stop watchdog timer | ||||
| ;------------------------------------------------------------------------------- | ||||
| SetupP2: | ||||
|             bis.b   #004h, &P2DIR           ; Set P2.2 to output | ||||
|                                             ; direction (0000_0100) | ||||
|             bic.b   #004h, &P2OUT           ; Set P2OUT to 0x0000_0100 (ensure | ||||
|                                             ; LED1 is off) | ||||
| ChkSW1:     bit.b   #01h, &P1IN             ; Check if SW1 is pressed | ||||
|                                             ; (0000_0001 on P1IN) | ||||
|             jnz     ChkSW1                  ; If not zero, SW is not pressed | ||||
|                                             ; loop and check again | ||||
| Debounce: | ||||
|             mov.w   #2000, R15              ; Set to (2000 * 10 cc = 20,000 cc) | ||||
| SWD20ms:    dec.w   R15                     ; Decrement R15 | ||||
|             nop | ||||
|             nop | ||||
|             nop | ||||
|             nop | ||||
|             nop | ||||
|             nop | ||||
|             nop | ||||
|             jnz     SWD20ms                 ; Delay over? | ||||
|             bit.b   #00000001b, &P1IN       ; Verify SW1 is still pressed | ||||
|             jnz     ChkSW1                  ; If not, wait for SW1 press | ||||
|  | ||||
| LEDon:      bis.b   #004h, &P2OUT           ; Turn on LED1 | ||||
| SW1wait:    bit.b   #001h, &P1IN            ; Test SW1 | ||||
|             jz      SW1wait                 ; Wait until SW1 is released | ||||
|             bic.b   #004, &P2OUT            ; Turn off LED1 | ||||
|             jmp     ChkSW1                  ; Loop to beginning | ||||
|                                              | ||||
| ;------------------------------------------------------------------------------- | ||||
| ; Stack Pointer definition | ||||
| ;------------------------------------------------------------------------------- | ||||
|             .global __STACK_END | ||||
|             .sect   .stack | ||||
|              | ||||
| ;------------------------------------------------------------------------------- | ||||
| ; Interrupt Vectors | ||||
| ;------------------------------------------------------------------------------- | ||||
|             .sect   ".reset"                ; MSP430 RESET Vector | ||||
|             .short  RESET | ||||
|             .end | ||||
							
								
								
									
										184
									
								
								CPE325/Lab6_Problem1/lnk_msp430fg4618.cmd
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										184
									
								
								CPE325/Lab6_Problem1/lnk_msp430fg4618.cmd
									
									
									
									
									
										Executable file
									
								
							| @@ -0,0 +1,184 @@ | ||||
| /* ============================================================================ */ | ||||
| /* Copyright (c) 2020, Texas Instruments Incorporated                           */ | ||||
| /*  All rights reserved.                                                        */ | ||||
| /*                                                                              */ | ||||
| /*  Redistribution and use in source and binary forms, with or without          */ | ||||
| /*  modification, are permitted provided that the following conditions          */ | ||||
| /*  are met:                                                                    */ | ||||
| /*                                                                              */ | ||||
| /*  *  Redistributions of source code must retain the above copyright           */ | ||||
| /*     notice, this list of conditions and the following disclaimer.            */ | ||||
| /*                                                                              */ | ||||
| /*  *  Redistributions in binary form must reproduce the above copyright        */ | ||||
| /*     notice, this list of conditions and the following disclaimer in the      */ | ||||
| /*     documentation and/or other materials provided with the distribution.     */ | ||||
| /*                                                                              */ | ||||
| /*  *  Neither the name of Texas Instruments Incorporated nor the names of      */ | ||||
| /*     its contributors may be used to endorse or promote products derived      */ | ||||
| /*     from this software without specific prior written permission.            */ | ||||
| /*                                                                              */ | ||||
| /*  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" */ | ||||
| /*  AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,       */ | ||||
| /*  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR      */ | ||||
| /*  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR            */ | ||||
| /*  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,       */ | ||||
| /*  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,         */ | ||||
| /*  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; */ | ||||
| /*  OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,    */ | ||||
| /*  WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR     */ | ||||
| /*  OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,              */ | ||||
| /*  EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.                          */ | ||||
| /* ============================================================================ */ | ||||
|  | ||||
| /******************************************************************************/ | ||||
| /* lnk_msp430fg4618.cmd - LINKER COMMAND FILE FOR LINKING MSP430FG4618 PROGRAMS     */ | ||||
| /*                                                                            */ | ||||
| /*   Usage:  lnk430 <obj files...>    -o <out file> -m <map file> lnk.cmd     */ | ||||
| /*           cl430  <src files...> -z -o <out file> -m <map file> lnk.cmd     */ | ||||
| /*                                                                            */ | ||||
| /*----------------------------------------------------------------------------*/ | ||||
| /* These linker options are for command line linking only.  For IDE linking,  */ | ||||
| /* you should set your linker options in Project Properties                   */ | ||||
| /* -c                                               LINK USING C CONVENTIONS  */ | ||||
| /* -stack  0x0100                                   SOFTWARE STACK SIZE       */ | ||||
| /* -heap   0x0100                                   HEAP AREA SIZE            */ | ||||
| /*                                                                            */ | ||||
| /*----------------------------------------------------------------------------*/ | ||||
| /* Version: 1.211                                                             */ | ||||
| /*----------------------------------------------------------------------------*/ | ||||
|  | ||||
| /****************************************************************************/ | ||||
| /* Specify the system memory map                                            */ | ||||
| /****************************************************************************/ | ||||
|  | ||||
| MEMORY | ||||
| { | ||||
|     SFR                     : origin = 0x0000, length = 0x0010 | ||||
|     PERIPHERALS_8BIT        : origin = 0x0010, length = 0x00F0 | ||||
|     PERIPHERALS_16BIT       : origin = 0x0100, length = 0x0100 | ||||
|     RAM                     : origin = 0x1100, length = 0x2000 | ||||
|     INFOA                   : origin = 0x1080, length = 0x0080 | ||||
|     INFOB                   : origin = 0x1000, length = 0x0080 | ||||
|     FLASH                   : origin = 0x3100, length = 0xCEBE | ||||
|     FLASH2                  : origin = 0x10000,length = 0x10000 | ||||
|     BSLSIGNATURE            : origin = 0xFFBE, length = 0x0002, fill = 0xFFFF | ||||
|     INT00                   : origin = 0xFFC0, length = 0x0002 | ||||
|     INT01                   : origin = 0xFFC2, length = 0x0002 | ||||
|     INT02                   : origin = 0xFFC4, length = 0x0002 | ||||
|     INT03                   : origin = 0xFFC6, length = 0x0002 | ||||
|     INT04                   : origin = 0xFFC8, length = 0x0002 | ||||
|     INT05                   : origin = 0xFFCA, length = 0x0002 | ||||
|     INT06                   : origin = 0xFFCC, length = 0x0002 | ||||
|     INT07                   : origin = 0xFFCE, length = 0x0002 | ||||
|     INT08                   : origin = 0xFFD0, length = 0x0002 | ||||
|     INT09                   : origin = 0xFFD2, length = 0x0002 | ||||
|     INT10                   : origin = 0xFFD4, length = 0x0002 | ||||
|     INT11                   : origin = 0xFFD6, length = 0x0002 | ||||
|     INT12                   : origin = 0xFFD8, length = 0x0002 | ||||
|     INT13                   : origin = 0xFFDA, length = 0x0002 | ||||
|     INT14                   : origin = 0xFFDC, length = 0x0002 | ||||
|     INT15                   : origin = 0xFFDE, length = 0x0002 | ||||
|     INT16                   : origin = 0xFFE0, length = 0x0002 | ||||
|     INT17                   : origin = 0xFFE2, length = 0x0002 | ||||
|     INT18                   : origin = 0xFFE4, length = 0x0002 | ||||
|     INT19                   : origin = 0xFFE6, length = 0x0002 | ||||
|     INT20                   : origin = 0xFFE8, length = 0x0002 | ||||
|     INT21                   : origin = 0xFFEA, length = 0x0002 | ||||
|     INT22                   : origin = 0xFFEC, length = 0x0002 | ||||
|     INT23                   : origin = 0xFFEE, length = 0x0002 | ||||
|     INT24                   : origin = 0xFFF0, length = 0x0002 | ||||
|     INT25                   : origin = 0xFFF2, length = 0x0002 | ||||
|     INT26                   : origin = 0xFFF4, length = 0x0002 | ||||
|     INT27                   : origin = 0xFFF6, length = 0x0002 | ||||
|     INT28                   : origin = 0xFFF8, length = 0x0002 | ||||
|     INT29                   : origin = 0xFFFA, length = 0x0002 | ||||
|     INT30                   : origin = 0xFFFC, length = 0x0002 | ||||
|     RESET                   : origin = 0xFFFE, length = 0x0002 | ||||
| } | ||||
|  | ||||
| /****************************************************************************/ | ||||
| /* Specify the sections allocation into memory                              */ | ||||
| /****************************************************************************/ | ||||
|  | ||||
| SECTIONS | ||||
| { | ||||
|     .bss        : {} > RAM                  /* Global & static vars              */ | ||||
|     .data       : {} > RAM                  /* Global & static vars              */ | ||||
|     .TI.noinit  : {} > RAM                  /* For #pragma noinit                */ | ||||
|     .sysmem     : {} > RAM                  /* Dynamic memory allocation area    */ | ||||
|     .stack      : {} > RAM (HIGH)           /* Software system stack             */ | ||||
|  | ||||
| #ifndef __LARGE_CODE_MODEL__ | ||||
|     .text       : {} > FLASH                /* Code                              */ | ||||
| #else | ||||
|     .text       : {} >> FLASH2 | FLASH      /* Code                              */ | ||||
| #endif | ||||
|     .text:_isr  : {} > FLASH                /* ISR Code space                    */ | ||||
|     .cinit      : {} > FLASH                /* Initialization tables             */ | ||||
| #ifndef __LARGE_DATA_MODEL__ | ||||
|     .const      : {} > FLASH                /* Constant data                     */ | ||||
| #else | ||||
|     .const      : {} >> FLASH | FLASH2      /* Constant data                     */ | ||||
| #endif | ||||
|     .bslsignature  : {} > BSLSIGNATURE      /* BSL Signature                     */ | ||||
|     .cio        : {} > RAM                  /* C I/O Buffer                      */ | ||||
|  | ||||
|     .pinit      : {} > FLASH                /* C++ Constructor tables            */ | ||||
|     .binit      : {} > FLASH                /* Boot-time Initialization tables   */ | ||||
|     .init_array : {} > FLASH                /* C++ Constructor tables            */ | ||||
|     .mspabi.exidx : {} > FLASH              /* C++ Constructor tables            */ | ||||
|     .mspabi.extab : {} > FLASH              /* C++ Constructor tables            */ | ||||
| #ifdef __TI_COMPILER_VERSION__ | ||||
|   #if __TI_COMPILER_VERSION__ >= 15009000 | ||||
|     #ifndef __LARGE_CODE_MODEL__ | ||||
|     .TI.ramfunc : {} load=FLASH, run=RAM, table(BINIT) | ||||
|     #else | ||||
|     .TI.ramfunc : {} load=FLASH | FLASH2, run=RAM, table(BINIT) | ||||
|     #endif | ||||
|   #endif | ||||
| #endif | ||||
|  | ||||
|     .infoA     : {} > INFOA              /* MSP430 INFO FLASH Memory segments */ | ||||
|     .infoB     : {} > INFOB | ||||
|  | ||||
|     /* MSP430 Interrupt vectors          */ | ||||
|     .int00       : {}               > INT00 | ||||
|     .int01       : {}               > INT01 | ||||
|     .int02       : {}               > INT02 | ||||
|     .int03       : {}               > INT03 | ||||
|     .int04       : {}               > INT04 | ||||
|     .int05       : {}               > INT05 | ||||
|     .int06       : {}               > INT06 | ||||
|     .int07       : {}               > INT07 | ||||
|     .int08       : {}               > INT08 | ||||
|     .int09       : {}               > INT09 | ||||
|     .int10       : {}               > INT10 | ||||
|     .int11       : {}               > INT11 | ||||
|     .int12       : {}               > INT12 | ||||
|     .int13       : {}               > INT13 | ||||
|     DAC12        : { * ( .int14 ) } > INT14 type = VECT_INIT | ||||
|     DMA          : { * ( .int15 ) } > INT15 type = VECT_INIT | ||||
|     BASICTIMER   : { * ( .int16 ) } > INT16 type = VECT_INIT | ||||
|     PORT2        : { * ( .int17 ) } > INT17 type = VECT_INIT | ||||
|     USART1TX     : { * ( .int18 ) } > INT18 type = VECT_INIT | ||||
|     USART1RX     : { * ( .int19 ) } > INT19 type = VECT_INIT | ||||
|     PORT1        : { * ( .int20 ) } > INT20 type = VECT_INIT | ||||
|     TIMERA1      : { * ( .int21 ) } > INT21 type = VECT_INIT | ||||
|     TIMERA0      : { * ( .int22 ) } > INT22 type = VECT_INIT | ||||
|     ADC12        : { * ( .int23 ) } > INT23 type = VECT_INIT | ||||
|     USCIAB0TX    : { * ( .int24 ) } > INT24 type = VECT_INIT | ||||
|     USCIAB0RX    : { * ( .int25 ) } > INT25 type = VECT_INIT | ||||
|     WDT          : { * ( .int26 ) } > INT26 type = VECT_INIT | ||||
|     COMPARATORA   : { * ( .int27 ) } > INT27 type = VECT_INIT | ||||
|     TIMERB1      : { * ( .int28 ) } > INT28 type = VECT_INIT | ||||
|     TIMERB0      : { * ( .int29 ) } > INT29 type = VECT_INIT | ||||
|     NMI          : { * ( .int30 ) } > INT30 type = VECT_INIT | ||||
|     .reset       : {}               > RESET  /* MSP430 Reset vector         */ | ||||
| } | ||||
|  | ||||
| /****************************************************************************/ | ||||
| /* Include peripherals memory map                                           */ | ||||
| /****************************************************************************/ | ||||
|  | ||||
| -l msp430fg4618.cmd | ||||
|  | ||||
							
								
								
									
										94
									
								
								CPE325/Lab6_Problem1/main.asm
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										94
									
								
								CPE325/Lab6_Problem1/main.asm
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,94 @@ | ||||
| ;------------------------------------------------------------------------------- | ||||
| ; MSP430 Assembler Code Template for use with TI Code Composer Studio | ||||
| ; | ||||
| ; | ||||
| ;------------------------------------------------------------------------------- | ||||
|             .cdecls C,LIST,"msp430.h"       ; Include device header file | ||||
|              | ||||
| ;------------------------------------------------------------------------------- | ||||
|             .def    RESET                   ; Export program entry-point to | ||||
|                                             ; make it known to linker. | ||||
| ;------------------------------------------------------------------------------- | ||||
|             .text                           ; Assemble into program memory. | ||||
|             .retain                         ; Override ELF conditional linking | ||||
|                                             ; and retain current section. | ||||
|             .retainrefs                     ; And retain any sections that have | ||||
|                                             ; references to current section. | ||||
|  | ||||
| ;------------------------------------------------------------------------------- | ||||
| RESET       mov.w   #__STACK_END,SP         ; Initialize stackpointer | ||||
| StopWDT     mov.w   #WDTPW|WDTHOLD,&WDTCTL  ; Stop watchdog timer | ||||
|  | ||||
|  | ||||
| ;------------------------------------------------------------------------------- | ||||
| ; Main loop here | ||||
| ;------------------------------------------------------------------------------- | ||||
| Setup: | ||||
|             bis.b   #004h, &P2DIR           ; Set P2.2 to output | ||||
|                                             ; direction (0000_0100) | ||||
|             bic.b   #004h, &P2OUT           ; Set P2OUT to 0x0000_0100 (ensure | ||||
|                                             ; LED1 is off) | ||||
|             bis.b   #002h, &P2DIR           ; Set P2.1 to output | ||||
|                                             ; direction (0000_0010) | ||||
|             bic.b   #002h, &P2OUT           ; Set P2OUT to 0x0000_0010 (ensure | ||||
|                                             ; LED1 is off) | ||||
|  | ||||
|             bis.w   #GIE, SR                ; Enable Global Interrupts | ||||
|             bis.b   #001h, &P1IE            ; Enable Port 1 interrupt from bit 0 | ||||
|             bis.b   #001h, &P1IES           ; Set interrupt to call from hi to low | ||||
|             bic.b   #001h, &P1IFG           ; Clear interrupt flag | ||||
| 			;mov.w   #0, R8					; Counter for inner loop | ||||
| 			bic.b   #0x04,&P2OUT            ; Set P2OUT to 0x0000_0100 (LEDS off) | ||||
| InfLoop:    mov.w   #0xFFFF, R5             ; Software delay (65,535*16cc/2^20 ~ 1s) | ||||
| 			mov.w   #0, R8					; Counter for inner loop | ||||
| Iter: | ||||
| SWDelay1:   nop                             ; 1cc (total delay is 16 cc) | ||||
|             nop | ||||
|             nop | ||||
|             nop | ||||
|             nop | ||||
|             nop | ||||
|             nop | ||||
|             nop | ||||
|             nop | ||||
|             nop | ||||
|             dec.w  R5                       ; 1cc | ||||
|             jnz    SWDelay1                 ; 2cc | ||||
|             inc.b  R8						; 3cc | ||||
|             cmp    #2, R8					; 4cc | ||||
|             jnz	   Iter						; jump to Iter | ||||
|             xor.b  #0x02, P2OUT        		; toggle LED 2 | ||||
|             jmp    InfLoop                  ; goto InfLoop | ||||
|  | ||||
| SW1_ISR:  	bic.b   #001h, &P1IFG           ; Clear interrupt flag | ||||
| ChkSw1:     bit.b   #01h, &P1IN             ; Check if SW1 is pressed | ||||
|                                             ; (0000_0001 on P1IN) | ||||
|             jnz     LExit                   ; If not zero, SW is not pressed | ||||
|                                             ; loop and check again | ||||
| Debounce:   mov.w   #2000, R15              ; Set to (2000 * 10 cc ) | ||||
| SWD20ms:    dec.w   R15                     ; Decrement R15 | ||||
|             nop | ||||
|             nop | ||||
|             nop | ||||
|             nop | ||||
|             nop | ||||
|             nop | ||||
|             nop | ||||
|             jnz     SWD20ms                 ; Delay over? | ||||
|             bit.b   #00000001b,&P1IN        ; Verify SW1 is still pressed | ||||
|             jnz     LExit                   ; If not, wait for SW1 press | ||||
| LEDon:      xor.b   #0x04,P2OUT           	; Turn on LED1 | ||||
| LExit:      reti                            ; Return from interrupt | ||||
| ;------------------------------------------------------------------------------- | ||||
| ; Stack Pointer definition | ||||
| ;------------------------------------------------------------------------------- | ||||
|             .global __STACK_END | ||||
|             .sect   .stack | ||||
| ;------------------------------------------------------------------------------- | ||||
| ; Interrupt Vectors | ||||
| ;------------------------------------------------------------------------------- | ||||
|             .sect   ".reset"                ; MSP430 RESET Vector | ||||
|             .short  RESET | ||||
|             .sect   ".int20"				; | ||||
|             .short  SW1_ISR					; set SW1 Interupt service routine | ||||
|             .end | ||||
							
								
								
									
										12
									
								
								CPE325/Lab6_Problem1/targetConfigs/MSP430FG4618.ccxml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								CPE325/Lab6_Problem1/targetConfigs/MSP430FG4618.ccxml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,12 @@ | ||||
| <?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||||
| <configurations XML_version="1.2" id="configurations_0"> | ||||
|     <configuration XML_version="1.2" id="configuration_0"> | ||||
|         <instance XML_version="1.2" desc="TI MSP430 USB1" href="connections/TIMSP430-USB.xml" id="TI MSP430 USB1" xml="TIMSP430-USB.xml" xmlpath="connections"/> | ||||
|         <connection XML_version="1.2" id="TI MSP430 USB1"> | ||||
|             <instance XML_version="1.2" href="drivers/msp430_emu.xml" id="drivers" xml="msp430_emu.xml" xmlpath="drivers"/> | ||||
|             <platform XML_version="1.2" id="platform_0"> | ||||
|                 <instance XML_version="1.2" desc="MSP430FG4618" href="devices/MSP430FG4618.xml" id="MSP430FG4618" xml="MSP430FG4618.xml" xmlpath="devices"/> | ||||
|             </platform> | ||||
|         </connection> | ||||
|     </configuration> | ||||
| </configurations> | ||||
							
								
								
									
										9
									
								
								CPE325/Lab6_Problem1/targetConfigs/readme.txt
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								CPE325/Lab6_Problem1/targetConfigs/readme.txt
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,9 @@ | ||||
| The 'targetConfigs' folder contains target-configuration (.ccxml) files, automatically generated based | ||||
| on the device and connection settings specified in your project on the Properties > General page. | ||||
|  | ||||
| Please note that in automatic target-configuration management, changes to the project's device and/or | ||||
| connection settings will either modify an existing or generate a new target-configuration file. Thus, | ||||
| if you manually edit these auto-generated files, you may need to re-apply your changes. Alternatively, | ||||
| you may create your own target-configuration file for this project and manage it manually. You can | ||||
| always switch back to automatic target-configuration management by checking the "Manage the project's | ||||
| target-configuration automatically" checkbox on the project's Properties > General page. | ||||
		Reference in New Issue
	
	Block a user
	 Andrew W
					Andrew W