The Philippine Electronics and Technology Forum
February 09, 2012, 11:34:40 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   Home   Help Search Login Register  

Pages: [1] 2 3   Go Down
  Print  
Author Topic: PROBLEM WITH MY PIC DEVELOPMENT BOARD  (Read 1659 times)
X4ROY
CR2032 Battery
**

Pogi/Ganda Points: 0
Offline Offline

Posts: 13


« on: June 05, 2010, 02:51:07 AM »

i have purchased a locally made programmer and development board separately .
The programmer seems to be working as i uploaded the hex file generated from MPLAB IDE into the PIC using Micropro . it wrote " program sucessfully completed " then i read from the chip and checked it it was programmed .
the program was to blink two LEDS connected to ports RB2 and RB3 .

PROBLEM : i put the Programmed Pic into the development board then connected the +ve of the led to ports rb2 and rb3 separately for the two LEDS . next the common -ve terminal of the Leds were connected to the ground terminal , well in my development board i cant see the terminals of mclr , gnd , vcc , vdd , vss all i see is a bunch of input outports of A , B , C ,D and at the position near the power supply there are three pins reading 12V , 5V , GND now considering this pin to be ground i have connected the common negative terminal of LED to it . POWERED IT UP and nothing happens . my development board did not come with any manual so i have no clue please help ... im a beginner


 Huh
Logged
The Philippine Electronics and Technology Forum
« on: June 05, 2010, 02:51:07 AM »

 Logged
nucleus
Gas Turbine
**

Pogi/Ganda Points: 113
Offline Offline

Gender: Male
Posts: 2339



« Reply #1 on: June 05, 2010, 03:49:41 AM »

where did you bought your dev board? any marks names on the dev board?
Logged

Hi! I'm nucleus and i carry the charge Cool

Hindi ako nandito para makipagkumpitensya kanino man
X4ROY
CR2032 Battery
**

Pogi/Ganda Points: 0
Offline Offline

Posts: 13


« Reply #2 on: June 05, 2010, 04:15:06 AM »

THE DEV BOARD IS MANUFACTURED BY AN INDIAN COMPANY CALLED HPS THEIR WEBSITE IS www.hpsindia.com  and they are bad at after sale services they too have no clue .... well its tested and others say it works i dunno ... . this dev board has no separate pins for mclr , vss , vdd , gnd i see three sets of three pins near the ac/ dc power supply they are marked as 12 , 5 and gnd i connected the -ve terminal of the led to this gnd and the positive terminal to rb2 no response supply is on and no loose connections
Logged
tiktak
Gas Turbine
**

Pogi/Ganda Points: 171
Offline Offline

Gender: Male
Posts: 2498



WWW
« Reply #3 on: June 05, 2010, 07:41:40 AM »

malware detected sa site ng hpsindia reported by avast. Try to check first if working ang development board by manual input to the LEDs with the current setup. if working try to check if the fuses are set correctly
Logged

Bakit andaming hindi marunong gumamit ng search?Huh
X4ROY
CR2032 Battery
**

Pogi/Ganda Points: 0
Offline Offline

Posts: 13


« Reply #4 on: June 05, 2010, 05:45:40 PM »

what do you mean by if fuses are set correctly i have no clue ... see if i connect the led to the 12v and 0v pins then it glows meaning the board is powered up also the pic got a bit hot so it had power in it ..... but fuses i hv no clue i hv seen an option called fuses in the pic pro software used to program the hex file into pic
Logged
Co0LėT♥
Hydroelectric
***

Pogi/Ganda Points: 362
Offline Offline

Gender: Female
Posts: 3330



« Reply #5 on: June 05, 2010, 05:50:55 PM »

what do you mean by if fuses are set correctly i have no clue ... see if i connect the led to the 12v and 0v pins then it glows meaning the board is powered up also the pic got a bit hot so it had power in it ..... but fuses i hv no clue i hv seen an option called fuses in the pic pro software used to program the hex file into pic
something wrong with the set-up. hindi dapat umiinit ang pic. Wink

