If the regulator is not off by default then I guess not
I hope to be someplace tonight where I can look into that.
Thanks!
If the regulator is not off by default then I guess not
I hope to be someplace tonight where I can look into that.
Thanks!
Dave
Always wear safety glasses while programming.
Like I say, once a newbie always a newbie.
Robert,
Your suggestion made me go back and look at the configs.
Here is my new set. That part that fixed it is in red. No other changes were made.
Thank you!!
Code:@ __CONFIG _CONFIG1L, _PLLDIV_1_1L & _CPUDIV_OSC1_PLL2_1L & _USBDIV_2_1L @ __CONFIG _CONFIG1H, _FOSC_HSPLL_HS_1H @ __CONFIG _CONFIG2H, _WDT_OFF_2H & _WDTPS_512_2H @ __CONFIG _CONFIG2L, _PWRT_ON_2L & _VREGEN_ON_2L @ __CONFIG _CONFIG3H, _PBADEN_OFF_3H & _MCLRE_OFF_3H @ __CONFIG _CONFIG4L, _LVP_OFF_4L & _XINST_OFF_4L
Dave
Always wear safety glasses while programming.
"No one is completely worthless. They can always serve as a bad example."
Anonymous
The problem was fixed by adding this to the configs
_XINST_OFF_4L
And I made sure the internal regulator is on to feed the internal USB pullups.
Power wise I am running the chip at 3.3 so the only thing I have connected to VUSB is the capacitor to VSS.
Now I do have some more reading to do as there is mention in the data sheet about VDD has to be higher than VUSB.
But it is working for now. Long term ????
Newbies---- IMHO Compared to two or three here we all are some newbie. But we can learn from anyone if we care to listen.
Dave
Always wear safety glasses while programming.
Well, I have a different setup. I disabled the internal regulator and fed 3.3V directly to VUSB. I assume the internal pullup resistors are enabled because my setup works fine. Otherwise, if they were disabled the USB interface wouldn't work because I believe the pullups are a requirement for USB.
I think the internal regulator function is to convert Vcc=5V to 3.3V which is necessary by the USB module. But, since you already have the 3.3V, then why the need to use the internal regulator?
I have been through that pain already. Take a look at post# 4 in the following link.
http://www.microchip.com/forums/tm.a...&high=rsocor01
Please, let me know if you find out something else about this whole thing.
Robert
"No one is completely worthless. They can always serve as a bad example."
Anonymous
Bookmarks