DSPRelated.com
Forums

How to config for IOSCTL register on Processor Expert Bean for Freescale 56F801?

Started by pitchayav December 26, 2005
In processer expert bean, I have tried to find where I can config for
register IOSCTL using for trimming internal oscillator, but I couldn't found it.
Anyone can tell me the answer? Please...
Thanks you very much.
Pitchaya V.


There is no special Processor Expert property for adjusting the IOSCTL
register (it wouldn't be very useful).
The IOSCTL register is adjusted after the reset with the
value read from the info flash (where it was stored by manufacturer).
The _EntryPoint function for 56F801 contains this code:

...
setRegBit(DFIU_CNTL, IFREN); /* Set IFREN bit of DFIU to
read info flash */
setReg(ISOCTL, *(word *)0x103F); /* Set the trim osc freq with
factory programmed value */
clrRegBit(DFIU_CNTL, IFREN); /* Clear IFREN bit for normal
data flash */
...

Unfortunatelly, there is a bug in the name of the IOSCTL that cames
from an old version of the CPU manual - the Processor Expert defines
the register as ISOCTL instead of IOSCTL.

You can adjust the value by writing to the register:
setReg(ISOCTL, value); /* Set the trim osc freq */
However, it is recommended to start at the value that is read from the
info flash, and increase or decrease the number till the
desired clock accuracy is reached.

best regards
Petr Hradsky
Processor Expert Support Team
UNIS

--- In motoroladsp@moto..., "pitchayav" <pitchayav@F...> wrote:
>
> In processer expert bean, I have tried to find where I can config for
> register IOSCTL using for trimming internal oscillator, but I
couldn't found it.
> Anyone can tell me the answer? Please...
> Thanks you very much.
> Pitchaya V.
>