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

PIC18F67J50 How to correct setup

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







PIC18F67J50 How to correct setup
PostPosted: Wed Feb 27, 2008 4:38 pm     Reply with quote

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







PostPosted: Wed Feb 27, 2008 5:41 pm     Reply with quote

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
PostPosted: Mon Sep 07, 2009 11:22 pm     Reply with quote

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

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

PostPosted: Tue Sep 08, 2009 11:36 am     Reply with quote

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
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