Fuses means the pic configuration.
Config_Start
    OSC = HS         ' Oscillator Selection HS
    OSCS = OFF       ' Osc. Switch Enable Disabled
    PWRT = On        ' Power-up Timer Enabled
    BOR = On        ' Brown-out Reset Disabled
    BORV = 25        ' Brown-out Voltage 2.5V
    WDT = OFF        ' Watchdog Timer Disabled
    WDTPS = 128      ' Watchdog Postscaler 1:128
    CCP2MUX = On     ' CCP2 MUX Enable (RC1)
    STVR = OFF       ' Stack Overflow Reset Disabled
    LVP = OFF        ' Low Voltage ICSP Disabled
    Debug = OFF      ' Background Debugger Enable Disabled
    CP0 = OFF        ' Code Protection Block 0 Disabled
    CP1 = OFF        ' Code Protection Block 1 Disabled
    CP2 = OFF        ' Code Protection Block 2 Disabled
    CP3 = OFF        ' Code Protection Block 3 Disabled
    CPB = OFF        ' Boot Block Code Protection Disabled
    CPD = OFF        ' Data EEPROM Code Protection Disabled
    WRT0 = OFF       ' Write Protection Block 0 Disabled
    WRT1 = OFF       ' Write Protection Block 1Disabled
    WRT2 = OFF       ' Write Protection Block 2 Disabled
    WRT3 = OFF       ' Write Protection Block 3 Disabled
    WRTB = OFF       ' Boot Block Write Protection Disabled
    WRTC = OFF       ' Configuration Register Write Protection Disabled
    WRTD = OFF       ' Data EEPROM Write Protection Disabled
    EBTR0 = OFF      ' Table Read Protection Block 0 Disabled
    EBTR1 = OFF      ' Table Read Protection Block 1 Disabled
    EBTR2 = OFF      ' Table Read Protection Block 2 Disabled
    EBTR3 = OFF      ' Table Read Protection Block 3 Disabled
    EBTRB = OFF      ' Boot Block Table Read Protection Disabled
    Config_End
Logged

Simpler designs are usually better.
Kaizer03
Nuclear Reactor
****

Pogi/Ganda Points: 217
Offline Offline

Posts: 4516


C#<-->Android<-->Java


WWW
« Reply #6 on: June 05, 2010, 05:52:22 PM »

may i know what pic MCU that you are working on? the fuses that tiktak said is the configuration word of the PIC =)
Logged

Lend a hand for those who are in need!=)

Stop Hijacking!=) More Technical Posts!=)
DataSheets are enough to answer your questions! Wink

Kaizer Killer EX Pre-Alpha
X4ROY
CR2032 Battery
**

Pogi/Ganda Points: 0
Offline Offline

Posts: 13


« Reply #7 on: June 05, 2010, 05:56:31 PM »

im working with pic16877a ... a locally made programmer i use pic pro to upload the hex file and a locally made dev board
Logged
X4ROY
CR2032 Battery
**

Pogi/Ganda Points: 0
Offline Offline

Posts: 13


« Reply #8 on: June 05, 2010, 05:59:24 PM »

guys i wrote  a code to set rb2 at high then i connect the +ve of led to rb2 and then the -ve of led to a resistor then free end of resistor to a point marked gnd near the power supply ... the led does not glow ....
Logged
Co0LėT♥
Hydroelectric
***

Pogi/Ganda Points: 362
Offline Offline

Gender: Female
Posts: 3330



« Reply #9 on: June 05, 2010, 06:02:29 PM »

post the code please  Wink
Logged

Simpler designs are usually better.
tiktak
Gas Turbine
**

Pogi/Ganda Points: 171
Offline Offline

Gender: Male
Posts: 2498



WWW
« Reply #10 on: June 05, 2010, 06:04:33 PM »

the PIC should not get hot, can you post a picture of your board so we can see and help you identify the problem more easily and the code as master coolet said
Logged

Bakit andaming hindi marunong gumamit ng search?Huh
X4ROY
CR2032 Battery
**

Pogi/Ganda Points: 0
Offline Offline

Posts: 13


« Reply #11 on: June 05, 2010, 06:15:41 PM »

http://www.edaboard.com/ftopic396333.html    .............. i am new to this site i am unable to post it here but i have posted everything in this link please help
Logged
Co0LėT♥
Hydroelectric
***

Pogi/Ganda Points: 362
Offline Offline

Gender: Female
Posts: 3330



« Reply #12 on: June 05, 2010, 06:17:18 PM »

it says...

Sorry, but you need login in to view this attachment Cheesy
Logged

Simpler designs are usually better.
X4ROY
CR2032 Battery
**

Pogi/Ganda Points: 0
Offline Offline

Posts: 13


« Reply #13 on: June 05, 2010, 06:18:46 PM »

okey here is my login and password
X4ROY(LOGIN)
royrules(password)
Logged
X4ROY
CR2032 Battery
**

Pogi/Ganda Points: 0
Offline Offline

Posts: 13


« Reply #14 on: June 05, 2010, 06:19:57 PM »

@tiktak and colet thanks a lot for helping .... im stuck up wid dis for like 1 week Cheesy
Logged
tiktak
Gas Turbine
**

Pogi/Ganda Points: 171
Offline Offline

Gender: Male
Posts: 2498



WWW
« Reply #15 on: June 05, 2010, 06:23:05 PM »

