BUG,程序员生活的一部分,相互离不了,互相不欢喜。也许你有精彩的人生,你有精彩的BUG吗?
它困扰了我快2周,姑且称它为小A,小A它一直不敢正视我,天天在逃避,每次与它擦肩而过,感觉很熟悉,又发现其实咱们不太熟。正因为如此,它才可以得意这么久;也正因为如此,它才连累了它的众多亲朋与好友,不过那些家伙也非善类,装好人也不是一天两天了,只是还没给它们机会出来曝光而已。其实大家都一样,大多数人一辈子也都是碌碌无为的隐藏着,你还想那着杆起义?做梦!
人总是喜欢展示出好的一面,我也一样,所以每天如何的揪心揪肺、如何的辗转反侧就...
只希望和大家分享揪出小A,那它游街的痛快。你可能会问,小A是怎么被揪出来的呢?这得益于我们那超级无敌廉价示波器。
上datasheet:
Sample One ->
The Cold Reset Activation Terminal procedure is as follow and the Figure 15-8. Timing indications are given according to ISO IEC 7816:
• RESET= Low , I/O in the receive state
• Power Vcc (see DC/DC Converter)
• Once Vcc is established, apply Clock at time Ta
• Maintain Reset Low until time Ta+tb (tb< 400 clocks)
• Monitor The I/O line for the Answer To Reset (ATR) between 400 and 40000 clock cycles after Tb. ( 400 clocks < tc < 40000clocks)
Sample Two ->
• Bit 1 – CARDRST: Card RST
Clear this bit to drive a low level on the Card RST pin.
Set this bit to set a high level on the Card RST pin.
VCARDOK=1 (SCISR.4 bit) condition must be true to change the state of Card RST pin.
Sample Three ->
Power On -> CardVcc On -> VCARDOK = 1
看明白这几条,认出小A就不是那么难了,现在,就算你穿上马甲我也认识你。
如果你没看明白,没有关系,我们不是同道中人,权当笑话,捧捧场,说不定下回咱殊途同归了。
血和泪,我们需要铭记:“别小瞧了便宜的'示波器'”。