I think you're using PBP 2.47 or older so the UCFG register is not included. Try this:Thank Rob, however, I cannot set UCFG.2=1 or FSEN=1 in my program. When I do this, I get error message
UCFG var byte EXT
UCFG.2 = 1
Cheers
Rob
I think you're using PBP 2.47 or older so the UCFG register is not included. Try this:Thank Rob, however, I cannot set UCFG.2=1 or FSEN=1 in my program. When I do this, I get error message
UCFG var byte EXT
UCFG.2 = 1
Cheers
Rob
Unless you're using descriptors you found somewhere else, you shouldn't need to mess with
UCFG. Your PBP USB template descriptor file should have this already in place.
#define UCFG_VAL _PUEN|_TRINT|_FS|MODE_PP ; Full-speed
Arguments for the define are listed in the USB18.inc include file under UCFG Initialization
Parameters.
Bookmarks