Setup For I/O Ports; Providing Of Watchdog Timer Function By Software; Fig. 3.4.9 Wiring To A Signal Line Where Potential Levels Change Frequently; Fig. 3.4.10 Vss Pattern On The Underside Of An Oscillator - Renesas 4513 User Manual

4500 series 4-bit single-chip microcomputer
Table of Contents

Advertisement

APPENDIX
3.4 Notes on noise
Do not cross
Fig. 3.4.9 Wiring to a signal line where potential
levels change frequently
(3) Oscillator protection using V
As for a two-sided printed circuit board, print
a V
pattern on the underside (soldering side)
SS
of the position (on the component side) where
an oscillator is mounted.
Connect the V
SS
V
pin with the shortest possible wiring.
SS
Besides, separate this V
V
patterns.
SS
An example of V
underside of a printed circuit board
Oscillator wiring
pattern example
Separate the V
line for oscillation from other V
SS
Fig. 3.4.10 V
pattern on the underside of an
SS
oscillator
3-28
N.G.
CNTR
X
IN
X
OUT
V
SS
pattern
SS
pattern to the microcomputer
pattern from other
SS
patterns on the
SS
X
IN
X
OUT
V
SS
SS
4513/4514 Group User's Manual

3.4.5 Setup for I/O ports

Setup I/O ports using hardware and software as
follows:
<Hardware>
• Connect a resistor of 100
in series.
<Software>
• As for an input port, read data several times by
a program for checking whether input levels are
equal or not.
• As for an output port or an I/O port, since the
output data may reverse because of noise, rewrite
data to its output latch at fixed periods.
• Rewrite data to pull-up control registers at fixed
periods.
3.4.6 Providing of watchdog timer function by
software
If a microcomputer runs away because of noise or
others, it can be detected by a software watchdog
timer and the microcomputer can be reset to normal
operation. This is equal to or more effective than
program runaway detection by a hardware watchdog
timer. The following shows an example of a watchdog
timer provided by software.
In the following example, to reset a microcomputer
to normal operation, the main routine detects errors
of the interrupt processing routine and the interrupt
processing routine detects errors of the main routine.
This example assumes that interrupt processing is
repeated multiple times in a single main routine
processing.
lines
or more to an I/O port

Advertisement

Table of Contents
loading

This manual is also suitable for:

4514

Table of Contents