参数资料
型号: M38199EFFS
元件分类: 微控制器/微处理器
英文描述: 8-BIT, UVPROM, MICROCONTROLLER, CQCC100
封装: WINDOWED, CERAMIC, LCC-100
文件页数: 102/217页
文件大小: 2564K
代理商: M38199EFFS
第1页第2页第3页第4页第5页第6页第7页第8页第9页第10页第11页第12页第13页第14页第15页第16页第17页第18页第19页第20页第21页第22页第23页第24页第25页第26页第27页第28页第29页第30页第31页第32页第33页第34页第35页第36页第37页第38页第39页第40页第41页第42页第43页第44页第45页第46页第47页第48页第49页第50页第51页第52页第53页第54页第55页第56页第57页第58页第59页第60页第61页第62页第63页第64页第65页第66页第67页第68页第69页第70页第71页第72页第73页第74页第75页第76页第77页第78页第79页第80页第81页第82页第83页第84页第85页第86页第87页第88页第89页第90页第91页第92页第93页第94页第95页第96页第97页第98页第99页第100页第101页当前第102页第103页第104页第105页第106页第107页第108页第109页第110页第111页第112页第113页第114页第115页第116页第117页第118页第119页第120页第121页第122页第123页第124页第125页第126页第127页第128页第129页第130页第131页第132页第133页第134页第135页第136页第137页第138页第139页第140页第141页第142页第143页第144页第145页第146页第147页第148页第149页第150页第151页第152页第153页第154页第155页第156页第157页第158页第159页第160页第161页第162页第163页第164页第165页第166页第167页第168页第169页第170页第171页第172页第173页第174页第175页第176页第177页第178页第179页第180页第181页第182页第183页第184页第185页第186页第187页第188页第189页第190页第191页第192页第193页第194页第195页第196页第197页第198页第199页第200页第201页第202页第203页第204页第205页第206页第207页第208页第209页第210页第211页第212页第213页第214页第215页第216页第217页
177
3. APPENDIX
3819 Group USER’S MANUAL
MITSUBISHI MICROCOMPUTER
3819 Group
3.2 Countermeasures against noise
3.2.5 Setup for I/O ports
Setup I/O ports using hardware and software as follows:
<Hardware>
qConnect a resistor of 100
or more to an I/O port in
series.
<Software>
qAs for an input port, read data several times by a
program for checking whether input levels are equal
or not.
qAs for an output port, since the output data may
reverse because of noise, rewrite data to its data
register at fixed periods.
qRewirte data to direction registers and pull-up control
registers (only the product having it) at fixed periods.
Fig. 3.2.8 Setup for I/O ports
When a direction register is set to input port again at fixed periods, a several-nanosecond short pulse may be output
from this port. If this is undesirable, connect a capacitor to this port to remove the noise pulse.
3.2.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 opera-
tion. 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 pro-
vided 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 process-
ing routine detects errors of the main routine.
This example assumes that interrupt processing is
repeated multiple times in a single main routine process-
ing.
<The main routine>
qAssigns a single byte of RAM to a software watchdog
timer (SWDT) and writes the initial value N in the
SWDT once at each execution of the main routine.
The initial value N should satisfy the following
condition:
Fig. 3.2.9 Watchdog timer by software
N+1
≥ (Counts of interrupt processing executed in each main routine)
As the main routine execution cycle may change because of an interrupt processing or others, the initial value N
should have a margin.
qWatches the operation of the interrupt processing routine by comparing the SWDT contents with counts of interrupt
processing count after the initial value N has been set.
qDetects that the interrupt processing routine has failed and determines to branch to the program initialization routine
for recovery processing in the following cases:
x If the SWDT contents do not change after interrupt processing
If the changed SWDT contents are abnormal
(In Figure 3.2.9, the main routine determines that the interrupt processing routine has failed only if the SWDT
contents do not change).
Direction register
Data register
Data bus
I/O port
pins
Noise
Main routine
(SWDT)
← N
CLI
Main processing
(SWDT)
Interrupt processing
routine errors
N
= N
Interrupt processing routine
(SWDT)
← (SWDT)—1
Interrupt processing
(SWDT)
Main routine
errors
>0
≤0
RTI
Return
= N?
≤0?
相关PDF资料
PDF描述
M38198MC-XXXFP 8-BIT, MROM, MICROCONTROLLER, PQFP100
M30622SFP 16-BIT, 16 MHz, MICROCONTROLLER, PQFP100
M38039FFFP 8-BIT, FLASH, 16.8 MHz, MICROCONTROLLER, PQFP64
MB90548PF 16-BIT, MROM, 16 MHz, MICROCONTROLLER, PQFP100
MSU2052L16-YYYU 8-BIT, MROM, 16 MHz, MICROCONTROLLER, PQFP44
相关代理商/技术参数
参数描述
M38199MF072F 制造商:Panasonic Industrial Company 功能描述:IC
M38199MF210F 制造商:Panasonic Industrial Company 功能描述:IC
M38199MF217 制造商:Panasonic Industrial Company 功能描述:IC
M38199MF219F 制造商:Panasonic Industrial Company 功能描述:IC
M38199MF227 制造商:Panasonic Industrial Company 功能描述:IC