Discussion in "AVR Discussion Forum" started by    Nestor_avr    Aug 18, 2013.
Sun Aug 18 2013, 10:40 pm
#1
Where can I find a USB keyboard code to use in atmega8
Thu Aug 22 2013, 11:50 am
#2
You cannot connect a USB keyboard as it requires a USB host controller on the other side. Atmega8 (probably be using V-USB) can only work as a USB device not as a host. Try to find an AVR with onchip USB host controller.
Thu Aug 22 2013, 04:38 pm
#3
I found a project, recorded the HEX and it worked but i can not compile the source seems to be missing some file, I need to do to compile?
Sun Aug 25 2013, 05:13 pm
#4
this code is for using Atmega8 as a USB keyboard. i.e. when you connect your board to PC, it will detect as a HID keyboard device. You can get complete files from V-USB website:
http://www.obdev.at/products/vusb/prjhid.html

if you find any missing files just download V-USB stack files. let me know if you face any issue.
Sun Aug 25 2013, 06:13 pm
#5
This was even though I downloaded more does not compile: http://www.obdev.at/products/vusb/hidkeys.html
I found other more and gives another error at compile time: Watchdog prescaler value not available. contact avratmel.com


Attachment
Sun Aug 25 2013, 06:50 pm
#6
which line is it giving error? and which compiler are you using?
Sun Aug 25 2013, 08:24 pm
#7
No shows which line is the error, I'm using AVRStudio 4.19.
Build and run everything is normal


when I compile it gives this error:


EDIT:
The project is for more ATmega8 is opening the xml ATMEGA48, I made the change file by file Atmega48.xml ATmega8 and gave no error but not generated the file .HEX



[ Edited Mon Aug 26 2013, 03:51 pm ]
Mon Aug 26 2013, 05:37 pm
#8
did you include all the source files? and this source is written for Atmega8 I think. I am not sure if it will work straight forward for ATmega48.
Mon Aug 26 2013, 06:25 pm
#9


I am not sure if it will work straight forward for ATmega48.

Ajay Bhargav



I want to atmega8 and not build on. HEX, you know how to compile this source?
Tue Aug 27 2013, 06:39 pm
#10
I do not see any error in the build. Its built successfully. The error you're looking at is from simulator which is not related to compiler. Just ignore it. and try to flash the generated hex file in controller.

Get Social

Information

Powered by e107 Forum System

Downloads

Comments

Bobbyerilar
Thu Mar 28 2024, 08:08 am
pb58
Thu Mar 28 2024, 05:54 am
Clarazkafup
Thu Mar 28 2024, 02:24 am
Walterkic
Thu Mar 28 2024, 01:19 am
Davidusawn
Wed Mar 27 2024, 08:30 pm
Richardsop
Tue Mar 26 2024, 10:33 pm
Stevencog
Tue Mar 26 2024, 04:26 pm
Bernardwarge
Tue Mar 26 2024, 11:15 am