EmbeddedRelated.com
The 2024 Embedded Online Conference

Convert assembly to C

Started by Mith in comp.arch.embedded14 years ago 13 replies

I'm converting assembly code to C and there is a lot of branches/jumps (it is a big state machine). When rewriting the different states would...

I'm converting assembly code to C and there is a lot of branches/jumps (it is a big state machine). When rewriting the different states would you use the goto keyword or try to rewwrite all with if, if-else?


Open Source FSM and Message Passing Framework

Started by ratemonotonic in comp.arch.embedded17 years ago 1 reply

Hi all, I was just wondering if any one knows of any open source state machine and message passing framework for embedded applications. I have...

Hi all, I was just wondering if any one knows of any open source state machine and message passing framework for embedded applications. I have worked with good tools like Rhapsody and state flow and find the pattern to be very efficient for embedded systems. but these tools are extremely expensive , and I am looking for some cheaper or open source alternative for personal use. so far i ...


Uses of Gray code in digital design

Started by Anonymous in comp.arch.embedded17 years ago 56 replies

Hello, Most books on digital design discuss Gray codes. However, most of the focus is on generating these codes, rather than detailing their...

Hello, Most books on digital design discuss Gray codes. However, most of the focus is on generating these codes, rather than detailing their uses. I read the Wikipedia article: http://en.wikipedia.org/wiki/Gray_code, but it doesn't provide enough in-depth information of the uses of Gray code in hardware. I know Gray codes are used for: 1) Encoding state machine states. Why is it an ...


how to initializatize/re-configure usart?

Started by bcincin in comp.arch.embedded17 years ago 2 replies

Hi. I want to change reset uart and change baud rate with an interface (combobox) on windows. At the beginning default baud rate is 2400....

Hi. I want to change reset uart and change baud rate with an interface (combobox) on windows. At the beginning default baud rate is 2400. ME2 |= UTXE1 + URXE1; // Enable USART1 TXD/RXD UCTL1 |= CHAR; // 8-bit character UTCTL1 |= SSEL0; // UCLK = ACLK UBR01 = 0x0D; // 32k/2400 - 13.65 UBR11 = 0x00; UMCTL1 = 0x6B; // Modulation UCTL1 &= ~SWRST; // Initialize USART state machine ...


AVR ADC multiplexer

Started by Simon in comp.arch.embedded15 years ago 19 replies

Hi all, I'm trying to sample the AVR's ADC on 3 channels at 8kHz, 8kHz and 16kHz respectively. I've set up a 32kHz interrupt on an 8MHz...

Hi all, I'm trying to sample the AVR's ADC on 3 channels at 8kHz, 8kHz and 16kHz respectively. I've set up a 32kHz interrupt on an 8MHz clock using timer0 (prescale=1, count to 250), and within the timer interrupt handler, I have a state machine which samples ch-1, ch-2, ch-3, ch-2. The code is at http://www.0x0000ff.com/src/main.c if you're interested... To test it, I put a variable re...


Help needed to get CHSM binary

Started by Marc Hillman in comp.arch.embedded14 years ago 6 replies

I would REALLY like to evaluate CHSM: Concurrent Hierarchical Finite State Machine, but despite my best efforts I cannot build this from source....

I would REALLY like to evaluate CHSM: Concurrent Hierarchical Finite State Machine, but despite my best efforts I cannot build this from source. I'm a user, not a developer. The author has made it pretty clear he won't provide a binary, so how/where do I get one? I don't know where to even ask the question as the sourceforge project forums seem empty. Can anybody advise how tp get a bina...


Announcement: New version of UML state machine code generator available

Started by Peter Mueller in comp.arch.embedded14 years ago

Hello list readers, The new version now supports the generation of C / C++ / nesC / ObjC / Ada and C# code. SinelaboreRT was built especially...

Hello list readers, The new version now supports the generation of C / C++ / nesC / ObjC / Ada and C# code. SinelaboreRT was built especially with embedded real-time systems in mind. Generated code can run even on the smallest uC. Some of the new features: - Support of ArgoUML to create state chart models - More options to define the state handler signature - Several new examples - Art...


New version 1.8 of UML state machine code generator

Started by Peter Mueller in comp.arch.embedded14 years ago

Hello list readers, a new version of the sinelabore codegenerator is available for download. SinelaboreRT generates C-Code from UML state...

Hello list readers, a new version of the sinelabore codegenerator is available for download. SinelaboreRT generates C-Code from UML state charts. The UML state charts can be designed with the Cadifra UML editor, Enterprise Architect, UModel, Magic Draw or ArgoUML. The generation process is widely adjustable to your needs. SinelaboreRT was built especially with embedded real-time syste...


TMS320F2812, RAM state after a RESET?

Started by Bubbah in comp.arch.embedded17 years ago 5 replies

Is it possible to save a variable in RAM and then make a watch dog reset and then read back the same value from the RAM? Or does the RAM...

Is it possible to save a variable in RAM and then make a watch dog reset and then read back the same value from the RAM? Or does the RAM get cleared? I need to save a state machine state before the reset and then restore the state after power up. I'm coding in C.


Free state machine tool for embedded systems

Started by QL in comp.arch.embedded13 years ago

Traditionally, graphical UML tools haven't particularly caught on in the embedded space, because too often they fail to pull their own weight....

