Usbcdc + en_timer32_1

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by Andre Schoeman on Tue Mar 29 20:16:19 MST 2011

[COLOR=#000000]I have read that the USB ROM code uses a 32 timer as part of it's HID implementation.[/COLOR]
[COLOR=#000000]I am using the USBCDC example.[/COLOR]

[COLOR=#000000]I see in the start-up code before main,[/COLOR]

[COLOR=#000000][FONT=Courier New, monospace][SIZE=2]/* Enable Timer32_1, IOCON, and USB blocks */[/SIZE][/FONT][/COLOR]

[COLOR=#000000][FONT=Courier New, monospace][SIZE=2]USBIOClkConfig();[/SIZE][/FONT][/COLOR]

[COLOR=#000000][FONT=Courier New, monospace][SIZE=2]VCOM_Init(); // VCOM [U]Initialization[/U][/SIZE][/FONT][/COLOR]
[COLOR=#000000][FONT=Courier New, monospace][SIZE=2]USB_Init(); // USB [U]Initialization[/U][/SIZE][/FONT][/COLOR]
[COLOR=#000000][FONT=Courier New, monospace][SIZE=2]USB_Connect(TRUE); // USB Connect[/SIZE][/FONT][/COLOR]

[COLOR=#000000][FONT=Courier New, monospace][SIZE=2]while (!USB_Configuration); // wait until USB is configured[/SIZE][/FONT][/COLOR]

[COLOR=#000000]As far as I can see the example does not use this timer.[/COLOR]

[COLOR=#000000]In my code I have removed EN_TIMER32_1 without any apparent problems.[/COLOR]

[COLOR=#000000]Can somebody please confirm that this is in fact correct and that I have not disabled some underlying functionality.[/COLOR]

[COLOR=#000000]Andre [/COLOR]