NEC PD78076 User Manual page 488

Pd78078 series; pd78078y series 8-bit single-chip microcontrollers
Table of Contents

Advertisement

When the internal clock is used as the serial clock in the 3-wire serial I/O mode, set BRGC as described
below. BRGC Setting is not required if an external serial clock is used.
(i) When the baud rate generator is not used:
Select a serial clock frequency with TPS0 through TPS3. Be sure then to set MDL0 through MDL3 to
1,1,1,1.
The serial clock frequency becomes 1/2 of the source clock frequency for the 5-bit counter.
(ii) When the baud rate generator is used:
Select a serial clock frequency with MDL0 through MDL3 and TPS0 through TPS3. Be sure then to
set MDL0 through MDL3 to 1,1,1,1.
The serial clock frequency is calculated by the following formula.
Serial clock frequency = —————— [Hz]
f
: Main system clock oscillation frequency
X
f
: Main system clock frequency (f
XX
n
: Value set in TPS0 to TPS3 (1
k
: Value set in MDL0 to MDL3 (0
488
CHAPTER 20 SERIAL INTERFACE CHANNEL 2
f
XX
2
n
x (k + 16)
X
n
or f
/2)
X
11)
k
14)

Advertisement

Table of Contents
loading

Table of Contents