diff options
author | tmk <tmk@users.noreply.github.com> | 2014-06-20 06:12:04 +0200 |
---|---|---|
committer | tmk <tmk@users.noreply.github.com> | 2014-06-20 06:12:04 +0200 |
commit | 3c446334e9ab2761af3c76855250183585b61aed (patch) | |
tree | 2d5060f74c28c54607d05fc818f5101b23eebe27 /FAQ.md | |
parent | 520ddc19a11f8b8ad0ec0740f5a4b8dab673c671 (diff) | |
download | qmk_firmware-3c446334e9ab2761af3c76855250183585b61aed.tar.gz qmk_firmware-3c446334e9ab2761af3c76855250183585b61aed.tar.xz |
Updated FAQ (markdown)
Diffstat (limited to 'FAQ.md')
-rw-r--r-- | FAQ.md | 16 |
1 files changed, 15 insertions, 1 deletions
@@ -178,4 +178,18 @@ Pressing any key during sleep should wake host. - http://arduino.cc/en/uploads/Main/arduino-leonardo-schematic_3b.pdf - http://arduino.cc/en/uploads/Main/arduino-micro-schematic.pdf -Arduino leonardo and micro have **ATMega32U4** and can be used for TMK, though Arduino bootloader may be a problem.
\ No newline at end of file +Arduino leonardo and micro have **ATMega32U4** and can be used for TMK, though Arduino bootloader may be a problem. + + +## Using PF4-7 pins of USB AVR(ATMega32U* or AT90USB*)? +You need to set JTD bit of MCUCR yourself to use PF4-7 as GPIO. Those pins are configured to serve JTAG function by default. If you are using Teensy this isn't needed. Teensy is shipped with JTAGEN fuse bit unprogrammed to disable the function. + +See this code. +``` + // JTAG disable for PORT F. write JTD bit twice within four cycles. + MCUCR |= (1<<JTD); + MCUCR |= (1<<JTD); +``` +https://github.com/tmk/tmk_keyboard/blob/master/keyboard/hbkb/matrix.c#L67 + +And read **26.5.1 MCU Control Register – MCUCR** of ATMega32U4 datasheet.
\ No newline at end of file |