// This program accesses a SPI EEPROM using polled Mode access. The F06x MCU
// is configured in 4-wire Single Master Mode, and the EEPROM is the only
// slave device connected to the SPI bus. The read/write operations are
// tailored to access a Microchip 4 kB EEPROM 25LC320. The relevant hardware
// connections of the F06x MCU are shown here:
KmdTut是一份以Win32匯編語言來開發(fā)Kernel Mode驅動程序的教程,讀者可以從http://www.freewebs.com/four-f/下載最新的英文版本,為了使用本教程,你還需要下載Kernel Mode驅動程序開發(fā)包KmdKit,更多信息請參考http://www.wasm.ru/(很不幸,是俄文的,倒ing~~~)
0.2 關于KmdKit
KmdKit的全稱是Kernel Mode Driver development Kit for assembly language programmers,即內核模式驅動程序匯編開發(fā)包,KmdKit中包括了用宏匯編編譯器開發(fā)驅動程序需要用到的所有東西。
你可以從http://www.wasm.ru/或者http://www.freewebs.com/four-f/下載到最新版本的KmdKit。
AVR306串口程序例子----查詢模式
Application Note AVR306
* Polled Mode driver for UART, this is the similar to the
* library default putchar() and getchar() in ICCAVR
This will sample all 8 A/D-channels by the continous Mode.
Each end of conversion will call an interrupt routine,
where the AD-channel is put to Port4[2..0]
and the upper nibble of the result is put to Port4[7..4].
Port 4 is connected to the user LEDs of the FlashCan100P Evaluation-Board
This example provides a description of how to set a communication with the bxCAN
in loopback Mode:
- transmit and receive a standard data frame by polling at 100Kbit/S
- transmit and receive an extended data frame with interrupt at 500Kbit/S
- lit some LEDs depending of the program succeed or not