View previous topic :: View next topic |
Author |
Message |
MS57 Guest
|
Help for using PIC18F46J50 |
Posted: Thu Mar 05, 2009 6:57 am |
|
|
Hello,
First I apologize for my english, it's not my native language.
I have a problem using PCH 4.084 because i can't find how to include the header for the pic18F46J50 while is a supported device ( cf the "Devices Supported" webpage)
Moreover Anyone can tell me how to use the #pin_select command, because I can't find it in the CCS help. I need this to configure the Peripheral Pin Select (PPS) to make two output as PWM.
Thanks a lot,
Mathieu |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Thu Mar 05, 2009 2:15 pm |
|
|
Here's how to setup a program:
Code: | #include <18F46J50.h>
#fuses HS,NOWDT,NOPROTECT
#use delay(clock=20000000)
//===============================
void main()
{
while(1);
} |
I don't know if CCS has implemented #pin_select for the few 18F chips
that support it. You should email CCS support and ask them about
your PIC. |
|
|
MS57 Guest
|
|
Posted: Thu Mar 05, 2009 2:33 pm |
|
|
Thks,
But the "18F46J50.h" doesn't exist in the device folder of PICC.
May be because it's a recent pic device. |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Thu Mar 05, 2009 2:38 pm |
|
|
Quote: | c:\program files\picc\devices\18f46j50.h
//////// Standard Header file for the PIC18F46J50 device ////////////////
#device PIC18F46J50 |
It exists in vs. 4.087. |
|
|
|