SIC63616-(Rev. 1.0) NO. P61
3240-0412
PTOUT_A: TOUT_A output control register (FF81H•D0)
Controls the TOUT_A output.
When "1" is written: TOUT output On
When "0" is written: TOUT output Off
Reading: Valid
By writing "1" to the PTOUT_A register, the TOUT_A signal is output from the P13 terminal. When "0" is
written, the corresponding terminal is used as a general-purpose DC input/output port.
At initial reset, these registers are set to "0".
4.5.9 Programming notes
(1) When an I/O ports in input mode is changed from high to low by the pull-down resistor, the fall of the
waveform is delayed on account of the time constant of the pull-down resistor and input gate capaci-
tance. Hence, when fetching input data, set an appropriate wait time.
Particular care needs to be taken of the key scan during key matrix configuration.
Make this waiting time the amount of time or more calculated by the following expression.
10
×
C
×
R
C: terminal capacitance 15 pF + parasitic capacitance ? pF
R: pull-down resistance 500 k
Ω
(Max.)
(2) Be sure to turn the noise rejector off before executing the SLP instruction.
(3) Reactivating from SLEEP status can only be done by generation of a key input interrupt factor. There-
fore when using the SLEEP function, it is necessary to set the interrupt select register (SIPxx = "1") of the
port to be used for releasing SLEEP status before executing the SLP instruction. Furthermore, enable the
key input interrupt using the corresponding interrupt mask register (EIKxx = "1") before executing the
SLP instruction to run key input interrupt handler routine after SLEEP status is released.
(4) A hazard may occur when the TOUT_A and FOUT signals are turned on and off.
(5) When f
OSC3
is selected for the FOUT signal frequency, it is necessary to control the OSC3 oscillation
circuit before output. Refer to Section 4.4, "Oscillation Circuit", for the control and notes.
(6) After an interrupt occurs, the same interrupt will occur again if the interrupt enabled state (I flag = "1")
is set or the RETI instruction is executed unless the interrupt factor flag is reset. Therefore, be sure to
reset (write "1" to) the interrupt factor flag in the interrupt service routine before shifting to the interrupt
enabled state.
(7) Before the port function is configured, the circuit that uses the port (e.g. input interrupt, multiple key
entry reset, serial interface, event counter input, direct RUN/LAP input for stopwatch) must be dis-
abled.
Содержание S1C63616
Страница 1: ...S1C63616 Technical Manual Rev 1 0 ...