|
|
View previous topic :: View next topic |
Author |
Message |
jordaanelectronics
Joined: 04 Sep 2005 Posts: 2
|
ICD-40 Needs to be uncoupled from USB |
Posted: Mon Sep 05, 2005 12:32 pm |
|
|
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
|
Fuses |
Posted: Fri Sep 16, 2005 12:22 am |
|
|
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
|
Re: Fuses |
Posted: Mon Sep 19, 2005 11:26 am |
|
|
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++;
}
} |
|
|
|
|
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
|