View previous topic :: View next topic |
Author |
Message |
virkom_ Guest
|
With normal power on the PIC doesn´t work |
Posted: Fri Feb 15, 2008 12:24 pm |
|
|
Hi everybody...
I am an spanish student and I have the next problem.
I am using PIC18F2680
When I program PIC in debug mode and run, it works properly, but when I program it in normal mode, the PIC doesn´t run. But if I push reset, the PIC begins to run properly, so I don´t understand...
I´ve tried to put the fuse PUT, and anothers fuses but I can´t solve this problem...
If you can help me, i will be so grateful to you...
Thanks a lot...
PD: Sorry if my english wasn´t so good... |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Fri Feb 15, 2008 2:42 pm |
|
|
What is the Vdd voltage on your PIC board ? Is it +3.3v or +5v ? |
|
|
virkom_ Guest
|
|
Posted: Sat Feb 16, 2008 3:01 am |
|
|
It´s going with 5V... |
|
|
virkom
Joined: 11 Jul 2007 Posts: 2
|
|
Posted: Sat Feb 16, 2008 3:07 am |
|
|
The program header is:
#include<18f2680.h>
#device ADC=16
#fuses NOWDT,NOPROTECT,NOLVP,PUT,EC_IO,NOPBADEN
#use delay(clock=20000000)
/***********************************************************************************************/
//PINES:
#define SCL_ pin_c3 //PINES DE I2C
#define SDA_ pin_c4
#use I2C(master,sda=SDA_,scl=SCL_,FAST=200000)
/***********************************************************************************************/
#define ON_PLACA_P2_P3_P4 pin_b5 //PIN DE INHABILITACION
#define SLEEP_ZB pin_a4 // SLEEP DEL ZIGBEE |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Sat Feb 16, 2008 11:22 am |
|
|
1. Did you make the PIC board yourself, or did you buy it ?
If you bought the board, post the company name and the board's name
or part number. Post a link to the web page for the board.
2. What programmer and debugger are you using ?
Is it the Microchip ICD2 or the CCS ICD-U40 ?
3. What IDE are you using ? CCS PCWH or Microchip MPLAB ?
4. What is your compiler version ? |
|
|
|