SAM4E16 USB CDC mode

Go To Last Post
3 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi.
I am new to this MCU and I cant use ASF.
I red datasheet and tried to enable usb by register writing, but in PC it apears only as Uknown device in USB section.
I need to use it as Com port for simply numbers transfer.

Could anyone help me how to do it please ?
Thanks a lot! :)
 

Atmel-ICE
Atmel Studio 7.0

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Please give more details.

USB can not be enabled just by "register writing", you must establish Interrupt Service Routines, handle requests from the host for descriptors, reports, etc.

USB is not like a UART, or SPI that can be implemented just reading/writing a few registers.

If you have implemented code for the USB, show it and then others may be able to assist...

David

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

No I dont have anything more than few enabling register lines ....

I want it this way .. when I push button (on touchscreen) there is a sub-menu where program will loop until EXIT is pressed. And in this loop, it should be USB virtual com port for transfer data :)

 

 

 

Atmel-ICE
Atmel Studio 7.0