Changing Automator for ATtiny45
Posted: Sun Jun 03, 2007 4:09 pm
Hi Everyone
My purpose is only detecting HID device in windows and read and write EEPROM.I want to use ATtiny45.
For this reason i start to remove some functionality of Automator to recduce hex file to be suitable for ATtiny45.
I remove following functions:
setOutput
getInput
getOutput
getStopkey
beep
UTIL_INTERRUPT
toggleLed
setLed
setRelayEnable
Also i comment " if ( TIFR & ... until pollAdc() " in the main() and change USB_CFG_IOPORTNAME to B because ATtiny45 has not PortD.
Also i change atmega8 to attiny45 in MakeFile.
With above changes it works still properly for Atmega8 and i can read and write EEPROM from a simple VC application but for ATtiny45 it does not recognize by windows as a HID device! I test some fuse bits also but problem still remain.
Has anyone any idea to solve this problem?
Regards
My purpose is only detecting HID device in windows and read and write EEPROM.I want to use ATtiny45.
For this reason i start to remove some functionality of Automator to recduce hex file to be suitable for ATtiny45.
I remove following functions:
setOutput
getInput
getOutput
getStopkey
beep
UTIL_INTERRUPT
toggleLed
setLed
setRelayEnable
Also i comment " if ( TIFR & ... until pollAdc() " in the main() and change USB_CFG_IOPORTNAME to B because ATtiny45 has not PortD.
Also i change atmega8 to attiny45 in MakeFile.
With above changes it works still properly for Atmega8 and i can read and write EEPROM from a simple VC application but for ATtiny45 it does not recognize by windows as a HID device! I test some fuse bits also but problem still remain.
Has anyone any idea to solve this problem?
Regards