bankinggugl.blogg.se

The linear model representation of the avr control loop
The linear model representation of the avr control loop











  1. #The linear model representation of the avr control loop software
  2. #The linear model representation of the avr control loop code

We were evaluating whether to fold this system into one of our own products.

#The linear model representation of the avr control loop software

This system and software came from one of our sister companies so I had access to all the documentation, including a nice software flowchart that somebody else created. The software "bad signal" detection was very robust, but impossible to really understand without probing "internal" points within the simulated micro-controller. I could tweak gain levels and frequency shaping on the analog front end all in the simulation. I had available captured records of the chaotic input as well as simulated chaotic signal generators to use as inputs. Hello Jim, The reason I did this with LTspice is that I wanted to analyze and test the behavior of a system with a very chaotic input, a very nonlinear digital "bad signal" detection algorithm and single go/no-go output.

the linear model representation of the avr control loop

In short, you will spend a very large amount of effort for what is likely very little gain. If you do this well, your top level schematic will look very much like a software flowchart. You will have to modify the hierarchical symbols that you will have LTspice create for you automatically to look like software flowchart symbols. Run the sampled and held analog through a lossless analog delay line with delay equal to the sample period. You will likely also need data that is one or more clock periods old. The A/Ds probably have enough bits so that you can ignore quantization effects. Incoming analog will probably be sampled and held (it's an a-device) at this rate (or perhaps a sub-harmonic rate). Set up a clock at this rate on the top schematic of the hierarchy. Your main working loop will probably run at some fixed rate from a few hundred Hertz to a few tens of kilohertz. For example, it is very easy to create a behavioral 1 of 4 or 1 of 8 low pass filter this way.

#The linear model representation of the avr control loop code

Between the actual code listing and flowchart, you should be able to dissect, understand then recreate a subroutine's behavior in LTspice. Software subroutines will become hierarchical sub-schematics in LTspice. Hello Xiaofu, The first step is to obtain or create a software flowchart (block diagram) of the code of interest (probably not including initialization or startup).

the linear model representation of the avr control loop











The linear model representation of the avr control loop