Renesas Single-Chip Microcomputer M306NKT3 User Manual

Page 35

Advertising
background image

19

3.2.9

Can I modify the User Mode kernels to work for a different clock frequency?

It is recommended that the original kernel is copied to another directory and that this copy is edited,
thus leaving the original kernel unmodified. When using the kernel for the first time, you will need to
browse to the alternate location to find the fcf file.

The User Mode kernels need to be rebuilt if a different clock frequency is going to be used. The initial
Bit Rate Register value is held in the ‘gentest.h’ file and is compiled into the User Mode Test Program;
this allows the kernel initialise the serial communications interface to 9600 baud. If the clock frequency
changes from the default supplied value, the initial Bit Rate Register setting in ‘gentest.h’ [normally
MA_BRR_SCI or MA_BRR_SCI1] will need to be modified and the kernel recompiled. Refer to the
device hardware manual for details of how to calculate the Bit Rate Register value.

Advertising