Renesas M30245 Series User Manual page 335

16-bit single-chip microcomputer
Hide thumbs Also See for M30245 Series:
Table of Contents

Advertisement

M30245 Group
I n t e r r u p t e n a b l e f l a g ( I f l a g )
A l l c l o c k s o f f ( s t o p m o d e )
b 7
0 0 0 0
K e y m a t r i x s c a n
b7
b 7
Figure 3.8.4. Set-up procedure of controlling power using stop mode (2)
Rev.2.00 Oct 16, 2006
REJ09B0340-0200
C o n t i n u e d f r o m t h e p r e v i o u s p a g e
" 1 "
b 0
System clock control register 1 [Address 0007
1
CM1
A l l c l o c k s t o p c o n t r o l b i t
1 : A l l c l o c k s o f f ( s t o p m o d e )
R e s e r v e d b i t
M u s t a l w a y s b e s e t t o " 0 "
Insert at least four NOPs following JMP.B instruction after
the instruction that sets the all clock stop control bit to "1".
b0
P o r t P 0 r e g i s t e r [ A d d r e s s 0 3 E 0
P 0
Key scan data
1110, 1101, 1011, 0111
Decision of key-input data
b 0
P o r t P 0 r e g i s t e r [ A d d r e s s 0 3 E 0
0
0
0
0
P 0
K e y s c a n d a t a
Restore the registers
page 324 of 354
]
16
NOP instruction X 4
Key-input interrupt
Store the registers
]
1 6
]
1 6
REIT instruction
3. Controlling Power Applications
K e y i n p u t i n t e r r u p t r e q u e s t g e n e r a t i o n

Advertisement

Table of Contents
loading

This manual is also suitable for:

M16c seriesM20c series

Table of Contents