CCAVR軟件有ISP功能,能過調用STK500完成的,只要設置好參數,在ICCAVR中就可以給芯片編程了,還可以讓程序一編譯完就自動下載到芯片中,相當方便。在Tools->environment options->ISP里設定STK500.exe的路徑?!?用于調用STK500程序。在Tools->In system programming 里Programmer Interface中選中STK500?!?選擇STK500下載方式。在Tools->In system programming 里把Auto Program After Compile 的小勾選上。— 編譯后自動編程。在Tools->In system programming 中還有一些設置項,大家可以根據需要進行相關設置。下面的圖片是操作過程。
用戶程序示例教程
The Blinky project is a simple program for the LPC2138using Keil MCB2130 Microcontroller Board.
It blinks the LEDs at speed according to the Potentiometer setting and prints the current seting to the Serial Port 1.In addition it generates a sine wave with an adjustable frequency on the speaker of the board.