|
|
View previous topic :: View next topic |
Author |
Message |
DiegoGarcia Guest
|
PIC18F67J50 How to correct setup |
Posted: Wed Feb 27, 2008 4:38 pm |
|
|
Hi guys I'm trying to setup the fuses of my program that should run on the PIC18F67J50 the thing is that I'm new to the pic USB world (I've been working with pic since a long time).
My circuit should work using the intosc (so i think the correct fuse should be INTRC_PLL_IO ) but I'm not sure about that.
I'm a little lost, I've opened some samples from CCS like the simple one usb_hid and tryed to copy the fuses and I get a lot of errors, the one I'm stuck on now is the Expecting a declaration "USBDIV". any one can get me a light ?
Thanks a lote,
Regards,
Diego. |
|
|
DiegoGarcia Guest
|
|
Posted: Wed Feb 27, 2008 5:41 pm |
|
|
Ok, I've corrected somethings and this error doesn't shows more.
Now it build with success !
But my pc doesn't recognize my device.
Any tips on how to correct config the fuses to work with intosc ?
Thanks a lot guys,
Regards,
Diego. |
|
|
TrieuP Guest
|
How to Correctly Setup the PIC18F67J50 |
Posted: Mon Sep 07, 2009 11:22 pm |
|
|
Hi Diego,
Sounds like you have correctly setup the PIC18F67J50. Can you share the example of the startup code. I am using the MPLAB ICD 2 and having problem as follows:
Quote: |
..Programming Program Memory (0x0 - 0x3F)
Verifying...
...Program Memory
ICD0161: Verify failed (MemType = Program, Address = 0x0, Expected Val = 0xEF02, Val Read = 0x0)
ICD0275: Programming failed.
MPLAB ICD 2 ready for next operation
|
|
|
|
johanpret
Joined: 23 Oct 2006 Posts: 33 Location: South Africa
|
|
Posted: Tue Sep 08, 2009 11:36 am |
|
|
Code: |
#ifdef usepic18f87J50
#use delay(clock=48000000)
#endif
#ifdef usepic18f87J50
#fuses NOWDT,WDT128,HS_PLL,NODEBUG,NOXINST,STVREN,PROTECT,
FCMEN,NOIESO,MSSPMSK7,RESERVED,NOCPUDIV,PLL5,EASHFT,
MCU,ECCPE,BW16,NOWAIT
#endif
|
This work for me I use a 20Mhz Crystal external. I think if you want to use the USB you can't use the internal clk.
Cheers
Johan _________________ Johan Pretorius |
|
|
|
|
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
|