This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

USB Communication in AT89C5131A

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!

Parents
  • Hey Tsuneo,
    Thank you for the informative reply. Unfortunately, I'm running the evaluation version of Keil uVision 4 and I'm getting a code size limit when I try to edit and compile the USB CDC project by Atmel. What's the best workaround here?
    Is there some other compiler (like SDCC) which will work here?

    Thanks,
    Kalpesh Krishna

Reply
  • Hey Tsuneo,
    Thank you for the informative reply. Unfortunately, I'm running the evaluation version of Keil uVision 4 and I'm getting a code size limit when I try to edit and compile the USB CDC project by Atmel. What's the best workaround here?
    Is there some other compiler (like SDCC) which will work here?

    Thanks,
    Kalpesh Krishna

Children
No data