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

ICD-40 Needs to be uncoupled from USB

 
Post new topic   Reply to topic    CCS Forum Index -> CCS ICD / Mach X / Load-n-Go
View previous topic :: View next topic  
Author Message
jordaanelectronics



Joined: 04 Sep 2005
Posts: 2

View user's profile Send private message Send e-mail

ICD-40 Needs to be uncoupled from USB
PostPosted: Mon Sep 05, 2005 12:32 pm     Reply with quote

I have to say that I'm just starting with PIC controllers, so may 'this question has been answered already many times.

I use a CCS compiler and a ICD-U40 programmer / debugger. I'm using my ICD-U40 only as a In CIrcuit Programmer. ( I haven't tried to debug with it jet)
Every time I program new code in my flash PIC and start the program, I have to uncouple my ICD_U40 from the PC before I can reprogram my flash PIC.
So everytime I change my sourcecode I have to unplug the ICD-U40 and plug it in again.

What goed wrong ?

I use the CCS version PCWH ( the windows IDE version)
kender



Joined: 09 Aug 2004
Posts: 768
Location: Silicon Valley

View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger

Fuses
PostPosted: Fri Sep 16, 2005 12:22 am     Reply with quote

Give some more information about your hardware and firmware.

Do you download the code from CCS IDE or from ICD-U software?
Do you click "Start Program" button?
Do you have a reset supervisor chip connected to the MCLR of the PIC? Do you have a 47k pull-up resistor?

Also, it would be very helpful, if you post your *.h file with the fuses. Don't forget to use [code].
jordaanelectronics



Joined: 04 Sep 2005
Posts: 2

View user's profile Send private message Send e-mail

Re: Fuses
PostPosted: Mon Sep 19, 2005 11:26 am     Reply with quote

kender wrote:
Give some more information about your hardware and firmware.

Do you download the code from CCS IDE or from ICD-U software?
Do you click "Start Program" button?
Do you have a reset supervisor chip connected to the MCLR of the PIC? Do you have a 47k pull-up resistor?

Also, it would be very helpful, if you post your *.h file with the fuses. Don't forget to use [code].


I use a ICD-U40 with firmware 1.39 #99 ( I can see that at the bottem of the ICD Control program V2.30

I program from this ICD Control program not from the CCS-IDE.
I certainly use the start and stop button, and sometimes it works, but mostly not.

My program is real simple I have a complete listing at the bottem of this page. It is nothing more than a blinking LED and I write some information (fixed & variable) to an LCD display, this program works.

I can reset with a wire to Vss ( I work on a breadbord) Pin not_MCLR/Vpp is pulled with a 27Kohm resistor.

I can't check my USB port, I don't have watchprogram or mini-tester for USB like I have for my RS232 port.


I'm starting with I2C that is why I include I2C, the program code doesn't use it (yet).





[code]
#include <16F877.h>
#device adc=8
#device icd=true
#fuses HS,NOWDT,NOPROTECT,NOLVP
#use delay(clock=12000000)
#use I2C(master, SCL=PIN_B0, SDA=PIN_B1)

#include <lcd.c>


void main()
{
int a=0,b=0;

set_tris_a(0x00);

lcd_init();
delay_ms(10);

lcd_putc("\fLCD TEST HV1.0\n");
lcd_putc("Firmware FV1.0 \n");
delay_ms(200);
lcd_putc("\fhttp://www.\n");
lcd_putc("jordaantest.nl\n");
delay_ms(200);

while(TRUE)
{
delay_ms(400);

if (a==100) {b++; a=0;}

output_high(PIN_A0);
delay_ms(400);
output_low(PIN_A0);
printf(lcd_putc,"\fnumber: %x %x",a,b);
printf(lcd_putc,"\nnumber: %U%02U",b,a);
a++;
}
}
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> CCS ICD / Mach X / Load-n-Go 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