EmbeddedRelated.com
The 2024 Embedded Online Conference

dma problem msp430fg4618

Started by petebrayuk in MSP43013 years ago 4 replies

I'm using crossworks v2, and msp430fg4618 and trying to output a 256 word waveform out of DAC12_1 using dma. I'm triggering the dma transfer using...

I'm using crossworks v2, and msp430fg4618 and trying to output a 256 word waveform out of DAC12_1 using dma. I'm triggering the dma transfer using timerA and passing the data directly through to the DAC rather than triggering the dac latch with a timer. i generate an IRQ after the 256 samples have been DMA transferred. This method seems to do what i want with one exception - i can't get the correc...


Butterfly BASIC for the MSP430

Started by Paul Curtis in MSP43020 years ago 6 replies

All, I've just uploaded Butterfly BASIC for the MSP430 to our website--it wasn't doing anybody eny good languishing on my hard...

All, I've just uploaded Butterfly BASIC for the MSP430 to our website--it wasn't doing anybody eny good languishing on my hard disk. Butterfly BASIC is a small BASIC interpreter for the MSP430 which stores its program in FLASH and uses very little RAM. It's released under the GPL, and compiles with CrossWorks for MSP430 and runs on a selection of boards, e.g. the SoftBaugh ES449 and DIr16


Re: DMA code examples?

Started by microbit in MSP43019 years ago 1 reply

> Hi, > > where can i find DMA code examples and more DMA documentation? The CrossWorks IDE comes with demo code for SoftBaugh board...

> Hi, > > where can i find DMA code examples and more DMA documentation? The CrossWorks IDE comes with demo code for SoftBaugh board to record/playback audio stored in Flash, using 2 DMA channels - one for ADC, one for DAC. > And is it possible to use DMA for emulating 16-bit I/O registers or a 16-bit UART > (Rx/Tx irq only when two bytes are received/transmitted)? It sho


MSP430X User Guide

Started by Paul Curtis in MSP43018 years ago 4 replies

All, It looks like TI have actually published the MSP430X (the 20-bit MSP430) user...

All, It looks like TI have actually published the MSP430X (the 20-bit MSP430) user guide. http://focus.ti.com/lit/ug/slau056f/slau056f.pdf -- Paul Curtis, Rowley Associates Ltd http://www.rowley.co.uk CrossWorks for ARM, MSP430, AVR, MAXQ, and now Cortex-M3 processors


How to include data file (text) into C code in Crossworks

Started by jean_randhah in MSP43020 years ago 2 replies

Hello all! I am trying to include a text file (about 10kB) into a project. I want this file to be as is in the MSP flash and read it out when...

Hello all! I am trying to include a text file (about 10kB) into a project. I want this file to be as is in the MSP flash and read it out when needed. It contains a lot of special characters that I would need to escape when including as a string. Is there a way to include the file into the project as is? I tried to add it to the project and of course it produced a lot of errors as the


Re: UART transmit a CTRL-Z

Started by Paul Curtis in MSP43019 years ago

char ch = '\x1a'; char ch = 26; char ch = 0x1a; All these set ch to ^Z. Then U0TXBUF = ch transmits it, just like any other...

char ch = '\x1a'; char ch = 26; char ch = 0x1a; All these set ch to ^Z. Then U0TXBUF = ch transmits it, just like any other character. -- Paul Curtis, Rowley Associates Ltd http://www.rowley.co.uk CrossWorks for MSP430, ARM, AVR and now MAXQ processors > -----Original Message----- > From: hc08jb8 [mailto:hc08jb8@hc08...] > Sent: 10 August


rotate in C

Started by hal_lex_1 in MSP43017 years ago 8 replies

hi, the msp430 has assembler commands for rotating registers: RLA(.B)? dst Rotate left arithmetically * * * * RLC(.B)? dst Rotate left...

hi, the msp430 has assembler commands for rotating registers: RLA(.B)? dst Rotate left arithmetically * * * * RLC(.B)? dst Rotate left through C * * * * RRA(.B) dst Rotate right arithmetically 0 * * * RRC(.B) dst Rotate right through C * * * * but how do i access those commands in C ?? (crossworks!) shift is still easy with operators > > and <


