electronics forum

Rules | Recent posts | topic RSS | Search | Register  | Log in

PID controller using pic f877


Post new topic  Reply to topic    EDAboard.com Forum Index -> PC Programming and Interfacing -> PID controller using pic f877
Author Message
zoubir



Joined: 18 Apr 2007
Posts: 9


Post23 Apr 2007 16:39   

PID controller using pic f877


Hi everybody,
I want a clue to calculate the pic 16f877 computation time for the processing of an input sample with the filtering diff equation:eg.
y(n)=0.123*x(n)+0.223*x(n-1)+0.08*x(n-2)+.....
The diff equation I manipulated is order 9 and so there is much time consuming in the pic algorithm which I fear will not work properly for real time processes.
Kind regard,
Back to top
Google
AdSense
Google Adsense




Post23 Apr 2007 16:39   

Ads




Back to top
melc



Joined: 08 Apr 2005
Posts: 394
Helped: 45


Post23 Apr 2007 20:35   

Re: PID controller using pic f877


zoubir wrote:
Hi everybody,
I want a clue to calculate the pic 16f877 computation time for the processing of an input sample with the filtering diff equation:eg.
y(n)=0.123*x(n)+0.223*x(n-1)+0.08*x(n-2)+.....
The diff equation I manipulated is order 9 and so there is much time consuming in the pic algorithm which I fear will not work properly for real time processes.
Kind regard,



I have no better ideea than measuring the computational time for every constant multiplication on every sample. Limit the number of samples to a reasonable value. Use this trick for multiplication with a constant:
http://www.piclist.com/techref/piclist/codegen/constdivmul.htm
Back to top
temitope



Joined: 16 Apr 2007
Posts: 5


Post26 Apr 2007 20:26   

PID controller using pic f877


zoubir wrote:
Hi everybody,
I want a clue to calculate the pic 16f877 computation time for the processing of an input sample with the filtering diff equation:eg.
y(n)=0.123*x(n)+0.223*x(n-1)+0.08*x(n-2)+.....
The diff equation I manipulated is order 9 and so there is much time consuming in the pic algorithm which I fear will not work properly for real time processes.
Kind regard,


hi pal, i know i am just a beginner but i am very sure i have seen something like that in this link. http://www.seattlerobotics.org/encoder/200205/PIDmc.html i hope you it helps. pls anyway to make grow in microcontroller programing and interfacing will be apprciate. cheers

Added after 8 minutes:

here is another for you but this is based on the avr microcontroller
http://hubbard.engr.scu.edu/embedded/motorcontrol/motorctrl-avr/
have fun
Back to top
Arabic versionBulgarian versionCatalan versionCzech versionDanish versionGerman versionGreek versionEnglish versionSpanish versionFinnish versionFrench versionHindi versionCroatian versionIndonesian versionItalian versionHebrew versionJapanese versionKorean versionLithuanian versionLatvian versionDutch versionNorwegian versionPolish versionPortuguese versionRomanian versionRussian versionSlovak versionSlovenian versionSerbian versionSwedish versionTagalog versionUkrainian versionVietnamese versionChinese version
Post new topic  Reply to topic    EDAboard.com Forum Index -> PC Programming and Interfacing -> PID controller using pic f877
Page 1 of 1 All times are GMT + 1 Hour
Similar topics:
pic microcontroller for PID controller (14)
PID controller using PIC16F877 (6)
Help in designing a PID controller using Matlab (2)
self adjust PID Controller using neural network (1)
PID Ziegler-Nichols using PIC (11)
PID Line Follower Robot, using PIC (6)
PID controller programming through AVR controller (6)
PIC controller using USB (5)
sms controller using PIC 16F877 (3)
Project CDROM AUDIO Controller using PIC (20)


Abuse || Administrator || Moderators || Support us || sitemap
topic RSS