Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Transfer Function impelmentation

Status
Not open for further replies.

smxx

Full Member level 4
Joined
Aug 18, 2005
Messages
193
Helped
25
Reputation
50
Reaction score
13
Trophy points
1,298
Location
iran(ahwaz)
Activity points
2,546
Hi
How we can implement a transfer function of a control system "H(S)" by a micro-controller.
I now that we have to transfer from "S" domain to "Z" and then to "difference Equation",:arrow:y(n)=a*y(n-T)+b*y(n-Kt)+...+x(n)".
that x(n) is the sample of input and y(n) is state of of system and T is the sampling time.
In micro-controller programing there is many "if",interrupt,and branching that shift the sampling time and real time calculation.
How we can solve this.
thanks
 

Usually, this operation have to be done by library written on assembler and provided by mcu's vendor. It uses ARM core for full power.
 
  • Like
Reactions: smxx

    smxx

    Points: 2
    Helpful Answer Positive Rating
Dear Easyrider83
my question is about branching for ex. display /keyboard /port communication that
destroy "real time" programming
thanks
 

Dear Easyrider83
my question is about branching for ex. display /keyboard /port communication that
destroy "real time" programming
thanks

You need to study timers and interrupts and real-time programming. Even quite small MCUs give you the tools for achieving this in general so long as it has enough processing overall (plus some margin).

The bottom line is that you need a timer driving an interrupt that calls your data acquisition/processing routine.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top