C:\microchip_solutions_v2013-06-15\USB\Device - HID - Keyboard
Instead of searching for the schematic of the target board, it was actually faster to just read the source code and infer the schematic. I skimmed it quickly, and replicated LED1, LED2, LED3, and LED4 at RD0, RD1, RD2, and RD3, respectively, as well as SW2 on RB4 and SW3 on RB5. There is also a potentiometer that I ignored. It turned out though that only two of the LEDs and one of the switches are used, so I could've breadboarded less had I waited and read more of the code. The potentiometer that I ignored is not used in this demo, so ignoring it was correct.
I have not changed the code at all, but running the stock code on my breadboard has convinced me that Crystal-Free USB really does work. I also now have a starting point from which to make software changes.
The circuit is bus-powered. For now, I make use of a USB connector breakout board from SparkFun (the small red board into which I plug the cable).
The demo code emits a keyboard key everytime SW3 is pressed. It sends 'a' the first time, then 'b', then 'c', etc. Here's a video... Look, Ma, No Crystals!
RSS Feed