heres the code
Code:
#include<htc.h>
_CONFIG(0x3F3A);
#define LED1  RB2
#define LED2  RB3

void blink1(unsigned char n);
void blink2(unsigned char n);

void main(void)
{
TRISB2=0;
TRISB3=0;

while(1)
{
blink1(3);
blink2(3);

}
}

void blink1(unsigned char n)
{
for(n+=1;n>0;n-=1)
{
LED1=1;
for(unsigned int i=20000;i+=1);
LED1=0;
for(unsigned int i=20000;i+=1);
}
}

void blink2(unsigned char n)
{
for(n+=1;n>0;n-=1)
{
LED21;
for(unsigned int i=20000;i+=1);
LED20;
for(unsigned int i=20000;i+=1);
}
}
Logged

Bakit andaming hindi marunong gumamit ng search?Huh
Kaizer03
Nuclear Reactor
****

Pogi/Ganda Points: 217
Offline Offline

Posts: 4516


C#<-->Android<-->Java


WWW
« Reply #16 on: June 05, 2010, 06:24:00 PM »

@TS, are you using Assembly to program your PIC?

you may also consider to turn off the LVP in the configuration word settings=)


ok someone, please reupload his attachments?

hehe =)
Logged

Lend a hand for those who are in need!=)

Stop Hijacking!=) More Technical Posts!=)
DataSheets are enough to answer your questions! Wink

Kaizer Killer EX Pre-Alpha
tiktak
Gas Turbine
**

Pogi/Ganda Points: 171
Offline Offline

Gender: Male
Posts: 2498



WWW
« Reply #17 on: June 05, 2010, 06:25:17 PM »

and the pics for convenience Cheesy

Logged

Bakit andaming hindi marunong gumamit ng search?Huh
tiktak
Gas Turbine
**

Pogi/Ganda Points: 171
Offline Offline

Gender: Male
Posts: 2498



WWW
« Reply #18 on: June 05, 2010, 06:28:44 PM »

@roy

  you should use 5V all around the circuit and try this if it would work

Code:
#include<pic.h>
#include <htc.h>
//#ifndef _XTAL_FREQ
 //#define _XTAL_FREQ 16000000  //di pala pede ito
//#endif

__CONFIG(HS & LVPDIS & UNPROTECT & WDTDIS);

void delay (void)
{
 unsigned int i,j;
 for(i=0; i<0xFF; i++)
  for(j=0; j<0xFF; j++);
}
void main ()
{
 TRISB = 0x00;
 PORTB = 0x00;

  while(1)
   {
     PORTB ^= 0xFF;
    delay();
   }
}
that should blink all LED connected to PORTB
Logged

Bakit andaming hindi marunong gumamit ng search?Huh
Co0LėT♥
Hydroelectric
***

Pogi/Ganda Points: 362
Offline Offline

Gender: Female
Posts: 3330



« Reply #19 on: June 05, 2010, 06:30:50 PM »

ayon... at last meron ng pagbabasihan ang mga master  Grin Grin Grin

16Mhz pala ang Crystal nya Cheesy
Logged

Simpler designs are usually better.
The Philippine Electronics and Technology Forum
   

 Logged
Pages: [1] 2 3   Go Up
  Print  
 
Jump to:  


Related Topics
Subject Started by Replies Views Last post
PIC microcontroller development board « 1 2 »
PIC Microcontrollers
Ugin 39 5325 Last post April 08, 2008, 05:02:39 PM
by gentleman
[im]Duino - MCU development board based on Arduino - FAQs and Tutorial « 1 2 ... 6 7 »
Microcontroller/Microprocessor Unit Projects and Programming
beginner wan 126 17084 Last post January 13, 2012, 03:19:40 PM
by glutnix_neo
Simple development board for 40 pin PICmicro « 1 2 3 4 »
PIC Microcontrollers
marcelino 66 5164 Last post November 03, 2011, 10:16:05 AM
by dummy_c
PIC16F877A Trainer/Development Board
Items For Sale
alyas 4 405 Last post October 10, 2010, 07:20:42 AM
by Pro-Engineer
PIC16F877A GSM SMS Development Board « 1 2 »
PIC Microcontrollers
alyas 20 574 Last post July 27, 2011, 09:59:41 PM
by Supremo Mayor Kuya Johnaray
patulong po pag gawa ng development board
Microcontroller/Microprocessor Unit Projects and Programming
dextung 19 527 Last post September 13, 2011, 10:38:11 AM
by dextung
For Sale EasyPIC 6 Development Board MikroElektronica
Items For Sale
thorwynn 10 250 Last post January 23, 2012, 09:16:17 PM
by e-tronix
Powered by MySQL Powered by PHP Powered by SMF 1.1.15 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!