View previous topic :: View next topic |
Author |
Message |
romertz
Joined: 03 Oct 2008 Posts: 12 Location: Bogota
|
24FJ64GB108 |
Posted: Fri May 15, 2009 1:57 pm |
|
|
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
|
|
Posted: Fri May 15, 2009 2:57 pm |
|
|
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
|
|
Posted: Thu May 21, 2009 4:11 pm |
|
|
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
|
|
Posted: Fri May 22, 2009 11:34 am |
|
|
. . .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.... ....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
|
|
Posted: Fri May 22, 2009 12:36 pm |
|
|
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
|
|
Posted: Fri May 22, 2009 3:56 pm |
|
|
nothing it was some hardware issue. . . . the code works. . . .thnx. . . |
|
|
|