view sim-card-detect @ 407:183e81c8f6c0

hr-bits: sid-count program written
author Mychaela Falconia <falcon@freecalypso.org>
date Mon, 22 Jul 2024 10:00:58 +0000
parents 82d5cc869bf1
children
line wrap: on
line source

On the Mother's D-Sample board the SIM card status register (FFFE:0002)
reads:

0x000A (CD bit 0) when the SIM socket is empty
0x000B (CD bit 1) when a card is inserted and the switch is shorted

These register readings match CAL207 register document.

On FCDEV3B Calypso SIM_CD input is tied high following Leonardo and Openmoko,
and the register reads 0x000B - thus we reach the conclusion that CAL000
document is correct in that logic high on SIM_CD is supposed to indicate SIM
inserted, whereas logic low is supposed to indicate an empty SIM socket.

However, the netlist extracted from the PADS PCB file for E-Sample (Calypso+
chipset) shows the opposite arrangement: it shows a pull-up resistor to V-IO on
the SIM-CD net, and the switch in the SIM socket shorts this net to ground.
Perhaps the sense of this signal is inverted on Calypso+?  We have no way of
knowing because we have no documentation for Calypso+, but we do know that its
ABB companion Syren reversed the sense of its test reset signal (relative to
Iota) for no apparent reason, hence such signal polarity reversals are not out
of the question.