Hello, I have been trying to perform USB communication between my AT89C5131A chip and pyUSB, to transmit some data to the microcontroller. I haven't been able to find any library which will help me achieve this and as a result I've been trying to understand the USB configuration mentioned in http://www.keil.com/dd/docs/datashts/atmel/at89c5131_ds.pdf.
On running the command dev.set_configuration(), I receive an error and I suppose this indicates a mistake in my configuration till that point.
My hardware bootloader however successfully runs with the dfu-programmer.
I've set the clock frequency correctly and enabled USBEN and FEN as mentioned.
1. Where am I going wrong? 2. Are there any good libraries for doing USB communication with AT89C5131A? 3. Should I switch to an AVR uC instead and use the LUFA library?
Thank you!
Dear Tsuneo, We were successfully able to transfer data to and from the microncontroller using pyserial. I think this code will be a great starting point for our application. Thanks for all the help!