how to initializatize/re-configure usart?

Started by bcincin in comp.arch.embedded12 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.embedded11 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.embedded10 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.embedded9 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.embedded9 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...


Convert assembly to C

Started by Mith in comp.arch.embedded9 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?


Free state machine tool for embedded systems

Started by QL in comp.arch.embedded9 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.embedded8 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.embedded8 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.embedded8 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.embedded7 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...


Announcement: Generate code from UML activity and state machine diagrams

Started by Anonymous in comp.arch.embedded5 years ago

Hello list readers, the new SinelaboreRT code generator now supports the generation of clean and robust C / C++ code from activity diagrams...

Hello list readers, the new SinelaboreRT code generator now supports the generation of clean and robust C / C++ code from activity diagrams and state diagrams. Features: - Generates clear production quality code - Special features for high availability and embedded systems - Supports hierarchical designs, submachines and regions - No run-time environment needed - Fits well in d...


Anybody using PIC32 and Harmony? Successfully?

Started by Dave Nadler in comp.arch.embedded1 year 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.embedded1 day 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