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 support@ccsinfo.com

PICkit1 10F problem?

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



Joined: 10 Sep 2003
Posts: 35

View user's profile Send private message

PICkit1 10F problem?
PostPosted: Sun Dec 12, 2004 6:58 am     Reply with quote

I've got the PICkit1 from farnel, a starterkit with 5 10F206 included, and also a 12F684 and a 12F675.
The 675 is not supported by my ccs compiler, but for the 684 i can make a blinking led demo.

Only a blinking led demo for the 10F206 wil not work.
Is there no fuse for the INTRC ??

#include <10F206.h>
#use delay(clock=4000000)
#fuses NOWDT, NOPROTECT, MCLR

void main() {

setup_counters(RTCC_INTERNAL,RTCC_DIV_1);

while(1)
{
output_High(PIN_B1); //D0
output_Low(PIN_B2);
delay_ms(500);

output_High(PIN_B2); //D1
output_Low(PIN_B1);
delay_ms(500);

}
}
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Tue Dec 14, 2004 3:47 pm     Reply with quote

Quote:
I've got the PICkit1 from farnel, a starterkit with 5 10F206 included, and
also a 12F684 and a 12F675.
The 675 is not supported by my ccs compiler, but for the 684 i can make
a blinking led demo.

Is there a 12F684 ? I searched the Microchip website and couldn't
find a reference to it. Do you really mean the 16F684 ?
That chip uses the PCM compiler. If you have the PCM compiler,
then you also have support for the 12F675.

I just looked at Farnell's website, and the PicKit1 includes the Hi-Tech C
"Lite" compiler. So are you sure that you have the CCS compiler ?
picprogrammer



Joined: 10 Sep 2003
Posts: 35

View user's profile Send private message

PostPosted: Tue Dec 14, 2004 4:18 pm     Reply with quote

yep you are right it is the 16F684, any i use the ccs compiler v3.207. Is there anybody with a working 10F206 example?
lesotter



Joined: 21 Sep 2003
Posts: 5

View user's profile Send private message

PostPosted: Sat Dec 18, 2004 1:43 am     Reply with quote

#include "C:\Program Files\PICC\devices\10f206.h"
#use delay(clock=4000000)
#fuses nowdt, nomclr
//make sure nomclr otherwise expects high on mclr pin...and we don't have many!
#byte CMCON0 = 0x07 // Define the address of CMCON0 because ccs setup_comparator is broken for 10f206
void main()
{
setup_timer_0(RTCC_INTERNAL|RTCC_DIV_1);
CMCON0 = 0x00; // Setup the Comparator
set_tris_b(0);
output_low(PIN_b1);
do
{
// 410/2238 in code gives 419/2270 on the scope
// or 425/2301 on another pic sample
output_high(pin_b2);
delay_us(410);
output_low(pin_b2);
delay_us(2238);
}while(TRUE);

}
theMagni



Joined: 21 May 2004
Posts: 48
Location: Victoria, BC

View user's profile Send private message Visit poster's website

re: PIC Kit
PostPosted: Thu Jan 20, 2005 4:33 pm     Reply with quote

I had some issues with my PIC kit (with the EVB), and it sounds like we had the same problem. I upgraded the PIC Kit firmware to the latest version. That resolved everything.

As for the 675 being supoorted by the CCS compiler, you don't have to have CCS support for it. Microchip will provide all the code you'll ever want for it, and all you have to do is run it. I think it's the interface / programmer for the 10F itself.

The link for all their downloadables for the PICKit is:

http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=1406&dDocName=en010053

Hopefully you already know this; I can see that it's been a month.
_________________
In the 90's, I promised myself I'd never use a so-called "smiley icon". I hate what I've become. ;)
picprogrammer



Joined: 10 Sep 2003
Posts: 35

View user's profile Send private message

PostPosted: Fri Jan 21, 2005 10:45 am     Reply with quote

The NoMasterclear was the solution.
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