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就不是那麼難了,現在,就算你穿上馬甲我也認識你。
如果你沒看明白,沒有關係,我們不是同道中人,權當笑話,捧捧場,說不定下回咱殊途同歸了。
血和淚,我們需要銘記:“別小瞧了便宜的'示波器'”。