2018年8月19日 星期日

【單晶片】ATtiny85時脈頻率調整

ATtiny的時脈調了半天,結果才差一個動作。

It wil run @ 1 MHz if you haven't changed it (it is preprogrammed from the factory)
If you want to run 8MHz:

Select Board -> Attiny85@8MHZ
select Programmer -> Arduino as ISP
Select ->Burn bootloader, this will set the fuses but not burn any bootloader
change internal clock of attiny85
我一直以為,時脈的頻率會一起在上傳草稿碼的時候一起上傳,結果......
花了我整天的時間debug

正確做法: 

工具➡️Clock➡️XX MHz(內部時脈/外接時脈)
工具➡️燒錄bootloader

這兩個動作做完後,即可上傳草稿碼

沒有留言:

張貼留言