Have to apologize 4 being total newbie in relation to writing 3-phase/bdlc code 4 56F803, and would WelCome if someone kind could give a simple piece of source that would read encoder counts and/or axis rotational angle from HP HEDS5500 encoder hooked to the encoder/quad port of the dsp56f803 ( have checked with scope that the encoder quadrature signal and index pulses come trough fine to the board pins ). Would need sample code to get motivation kick started after too long hiatus from coding. Did not find any suitable encoder reading source code examples from the SDK, such that one could surgery out easily from the SDK bdlc demos. Just a simplest of polling codes would be more than enough, if it is possible to read the counter without ISRs/additional timer routines. Could anyone please help with short demo source of how to do it, and promise will not bug again for some while. No, this is not a school related, just for personal learning to find motivation to study further to one day get a working bdlc-code working with F803 pwming a siliconix level-shifting fet driver/ hall-commutator and reading the encoder from the motor,a simple pwm out, encoder in situation where rest is handled with hw. Thks, Sade M. |