21.07.2015 Views

M16C User Manual.pdf

M16C User Manual.pdf

M16C User Manual.pdf

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

ProtectMitsubishi microcomputers<strong>M16C</strong> / 62 GroupSINGLE-CHIP 16-BIT CMOS MICROCOMPUTER(1) Clearing the protect (set to write-enabled state)b7b01Protect register [Address 000A16]PRCREnables writing to system clock control registers 0 and 1 (addresses 000616 and 000716)1 : Write-enabledEnables writing to port P9 direction register (address 03F316) and SI/Oi control register(i=3,4) (addresses 036216 and 036616)0 : Write-inhibited1 : Write-enabled(2)Setting system clock control register i (i = 0, 1)(3) Setting the protect (set to write-inhibited state)b7b00Protect register [Address 000A16]PRCREnables writing to system clock control registers 0 and 1 (addresses 000616 and 000716)0 : Write-inhibitedEnables writing to port P9 direction register (address 03F316) and SI/Oi control register(i=3,4) (addresses 036216 and 036616)0 : Write-inhibited1 : Write-enabled(4) Clearing the protect (set to write-enabled state)b71b0Protect register [Address 000A16]PRCREnables writing to system clock control registers 0 and 1 (addresses 000616 and 000716)0 : Write-inhibited1 : Write-enabledEnables writing to port P9 direction register (address 03F316) and SI/Oi control register (i=3,4) (addresses 036216 and 036616)1 : Write-enabled(5)Changes in port P9 or changes in SI/Oi control register (i=3,4)Figure 2.1.2. Set-up procedure for protect function2.1.3 Precaution for Protect(1) The write-enable bit of port 9 direction register and SI/Oi control register (i=3,4) goes to “0”when the next write instruction is executed after write-enabled state is readied. Makechanges in input/output and SI/Oi control register (i=3,4) immediately after the instruction thatsets “1” in the write-enable bit of port P9 direction register and SI/Oi control register(i=3,4)(avoid causing an interrupt). Also take measures to prevent DMA transfer from beingexecuted.279

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!