CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

With normal power on the PIC doesn´t work

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
virkom_
Guest







With normal power on the PIC doesn´t work
PostPosted: Fri Feb 15, 2008 12:24 pm     Reply with quote

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

View user's profile Send private message

PostPosted: Fri Feb 15, 2008 2:42 pm     Reply with quote

What is the Vdd voltage on your PIC board ? Is it +3.3v or +5v ?
virkom_
Guest







PostPosted: Sat Feb 16, 2008 3:01 am     Reply with quote

It´s going with 5V...
virkom



Joined: 11 Jul 2007
Posts: 2

View user's profile Send private message

PostPosted: Sat Feb 16, 2008 3:07 am     Reply with quote

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

View user's profile Send private message

PostPosted: Sat Feb 16, 2008 11:22 am     Reply with quote

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 ?
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group