Speediing up hex-code (by Christian Haider)
Dear Sirs!
Thanks for the nice and helpful ldmicro!
As I understand there is a way to get the asm – code from a hex-file made by ldmicro.
So if I take this asm-code and use Mplab to make a hex-file out of this asm-code again, will this new hex-file be running faster than the one from ldmicro?
I do have problems with the speed of my programm (quad encoder).
Thanks for the answer in advance
Best regards from Austria!
Chris
(no subject) (by MGP)
It would not have an effect, you can not use a machine-driven relative encoder with ldmicro due to the cycle time.
You have a cycling time of 8ms, which means you can only read max 125Hz and for safty 100Hz.
Most encoders have 1024imp / rot resolution that gives 1024x4 = 4096 high / low flanks per revolution.
You can calculate how fast that encoder can run.
The software is more suitable for using a rotary potentiometer or a homemade relative encoder of eg. 10 imp / rot, that should be calculated.
Real plc's also use special highspeed counter cards that work on interrupts.
(no subject) (by Christian Haider)
Thanks for the hints MGP!
Exactly this is the problem but would not be at a cycle-time of about 1mS! Max. 500 imp./sec.
I am still hoping to find a way to reach that by letting it compile by Mplab or mayby another way. Using the last version (4.2.3) can make a hex-code and from that one a PIC - asm - file.
A hardwarecounter is an option but the last one!