Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
LinkBack Thread Tools Display Modes
Old 7th October 2006, 03:50 PM   (permalink)
Default ICD-U40 and the rfPIC12F675...

Hi.

Got the latest version of the ICD firmware from the CCS site and in the ICD software(PC) it say that it can handle th PIC16, PIC18 and dsPIC. This is fine, but I wish to use the rfPICs and I get the message " Can't find target......."
So this tells me that the firmware is unable to see the PIC12 series.

What I would like to know is, is there a firmware version that supports the PIC12 series, including the rfPICs, or is there another issue involved??

Built up a little type of dev board for the rfPIC and I think/hope that the connection between the ICD and my board is correct, so do anyone have the ICSP connections sorted out and have got the rfPIC programmed? If you have can you let me know how you did it.

Anyone got any ideas.
Thanks.
__________________
Well paint me purple and call me BARNEY!!
Polkie is offline  
Old 7th October 2006, 04:17 PM   (permalink)
Default

All 12F series PICs require a "special ICD" version of the chip (too few pins to support debugging)

http://www.ccsinfo.com/devices.php?page=icddevices

This is a special version of the PIC with more pins and a small PCB.
__________________
Bill
Home of the
Firefly PIC Tutor
Inchworm ICD2

http://www.blueroomelectronics.com
William At MyBlueRoom is offline  
Old 7th October 2006, 04:32 PM   (permalink)
Default

He's trying to program the device Bill.
Mike, K8LH is online now  
Old 7th October 2006, 04:40 PM   (permalink)
Default

I've read the rfPIC12F676 datasheet section about ICSP and looked at a schematic of my boss and saw what he did "copied" it abit and asked him and he said that it should work.

The ICD-U40 says it can program the chip. I'm using the open pin left on "PORTA" to light up a led once I got the rfPIC programmed.

The rfPIC datasheet talks about an internal 4MHz osc. Will this surfice doing operation and programming or should I still put an extra XT on the ocs1/ocs2 pins?
__________________
Well paint me purple and call me BARNEY!!

Last edited by Polkie; 7th October 2006 at 04:43 PM.
Polkie is offline  
Old 7th October 2006, 04:43 PM   (permalink)
Default

Quote:
Originally Posted by Polkie
Built up a little type of dev board for the rfPIC and I think/hope that the connection between the ICD and my board is correct, so do anyone have the ICSP connections sorted out and have got the rfPIC programmed? If you have can you let me know how you did it.

Anyone got any ideas.
Thanks.
If you just want to program it can you show us your schematic? You'll need to dedicate three pins to the ICD, GP0 DAT, GP1 CLK, GP3 VPP must go directly to your programmer, loading these pins will cause errors.
__________________
Bill
Home of the
Firefly PIC Tutor
Inchworm ICD2

http://www.blueroomelectronics.com
William At MyBlueRoom is offline  
Old 7th October 2006, 04:53 PM   (permalink)
Default

This is the cct I came up with. It's got the /MCLR pin as well as the CLK and DATA pins as well.
Attached Images
File Type: png rfPIC_DBoard1.PNG (55.6 KB, 78 views)
__________________
Well paint me purple and call me BARNEY!!
Polkie is offline  
Old 7th October 2006, 04:59 PM   (permalink)
Default

It should work, the ICD looks fine. Try removing that cap on VPP, it's shouldn't be required and might be slowing down the VPP rise.
__________________
Bill
Home of the
Firefly PIC Tutor
Inchworm ICD2

http://www.blueroomelectronics.com
William At MyBlueRoom is offline  
Old 7th October 2006, 05:13 PM   (permalink)
Default

Done, that but still same problems.... starting to think that it has something to do with the ICD... sometime windows does pick up the usb of the icd, and then the icd sometimes pics up a PIC and my target board but doesn't program.

Also asked the guys on the CCS forum, see if any one there might help.

Thanks for the help, I will still keep trying.

Oh yes on the CCS data they say that there should be a 47k ohn resistor between /MCLR and the 5V line, for the 13V needed to program. Done that as well.
__________________
Well paint me purple and call me BARNEY!!
Polkie is offline  
Old 7th October 2006, 08:22 PM   (permalink)
Default

Do you have more than one chip? Sounds like the programmer is not working, bad connection/hookup to the chip or a bad chip.

Have you used the programmer and programming software before with success?
mramos1 is offline  
Old 7th October 2006, 08:57 PM   (permalink)
Default

Um.... I found "THE FAULT" it was my eyes/brain..... didn't read the documentation correctly, loom between the "target board" and the ICD was incorrect.

The board is second hand and don't have the ICD cable with the RJ11 connectors, and my demo-board hasn't got the pcb RJ11 connector. So I just didn't have the /MCLR signal connected at all and the rest were going the the wrong pins.

Thanks for the help though, I appreciate it. When I get the Tx up and running will post the schematic and code if it works correctly..... along with the correct programming cable pinouts..... if anyone wants it.

Once again Thanks for the help.


*DOH*
Next time I should R.T.F.M = read the f***ing manual......
__________________
Well paint me purple and call me BARNEY!!

Last edited by Polkie; 8th October 2006 at 09:46 AM.
Polkie is offline  
Old 8th October 2006, 11:11 AM   (permalink)
Default

Happy to hear you got your programmer working.

I'd be interested to hear about your project once you get a little further along. I always wondered about using the rfPIC devices.

Take care. Regards, Mike
Mike, K8LH is online now  
Old 8th October 2006, 02:27 PM   (permalink)
Default

They are probably pricey but sound like fun.
mramos1 is offline  
Old 8th October 2006, 02:58 PM   (permalink)
Default

Quote:
Originally Posted by mramos1
They are probably pricey but sound like fun.
I must admit, I looked them a few years ago - but they seems far too complicated and expensive - much easier to use a licence free module (I'm also dubious about the legality of using a home made radio module without submitting it for approval?).
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is offline  
Old 8th October 2006, 03:22 PM   (permalink)
Default

I agree Nigel.

I was however shocked to see the range on the Z-bee modules, they are not small and sure battery usage is probably out. But I might pop for a pair. But also the range was one line of site too.
mramos1 is offline  
Old 8th October 2006, 03:22 PM   (permalink)
Default

What sort of range does an rfpic have? I always thought they were for rfid tags and only a few feet.
__________________
Bill
Home of the
Firefly PIC Tutor
Inchworm ICD2

http://www.blueroomelectronics.com
William At MyBlueRoom is offline  
Reply

Bookmarks

Thread Tools
Display Modes





All times are GMT. The time now is 11:01 PM.


Electronic Circuits  |  Electronics Wiki
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.

eXTReMe Tracker