Thank you Henrik! I saw the OD under output type, and wasn't putting it together for some reason.
Thank you Henrik! I saw the OD under output type, and wasn't putting it together for some reason.
Shawn
Add a pull up resistor, then it will work. Depends on what you are driving as to what value to use.
Right you are. No easy way to add that to these PCB's though...
Shawn
I am not liking this chip! Maybe I should go back to my more familiar 18F parts!![]()
New problem, I was trying to setup the capture module using timer1 and I accidentally configured timer1 to use an external osc which made me loose control of those pins as general I/O's. Problem is, now my programmer can't re-program the chip to change it. It doesn't detect the PIC. Not sure why an MCLR reset won't allow me to use the timer1 OSC pins as PGC and PGD, but it isn't working. Any ideas?
Shawn
OK, I bricked 2 of these chips now... With this code?
It works fine until I add the above into my program, then it seems portb.7 gets fried and I have to replace the chip to program again.Code:Capture VAR PIR1.2 T1CON.5=1 '1:4 prescaler T1CON.4=0 '1:4 prescaler T1CON.3=1 'Timer1 OSC enabled T1CON.2=1 'sychro clock T1CON.1=0 'internal clock T1CON.0=1 'start timer
Shawn
Hi,
Just a shot in the dark here, can it have anything to do with LVP, do you have it turned OFF in the CONFIGs?
What programmer are you using to program the chips? Once they are "bricked" can't you even erase them?
/Henrik.
LVP is off, the chip still works 100% except portb.7 (maybe portb.6 too, I don't have anything on that pin) I have an LED on portb.7, which works fine until I add the above code. The programmer is a PICFlash2. It does not recognize the chip at all, won't allow me to erase, read, write, etc... I really need to use the capture module, but I can't keep bricking these chips. Not sure how to proceed from here.
Thanks!
Shawn
Bookmarks