Thousands of years of technological advancements, and for all our intelligence we’re unable to make a single working vending machine. At the current rate, Coke Inc.’s profits are projected to soar this quarter, with at least 76% of that being attributed to their faulty vending machines stealing my money. Bah.
Well, despite my previous entry, I went ahead and had a go at the auto-VBUS management anyway. It’s still not complete, but it does give the expected 300mS pulse on the VBUS line - although despite my best efforts I can’t seem to get it to reset for another connection attempt. Still, I’ve added in the code to allow for the host mode options to specify USB_HOST_AUTOVBUS or USB_HOST_MANUALVBUS in the initialization options. When the latter is used, the VBUS can be turned on and off via the USB_HOST_VBUS_On() and USB_HOST_VBUS_Off() macros.
Annoyingly, I’m yet to get the expected connection interrupt, when a device is inserted. Despite forcing the VBUS on, or using the automatic VBUS management, the interrupt just doesn’t occur. Apparently there’s something I’m missing — time to study the Atmel driver a little more closely around the host connection code, I think.
Recent Comments