How do these flags in DT_HID260.pbp:
Code:
USB_Flags          VAR BYTE BANK0

Plugged            VAR USB_Flags.0 
RX_Rcvd            VAR USB_Flags.1
RX_READY           VAR USB_Flags.2
TX_READY           VAR USB_Flags.3
RX_ERROR           VAR USB_Flags.4
TX_ERROR           VAR USB_Flags.5
"Connect" with these pins in our programs:
Code:
DEFINE USB_PLUGGED     PORTD,1      ; LED indicates if USB is connected
DEFINE USB_RXrcv       PORTD,2      ;  "      "     data received from PC
DEFINE USB_RXrdy       PORTD,3      ;  "      "     data being received from PC
DEFINE USB_TXrdy       PORTD,4      ;  "      "     data being sent to PC
DEFINE USB_RXerr       PORTD,5      ;  "      "     data error from PC
DEFINE USB_TXerr       PORTD,6      ;  "      "     data error to PC
I looked at the datasheet and can't figure out how Port D links up with Bank 0. I'm also puzzled by the syntax PORTD,2.

Robert