my project is used nrf51822 mcu, it contains SIM, when the mcu is reading SIM data, and at the same, I take out theSIM, and the 51822's pin which is link with SIM is can't control,the IO is unnormal.
my project is used nrf51822 mcu, it contains SIM, when the mcu is reading SIM data, and at the same, I take out theSIM, and the 51822's pin which is link with SIM is can't control,the IO is unnormal.
Are you talking about a mobile phone SIM = "Subscriber Identity Module"?
What do you mean by, "can't control" and, "the IO is unnormal"
the SIM has 6 pins,1 is GND, 2 is vcc,3 is ccvpp(I let it NC),4 is RST, 5 is data(SIMIO),6 is clk the data is link with 51822's P0.26,the RST is link with P0.27,and the vcc is link with AO3401(P MOS),and then link with P0.22. when when the mcu is reading SIM data, and at the same, I take out theSIM, and the 51822's pin which is link with SIM is can't control,the IO is unnormal.I can't make the io's level what I want
Does it recover after a reset? Or does it need a power cycle?
yes, after I reset the mcu, it's ok
1、turn off the power, it recover
2、send command to 51822 by nus service ,then 51822 do NVIC_SystemReset();,then it recover