Re: 8521 dissection
Posted: Wed Nov 30, 2022 10:32 am
5e) CNT pad
CNT pad is the clock input/putput pad for the serial port (shift register),
also it can be used to enable timer A or timer B counting.
CRA6 control register A Bit configurates the serial port to either work
as an input (CRA6 = 0) or as an output (CRA6 = 1).
In input mode, the serial shift clock has to be generated outside the chip, and sent into the CNT pad.
In output mode, the serial shift clock is generated inside the chip, and comes out of the CNT pad.
In output mode, CNT has an "open collector output".
The output circuitry related to the CNT pad isn't much different from what we had at the SP pad.
Note, that there is no pullup resistor (FET) on the chip which ties the CNT pad to VCC.
;...
At the input side,
the high_active signal from the CNT pad goes through an inverting Schmitt trigger,
an inverter, an inverting super buffer, and becomes the low_active CNT# signal.
CNT# then goes into "12) CNT edge detector", which technically senses a rising edge on the CNT pad,
and generates the high_active CNT_EDGE signal if this was the case.
CNT_EDGE goes into "11b) serial port control", where it is used for generating the clock signal
for "11a) shift register plus latch".
CNT_EDGE also goes into "8c) timer A LO carry input generation".
CNT_EDGE and CNT# also go into "9c) timer B LO carry input generation".
;...
At the output side,
the low_active serial output clock signal SP_TCK# goes together with CRA6 into a NAND gate.
The output of the NAND gate goes into an inverting super buffer,
which controlls the driver FETs switching the CNT pad to GND.
When CRA6 = 1 (serial port in output mode), and SP_TCK# is HIGH (inactive),
the CNT pad is switched to GND.
The SP_TCK# signal is generated in "11b) serial port control".
;...
CNT pad is the clock input/putput pad for the serial port (shift register),
also it can be used to enable timer A or timer B counting.
CRA6 control register A Bit configurates the serial port to either work
as an input (CRA6 = 0) or as an output (CRA6 = 1).
In input mode, the serial shift clock has to be generated outside the chip, and sent into the CNT pad.
In output mode, the serial shift clock is generated inside the chip, and comes out of the CNT pad.
In output mode, CNT has an "open collector output".
The output circuitry related to the CNT pad isn't much different from what we had at the SP pad.
Note, that there is no pullup resistor (FET) on the chip which ties the CNT pad to VCC.
;...
At the input side,
the high_active signal from the CNT pad goes through an inverting Schmitt trigger,
an inverter, an inverting super buffer, and becomes the low_active CNT# signal.
CNT# then goes into "12) CNT edge detector", which technically senses a rising edge on the CNT pad,
and generates the high_active CNT_EDGE signal if this was the case.
CNT_EDGE goes into "11b) serial port control", where it is used for generating the clock signal
for "11a) shift register plus latch".
CNT_EDGE also goes into "8c) timer A LO carry input generation".
CNT_EDGE and CNT# also go into "9c) timer B LO carry input generation".
;...
At the output side,
the low_active serial output clock signal SP_TCK# goes together with CRA6 into a NAND gate.
The output of the NAND gate goes into an inverting super buffer,
which controlls the driver FETs switching the CNT pad to GND.
When CRA6 = 1 (serial port in output mode), and SP_TCK# is HIGH (inactive),
the CNT pad is switched to GND.
The SP_TCK# signal is generated in "11b) serial port control".
;...