<<Previous

Next>>

TOGGLE

TOGGLE Pin

Invert the state of the specified Pin. Pin is automatically made an output. Pin may be a constant, 0 - 15, or a variable that contains a number 0 - 15 (e.g. B0) or a pin name (e.g. PORTA.0).

	Low 0		' Start Pin0 as low
	TOGGLE 0	' Change state of Pin0 to high

 

USBIN 

USBIN Endpoint, Buffer, Countvar, Label 

Get any available USB data for the Endpoint and places it in the Buffer. Buffer must be a byte array of suitable length to contain the data. Countvar will contain the number of bytes transferred to the buffer. Label will be jumped to if no data is available.

This instruction may only be used with a PICmicro MCU that has an on-chip USB port such as the PIC16C745 and PIC16C765.

The USB subdirectory contains the modified Microchip USB libraries as well as an example programs. USB programs requires several additional files to operate (which are in the USB subdirectory), some of which will require modification for your particular application. See the text file in the USB subdirectory for more information on the USB commands.

USB communications is much more complicated than synchronous (SHIFTIN and SHIFTOUT) and asynchronous (SERIN, SEROUT and so forth) communications. There is much more to know about USB operation that can possibly be described here. The USB information on the Microchip web site needs to be studied. Also, the book "USB Complete" by Jan Axelson may be helpful.

USBIN 1, buffer, cnt, idleloop 

USBINIT 

USBINIT 

USBINIT needs to be one of the first statements in a program that uses USB communications. It will initialize the USB portion of the PICmicro MCU and wait until the USB bus is configured and enabled. This instruction may only be used with a PICmicro MCU that has an on-chip USB port such as the PIC16C745 and PIC16C765.

The USB subdirectory contains the modified Microchip USB libraries as well as an example programs. USB programs requires several additional files to operate (which are in the USB subdirectory), some of which will require modification for your particular application. See the text file in the USB subdirectory for more information on the USB commands.

USB communications is much more complicated than synchronous (SHIFTIN and SHIFTOUT) and asynchronous (SERIN, SEROUT and so forth) communications. There is much more to know about USB operation that can possibly be described here. The USB information on the Microchip web site needs to be studied. Also, the book "USB Complete" by Jan Axelson may be helpful.

USBINIT

USBOUT 

USBOUT Endpoint, Buffer, Count, Label 

Take Count number of bytes from the array variable Buffer and send them to the USB Endpoint. If the USB buffer does not have room for the data because of a pending transmission, no data will be transferred and program execution will continue at Label.

This instruction may only be used with a PICmicro MCU that has an on-chip USB port such as the PIC16C745 and PIC16C765.

The USB subdirectory contains the modified Microchip USB libraries as well as an example programs. USB programs requires several additional files to operate (which are in the USB subdirectory), some of which will require modification for your particular application. See the text file in the USB subdirectory for more information on the USB commands.

USB communications is much more complicated than synchronous (SHIFTIN and SHIFTOUT) and asynchronous (SERIN, SEROUT and so forth) communications. There is much more to know about USB operation that can possibly be described here. The USB information on the Microchip web site needs to be studied. Also, the book "USB Complete" by Jan Axelson may be helpful.

USBOUT 1, buffer, 4, outloop

 

<<Previous

Next>>