09.07.2015 Views

mitsubishi - Al Kossow's Bitsavers

mitsubishi - Al Kossow's Bitsavers

mitsubishi - Al Kossow's Bitsavers

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

MITSUBISHI MICROCOMPUTERSMELPS 8-41 SLAVE MICROCOMPUTERSFUNC.TIONS OF MELPS 8-41 SLAVE MICROCOMPUTERSTIMEROVERFLOW2.5tis·(when using a6MHz crystal)Instruciton cycleI 85 Sl 82 83 T S4 I 85 81 IInstructionInstruction programdecode,Instruction executionfetch counterrenewalTIMERFLAG (TF)S 0Flg.12Instruction execution timingFlg.9EOGE OE TECTORTimer/event counter configurationCycle TimingThe output of the state counter is + the input frequencyfrom the oscillator, and a ClK signal is produced which determinesthe times of each machine state (see Fig. 10) .During the cycle count the ClK signal is prescaled by +and a machine cycle containing 5 states is produced. TheMElPS 8-41 instructions are executed in one or twomachine cycles. Fig. 12 shows the internal operation with aninstruction for~ed from one machine cycle.ResetThe RESET pin is for resetting the CPU. A Schmitt triggercircuit along with a pull-up resistor are connected to it onthe chip. A sufficiently long pulse can be obtained for resettingby attaching 1 J..l F capacitor as shown in Fig. 13. Anexternal reset pulse applied at RESET must remain at thelow level for at least 10ms after the power has been turnedon and after it has reached its normal level.The reset function causes the following initialization withinthe CPU.(1) The program counter is reset to O.(2) The stack pointer is reset to O.(3) The register bank 0 is selected.(4) Ports 1 and 2 are reset to the input mode.(5) External and timer interrupts are reset to disable state.(6) Timer is stopped.(7) Timer flag is cleared.(8) Flags Fo and F1 are cleared.MELPS8-41Flg.l0 Clock generator circuit5VInternalclock~.~~l- "SYNC -4--+-__ ~Flg.13Example of reset circuitPROGt--r--1--rIL~_~-4_~Flg.llClock and generated cycle signals5-10 • MITSUBISHI"'ELECTRIC

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

Saved successfully!

Ooh no, something went wrong!