
Originally Posted by
Squibcakes
Guys,
Having trouble compiling UCON.3= 0
Getting a syntax error with PB2.47. Anyone else?
Squib
I had the same problem - have now bought PBP2.6 upgrade but have not tested yet but I got around this in assembler where UCON is recognised:
Code:
T0CON.7 = 0 ' Disable USBservice interrupts
' UCON.1 = 1 ' UCON not defined in PBP 2.46
@ clrf UCON ; Disable USB & detach from bus
@ clrf UIE ; Mask all USB interrupts
Peter
PS I have Timer0 running on 1 mSec interrupts - the Interrrupt handler simply doing an USBservice and returning - turned this off here also
Bookmarks