⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 isp.h

📁 共享软件PROGISP(Ver1.4+) 2006/1/14 支持编程器类型 1,多种并口(可以自定义)编程器(并口串行) 2,USBPROG编程器(usb串行) 3,并口并行编程器 4
💻 H
字号:
/*  isp.h - part of USBasp  Autor..........: Thomas Fischl <tfischl@gmx.de>   Description....: Provides functions for communication/programming                   over ISP interface  Licence........: Free under certain conditions. See Documentation.  Creation Date..: 2005-02-23  Last change....: 2005-04-20*/#ifndef __isp_h_included__#define	__isp_h_included__#ifndef uchar#define	uchar	unsigned char#endif#define	ISP_OUT   PORTB#define ISP_IN    PINB#define ISP_DDR   DDRB#define ISP_RST   PB2#define ISP_MOSI  PB3#define ISP_MISO  PB4#define ISP_SCK   PB5#define ISP_DELAY 1#define ISP_SCK_SLOW 0#define ISP_SCK_FAST 1#define ISP_FAST     2#define ISP_SLOW     3/* Prepare connection to target device */void ispConnect();/* Close connection to target device */void ispDisconnect();/* read an write a byte from isp using software (slow) */uchar ispTransmit_sw(uchar send_byte);/* read an write a byte from isp using hardware (fast) */uchar ispTransmit_hw(uchar send_byte);/* enter programming mode */uchar ispEnterProgrammingMode();/* read byte from eeprom at given address */uchar ispReadEEPROM(unsigned int address);/* write byte to flash at given address */uchar ispWriteFlash(unsigned int address, uchar data, uchar pollmode);uchar ispFlushPage(unsigned int address, uchar pollvalue);/* read byte from flash at given address */uchar ispReadFlash(unsigned int address);/* write byte to eeprom at given address */uchar ispWriteEEPROM(unsigned int address, uchar data);/* pointer to sw or hw transmit function */uchar (*ispTransmit)(uchar);/* set SCK speed. call before ispConnect! */void ispSetSCKOption(uchar sckoption);#endif /* __isp_h_included__ */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -