This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

IS IT POSSIBLE TO PERFORM TWO TASKS AT THE SAME IN 8051

Hello
everybody,
iam working on cygnal micr0controllers, i have 2 programmes that should run simultaneously is it possible.

john e

Parents
  • Multi-tasking heavily depends on the processor load...I do not know how your application is built so it's hard to tell. How do you generate 70khz signal? PCA, timer interrupt...How much time do you spend in each 70khz cycle processing data? How much cycles do your second task need? All this should be known to give you answer if this can be done...

    regards

    Dejan

Reply
  • Multi-tasking heavily depends on the processor load...I do not know how your application is built so it's hard to tell. How do you generate 70khz signal? PCA, timer interrupt...How much time do you spend in each 70khz cycle processing data? How much cycles do your second task need? All this should be known to give you answer if this can be done...

    regards

    Dejan

Children
  • generating 70khz it should be continuously running
    That does not require "a task" Using T2 (if your derivative does not have a T2, switch derivative) you can generate a 70khz signal without the program being involved. If your derivative has a PCA the is equally simple>
    for T2 method see "the bible" ch 3
    for PCA method see the PCA cookbook

    Erik

  • hello
    mr erik thanks for your reply.i hope u might understood my reqirements,
    i have to generate 70khz continuously and it should act as input to the pca as time base.
    presently iam using ECI EXTERNAL COUNTER INPUT , FOR THIS i have to feed 70khz as input,when i generated continuously 70khz
    the programme control continuously running at while(1)loop but i have feed either by loop back how it can be implemented,
    is there any way that i can directly feed
    scsclk/the value =which is 70khz as input to the pca

    regards
    john e

  • i hope u might understood my reqirements,
    I do not know if micro (u) "understood your reqirements" why do you ask me.


    i have to generate 70khz continuously and it should act as input to the pca as time base.
    Use T0 as the PCA clock

    Erik