Advantages of arm more than AVR or pic (by Ahmad sakr)
To José
I have a question about the advantages of using arm more than avr or pic (8 bit microcontroller) for the same program produced in LDMICRO
In another words as my English not good. If I make a program in LDMICRO which will deal with an encoder of 3600 ppr then at the point of choosing the microcontroller , what arm will offer more than AVR or pic in speed and number of interrupt points and others points
Another question is LDMICRO gives all the advantages of arm as in its IDE
Thanks
(no subject) (by José)
I suppose your incremental encoder génerates 2 square signals
at a frequency depending on the velocity.
With 3600 ppr and 1000 r/min you get something like a 3.6 MHz signal.
To be able to manage such a signal you must have a fast MCU.
STM32F1 can run at 72 MHz and STM32F4 at 168 MHz, but I don't know if ldmicro can do the job at high frequencies ; no personal experience about it !
You must try...
Best regards
José
(no subject) (by Ziggy)
It is the PLC cycle which determines upper pulse rate.
The quadrature encoder needs a loop cycle time at least four times higher than the expected pulse repetition rate from the encoder.
By the way 3600 pulses per revolution and 1000 rpm provides 3600 *1000/60 maximum pulse frequency.
PLC loop time must be four times quicker.
Very hard to achieve that.
(no subject) (by Ahmad sakr)
From José and Ziggy words I understand that it can not be achieved by LDMICRO . I intend to learn arm can you advise me the best way as I don't know c language (only ladder).also I will practice in blue pill
Thanks for your great response
Best regards
(no subject) (by José)
Yes, I forgot to devide by 60 !
It gives 60 kHz ; much better.
But it also depends on what you've got to do during each cycle.
The bluepill board is very unexpensive ; you can try it with a very short cycle time in ldmicro ?
José