Traditionally, graphical UML tools haven't particularly caught on in the embedded space, because too often they fail to pull their own weight. Many developers find themselves fighting such tools at every step of the way: from drawing the diagrams to trying to live in a straight jacket of the generated code. The new, free QM tool from Quantum Leaps is different, because it was designed from the...


IAR VisualState State machine code generation

Started by Rob in comp.arch.embedded13 years ago 8 replies

I have been using State machine based design tools for some time, and have = seen UML modeling tools that allow you to execute your logic (call...

I have been using State machine based design tools for some time, and have = seen UML modeling tools that allow you to execute your logic (call function= s, do other stuff) inside a state. However, after spending a couple days wi= th IAR VisualState, it appears that you cannot execute your logic inside a = state without a trigger. I am confused as it does not make sense TO HAVE A = TRIGGER fo...


Alternatives to state machine for user-definable behavior without reprogramming?

Started by Mr.CRC in comp.arch.embedded13 years ago 5 replies

Hi: I've developed a machine which implements a real-time dynamically reconfigurable state machine. This is done by having two sets of...

Hi: I've developed a machine which implements a real-time dynamically reconfigurable state machine. This is done by having two sets of state transition tables in memory, ping-pong style, then synchronously switching from one state machine data structure to the other when it is appropriate to do so. Transitions are done in 2-4us on a TMS320F2812 DSC. The output of the state machine is ...


Announcement: C/C++ code generator from UML state diagrams (version 2.5)

Started by Peter Mueller in comp.arch.embedded13 years ago 2 replies

Hello list readers, SinelaboreRT supports the generation of clean and robust C / C++ code from UML state diagrams. It was built especially for...

Hello list readers, SinelaboreRT supports the generation of clean and robust C / C++ code from UML state diagrams. It was built especially for embedded software developers. Generated code can run even on the smallest uC. The new version 2.5 makes a big step towards model based testing. Features: - Generates test cases from your state machine model - Interactive simulation of your mod...


Announcement: C/C++ code generator from UML state diagrams now support parallel regions (AND states)

Started by Anonymous in comp.arch.embedded11 years ago

Hello list readers, SinelaboreRT supports the generation of clean and robust C / C++ code from UML state diagrams. It was built especially for...

Hello list readers, SinelaboreRT supports the generation of clean and robust C / C++ code from UML state diagrams. It was built especially for embedded software developers. Generated code can run even on the smallest uC. Features: - Generates test cases from your state machine model - Interactive simulation of your model - Support for various UML modelling tools or built-in edi...


Anybody using PIC32 and Harmony? Successfully?

Started by Dave Nadler in comp.arch.embedded6 years ago 1 reply

Select option -> Generate Code -> Build -> Build fails. Select different option -> Generate Code -> Build -> Build fails. Try yet another...

Select option -> Generate Code -> Build -> Build fails. Select different option -> Generate Code -> Build -> Build fails. Try yet another option -> Generate Code -> Build -> Build fails. Harmony is a giant framework where you select from hundreds of options (drivers, TCP stack, etc), then generate your application's frame. It favors a monster-loop state machine, at a point where the applica


FSM - Mealy vs. Moore

Started by Rick C in comp.arch.embedded5 years ago 13 replies

I'm discussing Finite State Machine (FSM) design in logic with some hardware folks and I thought I'd ask what a software community thinks. ...

I'm discussing Finite State Machine (FSM) design in logic with some hardware folks and I thought I'd ask what a software community thinks. Moore - outputs are only a function of the state. Mealy - outputs are a function of both inputs and state. So considering this issue, it seems it comes down to as Wikipedia says, "In Mealy machines, input change can cause output change


New version of UML state chart code generator is even more flexible in creating high quality C-code

Started by pmue...@sinelabore.com in comp.arch.embedded7 months ago

Sinelabore generates compact and readable C code from UML statecharts. There are a number of ways to fine-tune the generated code by setting...

Sinelabore generates compact and readable C code from UML statecharts. There are a number of ways to fine-tune the generated code by setting configuration parameters. C code can now be generated according to these patterns: Object pattern: Instance related data is always grouped in a struct. All state machine related functions operate on this data struct. Opaque object pattern: This is similar...


A state machine question

Started by Anonymous in comp.arch.embedded18 years ago 10 replies

I am implementing a state machine which has the following requirement: If the state machine is interrupted by power off, the state machine shall...

I am implementing a state machine which has the following requirement: If the state machine is interrupted by power off, the state machine shall resume from where it was interrupted after the program is restarted ( power on in this case). A basic idea is to keep a snapshot of the state machine before it is interrupted. I am seeking a better solution. please advice me. Thank you very m...


Announcement: C/C++/Lua code generator from UML state diagrams version 4.1

Started by Anonymous in comp.arch.embedded4 years ago

Hello list readers, SinelaboreRT generates clean and robust C/C++/Lua code from UML state machine diagrams. Features: - Support for...

Hello list readers, SinelaboreRT generates clean and robust C/C++/Lua code from UML state machine diagrams. Features: - Support for various UML modelling tools or built-in editor (EA, UModel, Modelio ...) - Generates clear production quality code - No run-time environment needed - Special features for high availability systems - Supports hierarchical designs - No gap between...



The 2024 Embedded Online Conference