mikroPascal PRO for Arm.
In the original application I used the PWM library to generate
a frequency of 250KHz using a PIC P18F25K22.
I try to make the same thing on a Clicker for Kinetis board
that uses the MK22FN512XXX12 processor,
so I use the instruction:
Code: Select all
PWM_FTM0_Init(250000,_PWM_EDGE_ALIGNED_PWM, _PWM_CHANNEL_0, @_GPIO_Module_PWM0_PTC1);
Indeed, the declaration of PWM_Init in mikroPascal for PIC is339 305 Argument is out of range "250000" to "word" clicker for Kinetis.mpas
339 327 Incompatible types ("dword" to "word") clicker for Kinetis.mpas
Code: Select all
procedure PWMx_Init(const freq : longint);
Code: Select all
function PWM_FTMx_Init(freq_hz : word; config : word; channel : word, module : ^Module_Struct) : word;
It would be strange that and ARM is so less powerful than a PIC.
Is it a problem in the library?
How can I circumvent this?
Thank you,
Dan