Re: Intel HEX to TI TXT format converter

Started by Paul Curtis in MSP43021 years ago 2 replies

You mean Intel, right? Doesn't srecord-1.7 take care of this? You might want to start there. I think it converts to TI Tagged format,...

You mean Intel, right? Doesn't srecord-1.7 take care of this? You might want to start there. I think it converts to TI Tagged format, but I've never investigated whether this is the TI .txt format. -- Paul Curtis, Rowley Associates Ltd http://www.rowley.co.uk CrossWorks for MSP430 and ARM processors > -----Original Message----- > From: Richar


porting USB drivers to Crossworks

Started by William Sell in MSP43013 years ago 3 replies

OK, so I posted about __no_init and __data16 last week, but now I need to know how to locate variables into an absolute address. The TI CCS has...

OK, so I posted about __no_init and __data16 last week, but now I need to know how to locate variables into an absolute address. The TI CCS has an additional linker file which is used to locate variables for the USB data structures at an absolute address: /************************************************************ * USB linker cmd file ***************************************************...


CRC for RS232 communication, F149 and Excel-test

Started by timokirschke in MSP43016 years ago 11 replies

Hello, we're using the F149, programmed in C with Crossworks, communicating=20 via a 115kBd RS232 with the PC. We implemented a very simple...

Hello, we're using the F149, programmed in C with Crossworks, communicating=20 via a 115kBd RS232 with the PC. We implemented a very simple "XOR" CRC, which checks the ASCII=20 formatted data and is transmitted at the end of the data string, also=20 ASCII-formatted. I tried to check, if the CRC calculation is correct, maybe, I did it=20 a bit stupid. code (the ASCII formatting is cor...


Arithmetic on MSP430F149

Started by larstoref in MSP43019 years ago 7 replies

well im trying to do simple float operations, but i get crazy results...a few examples...i have an accelerometer i want to use as a tiltsensor...

well im trying to do simple float operations, but i get crazy results...a few examples...i have an accelerometer i want to use as a tiltsensor (2-axis) this simple code calculate the values: float pitch, roll; pitch = 180*asinf(Ax/807); // 807 = 1g roll = 180*asinf(Ay/807); when i do this, i get -23040.000000 when Ax and Ay is close to 0 (+/- 100) whats wrong? according to crossworks


CW430: Fastest way to create a new project from existing one?

Started by aekalman in MSP43021 years ago 3 replies

Hi all you CrossWorks 430 users ... What's the fastest way to create a new project that is substantially identical to an existing one? E.g. I...

Hi all you CrossWorks 430 users ... What's the fastest way to create a new project that is substantially identical to an existing one? E.g. I have a solution (t40) with one project (t40). I'd like to add another project (t41) to this solution. The Project System Help files talks mainly about File | New | New Project ..., but I don't want to create the t41 project from scratch, as it is sub


Re: map "C" variables into INFO data memory

Started by Paul Curtis in MSP43018 years ago 11 replies

> On 2006-04-13, Paul Curtis wrote: > > > static int x @ "INFO A"; > > Seriously? > > That's not even C. So, give me a portable,...

> On 2006-04-13, Paul Curtis wrote: > > > static int x @ "INFO A"; > > Seriously? > > That's not even C. So, give me a portable, standard way to do it in C then. -- Paul Curtis, Rowley Associates Ltd http://www.rowley.co.uk CrossWorks for ARM, MSP430, AVR, MAXQ, and now Cortex-M3 processors


re-attach the debugger, crossworks

Started by Matthias Weingart in MSP43019 years ago 5 replies

Is there a way to re-attach the debugger to the MSP430 without reset? My device is running (JTAG not connected), I connect the JTAG adapter,...

Is there a way to re-attach the debugger to the MSP430 without reset? My device is running (JTAG not connected), I connect the JTAG adapter, start crossowrks and connect the FET. I choose the option "Attach debugger". Now it seems connected and I have the options break or stop available, but break has no effect and stop does a reset. Any ideas? Matthias



The 2024 Embedded Online Conference