Positron Compiler Documentation

USBinit

Positron8 · Revision 4.0.6.5 · PDF page 196

USBinit

Initialise the USB peripheral and wait until the USB bus is configured and enabled.

Notes. USBinit is optional within the BASIC program itself. If it is not used in the program, the compiler will initialise the USB peripheral itself before the program starts.

If the device contains the OSCTUNE register, it will set bit PLLEN and enable the x4 PLL.

The benefit of adding USBinit within the BASIC program is that you will have the opportunity to set or clear this bit as required.

See also : USBout, USBin, USBpoll, Config_Start…Config_End.

View original PDF page 196Open page in PDFOriginal PDF page 196