Stock AT90USBKey Demo Board
This is a stock AT90USBKey demo board without any modifications. This seriously limits the number of free I/O pins available. See the section, Reclaiming Pins, for information on how to recover some pins.
Properties
Name
The name of the USB HID device that will appear when listed by the host computer.
UsagePage/Usage
The UsagePage and Usage of the Device. See Usages for more information.
Be careful when setting this parameter. The default setting of Generic Desktop Controls:Multi-axis Controller is fine and should not need changing. Setting it to a Mouse or Pointer device may confuse the operating system and the device will not operate as expected. Set it to Generic Desktop Controls:Joystick to make it appear as a game controller.
Voltage
Is the microcontroller 5v or 3.3v? See Hardware Design Decisions for more information.
Power-Source
Is the USB device powered via the USB Bus or does it use an external supply. See Hardware Design Decisions for more information.
Interval
The interval, in milliseconds, at which the PC polls the HID device for updates. The smaller the number, the faster the updates and more responsive the device is, at the cost of more CPU power.
Serial-Debug
Pins PD2/PD3 can be used as RXD/TXD pins for RS232 TTL Serial debug output (38400, 8, none, 1). Setting the value above zero enables debugging. The higher the number the more debug (max 100).
HID-Debug
Enable debugging via the HID interface. This isn't implemented yet.
Current
The current usage of the microcontroller. Used to estimate the USB power draw. In milliamps (mA)
Use Status LEDs
Use the default AT90USBKey LEDs as indicators of the USB status. There are 2 tri-colour LEDs, LED1, LED2 on ports PD4/PD5, PD6/PD7. These can be used show the status of the USB connection...
Orange | Startup |
Red | Establishing Connection |
Green | Connected and Ready |
This settings works in combination with Use LEDs. Any spare LEDs are used as the indicator.
Use LEDs
Use the stock AT90USBKey LEDs as device output LEDs. The LED will automatically appear as an output with 4 values -
0 | off |
1 | green |
2 | orange |
3 | red |
Use Status LEDs must be set to LED1, LED2, or None.
Use Voltage Monitor
Use the stock AT90USBKey Voltage Monitor as an analog input. The device's voltage will appear as an 8-bit analog input (values from 0-255). The default setting will show about 100, 3.3v. This value won't change.
Use Temperature Sensor
Use the stock AT90USBKey Temperature Sensor as an analog input. The negative temperature coefficient thermistor, R29, will appear as an 8-bit analog input (values from 0-255). As the temperature rises, the value will go down. You can test this by placing a finger on it and watching the output go down (or up if it is already hot).
Use Joystick
Enabling this option will make the on board "joystick" appear as a hat switch and button in the USB HID Device.
Use HWB
Enabling this option will make the HWB button appear as a input button on the USB HID Device.
SerialNo
A unique serial number of the device.
Timer1
Timer1 configuration. The Generic HID device PWM outputs use shared timer resources. Three outputs, PB5(OC1A), PB6(OC1B), PB7(OC1C) are derived from Timer 1. If a PWM output is placed on one of these pins, they will all share the same base frequency and resolution. See Timers for more information.
Timer2
Timer2 configuration. The Generic HID device PWM outputs use shared timer resources. Two outputs, PB4(OC2A), and PD1(OC2B) are derived from Timer 2. If a PWM output is placed on one of these pins, they will all share the same base frequency and resolution. See Timers for more information.
Timer3
Timer3 configuration. The Generic HID device PWM outputs use shared timer resources. Three outputs, PC6(OC3A), PC5(OC3B), and PC4(OC3C) are derived from Timer 3. If a PWM output is placed on one of these pins, they will all share the same base frequency and resolution. See Timers for more information.