User manual

Table Of Contents
USER CUSTOMIZATION
M68CPU32BUG REV 1 C-20
Q: How can I change the Periodic Interrupt Timer (PIT) "tick" time for the SYSCALL timing
functions?
A: Change the Periodic Interrupt Timer .PITR parameter to alter the "tick" count. This
parameter’s value is placed into the PITR register by the PWR_INI routine.
Q: How can I change the default RS-232 communications parameters, such as baud rate, parity,
number of data bits, stop bits, and XON/XOFF flow control?
A: Use the Console Default Table for SCI (.BAUD, .PARITY, .DATA, .STOP, .XON_ENB,
.XON, and .XOFF) to change these parameters.
Q: How can I change the crystal frequency? Can I use an external clock?
A: Change the FCRYSTAL parameter to alter the crystal frequency for the on-board Voltage
Controlled Oscillator (VCO). To use an external clock, the FEXTAL parameter must be set
to the external clock frequency and the MODCLK* line must be held low during reset.
CPU32Bug monitors the MODCLK* signal after reset to determine which parameter to use
when calculating SCI baud rates.
Q: Why do certain baud rates fail to work after I change the crystal frequency or use an external
clock?
A: There is an integral relationship between the system clock rate (F
SYSTEM
) and QSCI baud
rates, as per Section 5.6.3.1 SCI CONTROL REGISTER 0 (SCCR0), in the MC68332 User’s
Manual, MC68332UM/AD (or in the previous MC68332 System Integration Module User’s
Manual, SIM32UM/AD), as defined by the following equation:
SCI baud = System Clock/(32 x SCBR)
where SCBR equals {1, 2, 3, ..., 8191}. For a specific baud rate to function, the difference
between the Nominal Baud Rate and the Actual Baud Rate as typified by Table 5-13, should
be kept within 3% for reliable operation. Reliable communication also depends greatly upon
the ability of the communications hardware at the other end, i.e., a modern VLSI UART
device, such as found in the IBM-PC, might tollerate baud rate error differences up to 5%.
In summary, all baud rates may not be available depending upon the system clock rate used.
USER CUSTOMIZATION
M68CPU32BUG REV 1 C-21
Q: After I made the parameter change for an external clock (FEXTAL) and tied MODCK low
on header P2 by jumping pin 28 to 64, nothing happens when I power up the BCC, i.e., no
signon message appears. Why doesn’t it work?
A: The trace between pins 2 and 3 of jumper J1 on the BCC must be cut and the jumper placed
over pins 1-2 of J1 before the external clock signal can reach the MCU EXTAL pin.
Q: How can I change the number of data bytes in the the S-records produced by the dump (DU)
command?
A: Change the SRECMAX parameter to alter the data count. Larger counts produce more
efficient data S-records, but some loaders cannot accomodate them and they are harder to
view/edit as text files. Thus the default is set to 32 ($20) data bytes per record.
Q: How can I move the register module base to $007FFF00 when it is controlled by a write-once
MM bit in the Module Control Register (MCR)?
A: Change the MCR_AND parameter so the MM bit position (bit 6) is zero. The PWR_INI
routine initializes the MCR register by first reading the register, OR’ing in the MCR_OR
parameter value and then AND’ing the result with the MCR_AND parameter value before
storing the resulting value back into the MCR register.
Q: How can I enable the Software Watchdog or change the Bus Monitor Timing when they are
controlled by the write-once System Protection Control Register (SYPCR)?
A: Change the SYPCR_OR and SYPCR_AND parameters to achieve the desired value to be
placed into the SYPCR register. The PWR_INI routine initializes the SYPCR register by
first reading the register, OR’ing in the SYPCR_OR parameter value and then AND’ing the
result with the SYPCR_AND parameter value before storing the resulting value back into the
SYPCR register. As the Software Watchdog timeout period is set to smaller and smaller
values, some CPU32Bug commands may fail to complete their tasks before the watchdog can
be serviced, which causes a system reset. If the value is too small, the CPU32Bug signon
message will never appear, as the MCU will be in a state of chronic reset.
Fr
eescale S
emiconduct
or
, I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
nc...