EmbeddedRelated.com
The 2024 Embedded Online Conference

CrossWorks inline and interrutps...

Started by Tim Wade in MSP43020 years ago 14 replies

Hi I have read the manual and I cannot see how to do two things with CrossWorks for the MSP430. 1. inline assembler; I have tried the usual...

Hi I have read the manual and I cannot see how to do two things with CrossWorks for the MSP430. 1. inline assembler; I have tried the usual asm("nop") but to no avail 2. interrupt functions; again I cannot seem to be able to get this to work ~ the documentation actually has an example for the ARM! (the syntax is different, it dosen't work) I am sure there must be some way of do


Problems with the OFIFG Flag in IFG1 SFR

Started by Kipton Moravec in MSP43018 years ago 1 reply

I am new to the MSP430 and the MSP430 way to do things. So if I am doing something stupid let me know. I designed a board with a MSP430F1610. ...

I am new to the MSP430 and the MSP430 way to do things. So if I am doing something stupid let me know. I designed a board with a MSP430F1610. It has a 32,768 Hz clock on the first clock port used for the ACLK, and a 3.6864 MHz clock for the two UARTs (SMCLK). The processor instructions will run off of the DCO. (That is the plan at the moment.) I have a function written in assembler, th...


Converting ascii hex files to D43 format

Started by Jon Kirwan in MSP43016 years ago 12 replies
IAR

I was just asked by a local college prof about the idea of modifying his CS162 course (a winter term, coming up) to use the MSP430 processor. ...

I was just asked by a local college prof about the idea of modifying his CS162 course (a winter term, coming up) to use the MSP430 processor. His students need to write a simple assembler tool of their own, as one of two class projects they must do, and it needs to generate binary code that can be simulated. (The second project is, in fact, the simulator.) He is thinking about the idea of ...


TI CAD programs for MSP: LWDF_DESIGN etc.?

Started by Joerg Schulze-Clewing in MSP43018 years ago 2 replies

Hello Folks, In a metering application report there was a mention of several CAD tools from TI: LWDF_DESIGN: Design of...

Hello Folks, In a metering application report there was a mention of several CAD tools from TI: LWDF_DESIGN: Design of Lattice-WDFs LWDF_COMP: Transform of these designs into assembler Supposedly there is also a program that allows fast transient simulations on a model of the MSP430, called DSP430. I looked up and down the web but nothing. Tried the TI knowledge base but that has neve


Combining polling and interrupts with timers.

Started by Andy Warner in MSP43016 years ago 8 replies

I have an application where I have tight assembler loops polling Timer A and wiggling pins. I would like to combine this with running Timer B...

I have an application where I have tight assembler loops polling Timer A and wiggling pins. I would like to combine this with running Timer B in interrupt mode to provide a "if it's not done by now it never will be" exit path for the code. I'm not worried about the interrupt changing the Timer A loop timing, because it will be terminating it anyway (e.g. if I get an interrupt at all, it's...


IAR version

Started by Dieter Teuchert in MSP43020 years ago 2 replies
IAR

Hi, today i tried to migrate an existing MSP430 project with mixed C and assembler from IAR 1.26B to 3.10, because i need support for the...

Hi, today i tried to migrate an existing MSP430 project with mixed C and assembler from IAR 1.26B to 3.10, because i need support for the MSP430F1611. With the old IDE i could override the __low_level_init contained in the cstartup code by declaring my own. This was the recommended method. It doesn't work any more. My __low_level_init is in the link map, but the cstartup code lacks t


InLine C routines

Started by FB in MSP43017 years ago 4 replies

Hi! I need IAR guru's advice! I have a very structured C program and I set the proyect ing high optimization. In many places I call...

Hi! I need IAR guru's advice! I have a very structured C program and I set the proyect ing high optimization. In many places I call functions that are only call in one place so I wait the Compiler to Inline those functions to avoid the call and then assembler lines. How can I do that !?! Thanks Bukitoo -- No virus found in this outgoing message. Checked by AVG Free Edition....


Interrupt timming problem

Started by Anonymous in MSP43021 years ago 8 replies

Hello, I develop one university project with MSP430F148 microcontroller. And I must call one Interrupt Service Routine with the period of 16...

Hello, I develop one university project with MSP430F148 microcontroller. And I must call one Interrupt Service Routine with the period of 16 us. I read in the manual that the one instruction take 1 cycle (=125ns on the 8MHz) and all instructions take the same time for run. In my ISR are about 60 assembler instructions and this ISR take about 13 us (13us/125ns = 104 instructions).And now i


Implicit decleration warning for Assembler functions in header file

Started by grubmg in MSP43017 years ago 2 replies
IAR

Hello All. I am working on a project that incorporates both C and Assembly functions in several modules. I have followed through with...

Hello All. I am working on a project that incorporates both C and Assembly functions in several modules. I have followed through with the requirments stated in the IAR manuals and the TI document (SLAA140) concerning the correct usage. My problem is, that when I want to use these Assembly functions as part of the modules in my "Main" module, I receive the warning that the function is ...


Re: Crossworks relocatable assembler question

Started by Paul Curtis in MSP43018 years ago 9 replies
IAR

Mark, > At the risk of giving Al a heart attack, I'm finally getting > around to > some assembly language for the msp430. Specifically, I'm...

Mark, > At the risk of giving Al a heart attack, I'm finally getting > around to > some assembly language for the msp430. Specifically, I'm trying to > convert the single chip thermocouple app not code from TI, which was > created in IAR, to Crossworks. > > Here's a link to the original code: >


how to hard code the multiply routine in assembly..??

Started by Khubaib in MSP43021 years ago 1 reply
IAR

Dear members ! In a C code, how to write assembly routine for multiplication?. i.e. how to multiply 2 C variables with the help of assembly...

Dear members ! In a C code, how to write assembly routine for multiplication?. i.e. how to multiply 2 C variables with the help of assembly instructions for F149 micro?. (it has the hardware multiplier). I am using the IAR Embedded Workbench v2.10A. Are there any special settings for the Assembler?. Regards KHubaib


Migration from IVR 3 to CCE v3

Started by Dong Xiao in MSP43016 years ago 2 replies

Hi, I am starting a project to migrate a TI TRF7960 firmware package developed using IVR3 to CCEv3. Simply build the source got following...

Hi, I am starting a project to migrate a TI TRF7960 firmware package developed using IVR3 to CCEv3. Simply build the source got following two errors: 1. asm("mov.w #HostCommands,10(SP)"); [E0002] Illegal mnemonic specified mov.w #HostCommands,10(SP) Assembly Error, No Assembly Warnings Errors in Source - Assembler Aborted 2. __low...


ASM Macros

Started by Roberto Toca in MSP43018 years ago 3 replies

Hi, I'm trying to uncluter my programs using macros. This works well if I only call a macro once, but doing it twice generates a...

Hi, I'm trying to uncluter my programs using macros. This works well if I only call a macro once, but doing it twice generates a "Dupilicate Label Error". According to an MSP430 Family Assembler Manual, the solution is to place a ? at the end of each label, but it doesn't work in my setup. I have the macro code in a file (MAC_Test.s43) and the code is: Test


Re: USB MSP430 LaunchPad from/to PC communication?

Started by holi...@yahoo.com.tw in MSP43012 years ago 11 replies

hi, forther I've developped "tinyForth(tF) development" for msp430g2553. It contains assembler+disassembler+decompiler+xcompiler. Here are...

hi, forther I've developped "tinyForth(tF) development" for msp430g2553. It contains assembler+disassembler+decompiler+xcompiler. Here are the Forth systems that can be choosed to run in 2553. The execution file of 4e4th can be found in: tech.groups.yahoo.com/group/armForth/files/msp430/99.xxx and 99.lst rename 99.xxx to 99.exe to execute. now just type 99.exe words''


430FG4616 IAR Debugger - Verify error

Started by stefandk63 in MSP43015 years ago 6 replies
IAR

Hi all, I make first attempts to work with FG4616, moving assembler code from F449. Linker gives me 1 warning: Warning[w29]: Parts of segment...

Hi all, I make first attempts to work with FG4616, moving assembler code from F449. Linker gives me 1 warning: Warning[w29]: Parts of segment DATA16_N are initialized (as in module Mymain), even though it is of type DATA (and thus not promable) I think this is due 'holes' between byte and word aligned zones. When i invoke debugger - debugger finds target (TI-FET ,LPT) , downloads but s...


Using assembler

Started by poonam_k_m2003 in MSP43020 years ago 2 replies
IAR

Hi, i've just started to program in assembly with MSP430.i'm facing certain problems.... the error i'm encountering while compiling an...

Hi, i've just started to program in assembly with MSP430.i'm facing certain problems.... the error i'm encountering while compiling an assemply program in MSP IDE: Error[e46]: Undefined external "main" referred in ?cstartup ( C:\Program Files\IAR Systems\Embedded Workbench Evaluation 3.2\ what are the initializations need to be made when its an assembly level program? how d


Assembly language - comparing two unknown, signed 16-bit integers

Started by David Feldman in MSP43012 years ago 5 replies

I am translating a few dozen lines of c code to msp430 assembler (so I am doing this manually rather than trying to integrate a small amount of...

I am translating a few dozen lines of c code to msp430 assembler (so I am doing this manually rather than trying to integrate a small amount of inline C to what is otherwise an assembly language program). I have several places where two 16-bit signed integers are being compared arithmetically. Either number may be negative, zero or positive, but is not known prior to assembly time (for examp...


IAR assembler question

Started by Jonathan Kirwan in MSP43020 years ago 2 replies

I'd like to develop a macro in IAR assembly which switches to a different relocatable segment by "pushing" the current one, switching to a...

I'd like to develop a macro in IAR assembly which switches to a different relocatable segment by "pushing" the current one, switching to a specific named segment, assembling some code or data, and then returning to the 'current' one, without knowing it's name. The macro should be usable from any module and segment type, including absolute I suppose, and should be able to change th


linker overlapping segments

Started by ethernet777 in MSP43011 years ago 2 replies
IAR

I am seeing the linker place code for one module in a location that another module has reserved with the DS directive. Details: - IAR...

I am seeing the linker place code for one module in a location that another module has reserved with the DS directive. Details: - IAR KickStart for MSP430 5.51.3 - project is assembler-only - target is MSP430G2412 Example code: Module A: aseg 0xE1E6 a1: dc16 0x1234 a2: ds16 16 a3: dc16 0x5678 end Module B: rseg CDATA :CODE(1) b1: dc16 0x7654 ...


Assembler BIS instruction and register indirect as destination - can't assemble this line of code

Started by David Feldman in MSP43012 years ago 20 replies

I am doing some programmed bit-serial I/O using MSP430 assembly language and would like to improve execution speed. My target device is...

I am doing some programmed bit-serial I/O using MSP430 assembly language and would like to improve execution speed. My target device is MSP430G2553. My code includes a number of source lines all very similar (but obviously not identical) to this: bis.b #4, &P2OUT ; Original code bis.b #4, &P2OUT ; Original code bis.b ...



The 2024 Embedded Online Conference