I've been trying to get a program running for a PIC 18F2525, but can't get it to compile if I try to set the Int Osc along with having RA6 and RA7 for use as IO. If I don't specify the Int Osc at all, then it compiles fine.
According to the data sheet, the Int Osc itself can be set up to 8MHz max and in order to use RA6 and RA7 as IO also, to use the INTIO2 mode.
I tried numerous different ways of selecting INTIO2 mode, but couldn't get it to compile if I did that.
I had a look at the 18F2525.dat file and it looks like it doesn't match the definitions in the data sheet - but then I'm
not familiar with the dat files and this is my first GCB program, so it's quite likely that I'm just misunderstanding things.
There is an INTIO67 mode in the dat file, which presumably means the same thing (INTOSC and RA6 and RA7 used for IO), but the data sheet has nothing about INTIO67. If I use INTIO67, then the program compiles fine.
Hopefully somebody can clarify whether it's me stuffing things up, or if the dat file needs some adjustments for this particular chip.
Running Compiler Version: 0.95.009 2016-08-09 - Full with IDE.
Thanks
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The Datasheet does not match the p18F2525.inc file used by the Microchip tools. The p18f2525.inc and related.others use !NTIO67 as does the GCB. datfile. So the datasheet is wrong.
When in doubt use the name provided in the related GCB datfile. You can also verify by looking in the related inc file used in MPLABX.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
OK thanks guys. I went by the datasheet because that's what it said to do in the GCB help - Configuration (and what I would normally expect would be correct!). Anyway, that's Microsoft's issue, not GCB's, so I'll try to get a moment to bring this up with them. Thanks for the fast help. I have another question, but probably best to start a new topic.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I've been trying to get a program running for a PIC 18F2525, but can't get it to compile if I try to set the Int Osc along with having RA6 and RA7 for use as IO. If I don't specify the Int Osc at all, then it compiles fine.
According to the data sheet, the Int Osc itself can be set up to 8MHz max and in order to use RA6 and RA7 as IO also, to use the INTIO2 mode.
I tried numerous different ways of selecting INTIO2 mode, but couldn't get it to compile if I did that.
I had a look at the 18F2525.dat file and it looks like it doesn't match the definitions in the data sheet - but then I'm
not familiar with the dat files and this is my first GCB program, so it's quite likely that I'm just misunderstanding things.
There is an INTIO67 mode in the dat file, which presumably means the same thing (INTOSC and RA6 and RA7 used for IO), but the data sheet has nothing about INTIO67. If I use INTIO67, then the program compiles fine.
Hopefully somebody can clarify whether it's me stuffing things up, or if the dat file needs some adjustments for this particular chip.
Running Compiler Version: 0.95.009 2016-08-09 - Full with IDE.
Thanks
The Datasheet does not match the p18F2525.inc file used by the Microchip tools. The p18f2525.inc and related.others use !NTIO67 as does the GCB. datfile. So the datasheet is wrong.
When in doubt use the name provided in the related GCB datfile. You can also verify by looking in the related inc file used in MPLABX.
If the INC or datasheet are incorrect. Please open up a ticket with Microchip. They are good at correcting these errors.
OK thanks guys. I went by the datasheet because that's what it said to do in the GCB help - Configuration (and what I would normally expect would be correct!). Anyway, that's Microsoft's issue, not GCB's, so I'll try to get a moment to bring this up with them. Thanks for the fast help. I have another question, but probably best to start a new topic.