Jump to content

Search the Community

Showing results for tags 'assembly'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • News
    • Announcements
    • Suggestions
    • New users say Hi!
  • Spotlight!
    • Sponsor Spotlight
    • Sponsor Giveaways
  • Energia
    • Energia - MSP
    • Energia - TivaC/CC3XXX
    • Energia - C2000
    • Energia Libraries
  • MSP Technical Forums
    • General
    • Compilers and IDEs
    • Development Kits
    • Programmers and Debuggers
    • Code vault
    • Projects
    • Booster Packs
    • Energia
  • Tiva-C, Hercules, CCXXXX ARM Technical Forums
    • General
    • SensorTag
    • Tiva-C, Hercules, CC3XXX Launchpad Booster Packs
    • Code Vault
    • Projects
    • Compilers and IDEs
    • Development Kits and Custom Boards
  • Beagle ARM Cortex A8 Technical Forums
    • General
    • Code Snippets and Scripts
    • Cases, Capes and Plugin Boards
    • Projects
  • General Electronics Forum
    • General Electronics
    • Other Microcontrollers
  • Connect
    • Embedded Systems/Test Equipment Deals
    • Buy, Trade and Sell
    • The 43oh Store
    • Community Projects
    • Fireside Chat
  • C2000 Technical Forums
    • General
    • Development Kits
    • Code Vault
    • Projects
    • BoosterPacks

Calendars

There are no results to display.


Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Website URL


Location


Interests


Sparkfun


Github

Found 7 results

  1. Is it possible to use asm in energia? I would like to see some short and simple example of how to use it and compile it. I found THIS very nice and useful guide to make it work in code composer studio, but unfortunalley I could not put this code it to work in Energia, and I dont have CCS.. (I downloaded the version 7, but for some reason it did not install, just give errors, tried in 2 pcs) In the other hand, I found something about asm in Energia here in the forum, but is was intended for a more complex stuff, and I could not put it to work, too.. Could someone give me a light? I just want to do something very simple like blink a red led, then a green led, like in the example in the link, just to know how to handle asm in msp430. But in Energia, not CCS.. I am using the msp430g2553 launchpad. I have also a g2452 chip.. ps. my final objective is to make something like THIS in msp430 (the guy provides the emulator asm code for the atmel chip, I guess it would be possible to port it to msp, if you know asm and study the chips very well.... once tha arm emulator runs, I guess the rest will work...)
  2. New to msp430. I trying to make it buzz a tone through a piezo speaker I have plugged into 1.4. I want it to change pitch a few times but can't figure out to control the duration. How can I make the tone hold for one sec before incrementing? Here's the code I've written so far. I'm trying to do the increment in a loop. #include "msp430.h" ; #define controlled include file NAME main ; module name PUBLIC main ; make the main label vissible ; outside this module ORG 0FFFEh DC16 init ; set reset vector to 'init' label RSEG CSTACK ; pre-declaration of segment ;define all notes as global constants RSEG CODE ; place program in 'CODE' segment init: MOV #SFE(CSTACK), SP ; set up stack main: NOP ; main program MOV.W #WDTPW+WDTHOLD,&WDTCTL ; Stop watchdog timer BIS.B #LFXT1S_2, &BCSCTL3 ; enable Very Low Frequency Oscillator (VLO)mode BIC.B #OFIFG, &IFG1 ; clear flags for IFG1 BIS.W #(SCG0+SCG1), SR ; TURN OFF DCO, AND SMCLK BIS.B #SELM_3, &BCSCTL2 ;SELECT VLO TO SOURCE MCLK MOV.W #CCIE, &TACCTL0 ; MOV.W #40, &TACCR0 ; MOV.W #TASSEL_1+MC_1, &TACTL ; BIS.B #1h, &P1DIR BIS.B #10h, &P1DIR ; p1.4 ouT ;LOOP: MOV.W &TACCR0+10, &TACCR0 ;NEW PITCH jmp LOOP ; Again ;DELAY ONE SECOND BIS.W #CPUOFF+GIE,SR ;CPU OFF, INTERRUPTS ENABLED JMP LOOP ; jump to current location '$' TA0_ISR: XOR.B #001h, &P1OUT XOR.B #10h, &P1OUT ;NEED TO CLEAR FLAG RETI COMMON INTVEC ORG TIMER0_A0_VECTOR DW TA0_ISR ; (endless loop) END
  3. I'm new to the msp430 and I want to make it play a song through a speaker when I push the button. However, I want to do this with assembly code and not in C. I am using IAR embedded workbench to do my programming. I'm connecting a speaker directly to the msp430 at p1.3 and ground. Are there any tutorials on how to do this? Or any assembly code I could look at that does something similar? I looked through the forum topics but could not find anything that matched with what I'm trying. thanks, alanaxis
  4. Just wondering what people here would recommend for programming MSP430's in assembler? I'm new to the MSP and all the various devices and I'm new (and a little lost) to all the tools. CCS, IAR, Energia. My head is swimming at the moment! I'm an experienced assembly language coder. Thanks Willsy
  5. I'm currently working with a Cortex-M0, which implements a subset of the thumb instruction set. As a learning exercise, I decided to just implement a "blinky" project in assembly, in which I was ultimately successful, but with an unanswered question. Apparently there are some instruction alignment requirements, but I don't seem to know about them, or how to find out about them. Is there a good resource for this? I'm relatively new to assembly programming, but these intricacies are what tend to hold me up. My assembler (gcc arm toolchain) would spit out dozens of errors about alignment. It took me hours of debugging, and lo and behold I throw a single NOP in the code, and everything works. I'm sure this is one of the "well if you're programming in assembly, you should know about this already", but I'm self-taught and have probably missed out on some of the fundamentals. Any help is appreciated!
  6. Hi there, I have a Stellaris launchpad LM4F120, and i'm trying to get an assembly language UART example to work. I used Valvano's example project for keil found here: http://users.ece.utexas.edu/~valvano/arm/ file name: UART2_4F120asm.zip This example uses UART0, and it works fine. I can also adapt this code to use UART1 and UART2 with no problems, by simply appropriately changing macro values as can be seen in this register definition file: http://users.ece.utexas.edu/~valvano/arm/lm4f120.s However, I wish to use UART7, and the trouble lies in that there is no definition for the "UART7 Clock Gating Control" (SYSCTL_RCGC1_UART7) I tried searching the internet for a solution, with no results. Anyone know how I can get it to work? Thank you.
  7. Hi there, I'm pretty new to the world of ARM microprocessors ,having recently started with the Stellaris launchpad LM4F120. I wish to send data from the microcontroller over a serial interface to be read with a terminal program such as Putty. The trouble is, I have not been able to find any resources on the internet that would help me initialize and use UART in the assembly language. Any help in the form of links to simple tutorials or example code snippets would be greatly appreciated. Thanks.
×
×
  • Create New...