ATMEL AVR ATmega8515 PDIP 40 pin 腳位和 AT89S52 相同 pin to pin
您是使用何種 C compiler ? 建議可以使用 CodeVisionAVR 內建豐富的
hardware function library,比如:standard C input/output function
mathematical function , string function , BCD conversion function ,
memory access function , delay function , LCD module function ,
I2C bus function , SPI function , Gray code conversion function ,
1 wire protocol function , DALLAS DS1302 real time clock function ,
DS1820/DS1822 temperature sensor function , power management
function ... 等等 API 可以讓您省去寫底層的驅動程式 ,還有 CodeWizardAVR
精靈幫您架構程式外殼 ,不用查找 datasheet , 可以很簡單設定複雜的 64 個
I/O register , 只要輕鬆鈎選您所想要的功能即可 ,包括 timer interrupt ADC
analog comparator 都可以輕鬆搞定 , 還有支援 bit data type 。