having problem on pic 16f690 and UIC00B

Discussion about projects that used PIC Microcontroller, Hardware Interface, Programming Algorithm and etc......

having problem on pic 16f690 and UIC00B

Postby rexwong0211 » Thu Feb 14, 2013 5:06 pm

Problem:
Found PICkit 2 - Operating System Version 2.32.0
PICkit 2 Unit ID = UIC00B V1.0
Target power not detected - Powering from PICkit 2 ( 5.00V)
PK2Error0024: PICkit 2 was unable to establish a valid Vdd on the target (Attempted 5.00V - Read 0.00V)
PICkit 2 Ready

Code:
CODE: SELECT_ALL_CODE
#include<pic.h>
#define _XTAL_FREQ 4000000

#define uchar unsigned char
__CONFIG(0xFF32);



void main(void)
{
   ANSEL = 0x00;      
   TRISC = 0x00;      
   
   while(1)
   {
      PORTC ^= 0x01;
      __delay_ms(500);         
   }
}

Method:
1. ICSP using UIC00B
2. MPLab 8.66
3. PICKit 2 v2.40
4. Universal Toolsuite v9.81
5. 5.21V pwr supply


THZ IN ADVANCE
rexwong0211
Newbie
 
Posts: 8
Joined: Sat Dec 29, 2012 2:10 am

Re: having problem on pic 16f690 and UIC00B

Postby Idris » Fri Feb 15, 2013 10:33 am

Do you create your own circuit on stripboard? If yes maybe you need to connect 5V to UIC00B - VDD.
Cytron Technologies invest time and resources providing tutorial, training and support for STEM education and maker movement. We need your support by purchasing products from Cytron Technologies. Thanks.
http://www.cytron.com.my
User avatar
Idris
Moderator
 
Posts: 409
Joined: Thu Mar 22, 2012 5:28 pm
Location: Pulau Pinang

Re: having problem on pic 16f690 and UIC00B

Postby rexwong0211 » Sun Feb 17, 2013 11:28 pm

Sry for taking so long to reply
i been asking my fren about this, i juz solved it.
the problem was the pins connection from uic00b cable, it was confusing n i mess it up
another problem i thk was the coding, i modified workable coding to test
i hav to test all components 1 by 1 to solve.

yes, i connect using breadboard.
Thr is 1 thg i still not sure, i didnt connect Vdd from uic00b but it still work.
so, wat the usage of the Vdd pin ???
From datasheet it is optional.
i giving 5V, 3 Amp to the circuit, it is current too high ????
#define _XTAL_FREQ 4000000 - this line is for internal crystal ?????
rexwong0211
Newbie
 
Posts: 8
Joined: Sat Dec 29, 2012 2:10 am

Re: having problem on pic 16f690 and UIC00B

Postby yonghui » Mon Feb 18, 2013 11:06 am

the current is depending on the voltage, so if u keep your voltage to 5V then it is safe.
the #define _XTAL_FREQ 4000000
is your definition of a constant that you will use. you can remove it if u dont use it.
in hi-tech C compiler the delay routine will use this constant.
for crystal setting, you can set it at configuration bits.


regards,
yh
thanks&regards,
yh
yonghui
Professional
 
Posts: 732
Joined: Mon Sep 28, 2009 3:27 pm

Re: having problem on pic 16f690 and UIC00B

Postby rexwong0211 » Mon Feb 18, 2013 8:20 pm

Thz for the reply !!
- i using adapter constantly giving 5V, 3 amp; is this really ok w/o resistor ?
- i heard that 16f690 has internal crystal so does that mean external is not necessary (using 4Mhz) ?
- What is the usage of UIC00B - Vdd pins (circuit work even w/o it) ?
rexwong0211
Newbie
 
Posts: 8
Joined: Sat Dec 29, 2012 2:10 am

Re: having problem on pic 16f690 and UIC00B

Postby robosang » Mon Feb 18, 2013 8:50 pm

The Vdd of UIC00B is optional, if your circuit is not powered by itself, you can use the Vdd from UIC. Since you have the power, so have or don't have it will still work.
robosang
Expert
 
Posts: 1239
Joined: Wed Jun 10, 2009 5:37 pm

Re: having problem on pic 16f690 and UIC00B

Postby rexwong0211 » Tue Feb 19, 2013 3:08 pm

like
rexwong0211
Newbie
 
Posts: 8
Joined: Sat Dec 29, 2012 2:10 am


Return to PIC Microcontroller

Who is online

Users browsing this forum: No registered users and 2 guests

cron