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 CCS Technical Support

24FJ64GB108

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



Joined: 03 Oct 2008
Posts: 12
Location: Bogota

View user's profile Send private message

24FJ64GB108
PostPosted: Fri May 15, 2009 1:57 pm     Reply with quote

Hello all

I have been working with the 18F family using the PCWH compiler.

Now I want to work with the 24FJ64GB108 to work with the usb host, I have installed the PCWHD, because it has support for that chip, but I don't know how to make a project, I mean, I think the 24FJ64GB108.h is missing (with the 18F family there was 18F2550.h, 18F2525.h, etc) or I must use another one.
Some one could help me to start to programming in this chip?

thanks. . .
FvM



Joined: 27 Aug 2008
Posts: 2337
Location: Germany

View user's profile Send private message

PostPosted: Fri May 15, 2009 2:57 pm     Reply with quote

Quote:
the 24FJ64GB108.h is missing

It's present in the devices directory, at least since V4.083.
romertz



Joined: 03 Oct 2008
Posts: 12
Location: Bogota

View user's profile Send private message

PostPosted: Thu May 21, 2009 4:11 pm     Reply with quote

yep. . .it was the version. . . I have installed 4.088. . . but now I am stuck. . . Anybody knows where can I get some example code for starting with it? I can't make a simple program with it, I think I am not understanding the fuses or something. . . . thx
romertz



Joined: 03 Oct 2008
Posts: 12
Location: Bogota

View user's profile Send private message

PostPosted: Fri May 22, 2009 11:34 am     Reply with quote

. . .I am frustrating. . .I can't make this to run:
Code:

#include <24FJ64GB108.h>
#FUSES FRC,NOWDT,NOPROTECT,NODEBUG
#use delay(CLOCK=7370000)
#zero_ram
int vector[200]={};

void main(){
setup_adc_ports(no_analogs);
   while (1){
   output_b(0b1111111111111111);
   delay_ms(500);
   output_b(0);
   delay_ms(500);
   }
}

somebody helps.... Crying or Very sad....i think i am not selecting correctly the fuses....but I can't see the error...
FvM



Joined: 27 Aug 2008
Posts: 2337
Location: Germany

View user's profile Send private message

PostPosted: Fri May 22, 2009 12:36 pm     Reply with quote

At first look, I would expect the code to work, although some configuration details e.g. CLKDIV aren't set. Which problems to you observe?
romertz



Joined: 03 Oct 2008
Posts: 12
Location: Bogota

View user's profile Send private message

PostPosted: Fri May 22, 2009 3:56 pm     Reply with quote

nothing it was some hardware issue. . . . the code works. . . .thnx. . .
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