Re: 下列七段顯示器程式如何修改
|
||||
---|---|---|---|---|
版主
|
Hex to BCD 的轉換在 W401 C18 的教材裡有 範例 4-1
也可以參考 itoa( ) 的標準函數。
發表於: 2008/2/20 14:49
|
|||
|
Re: 下列七段顯示器程式如何修改
|
||||
---|---|---|---|---|
初級會員
|
謝謝這位大大
感謝你的提示,我試試看你的方法
發表於: 2008/2/19 20:01
|
|||
|
Re: 下列七段顯示器程式如何修改
|
||||
---|---|---|---|---|
版主
|
提示一下,0~99 的計數採用16進制的方式倒數,要顯示時須轉成10進制的值後再去7-Segment 查表後顯示0~9的數字,這是比較正確的作法。我在你的程式裡裡沒看到 Hex to BCD 的轉換?
當然你也可以先從個位數的9到0後,在將十位數的值減一;布過這種作法彈性很小就只固定這種功能而已。
發表於: 2008/2/18 9:09
|
|||
|