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

Help for using PIC18F46J50

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







Help for using PIC18F46J50
PostPosted: Thu Mar 05, 2009 6:57 am     Reply with quote

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

View user's profile Send private message

PostPosted: Thu Mar 05, 2009 2:15 pm     Reply with quote

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







PostPosted: Thu Mar 05, 2009 2:33 pm     Reply with quote

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

View user's profile Send private message

PostPosted: Thu Mar 05, 2009 2:38 pm     Reply with quote

Quote:
c:\program files\picc\devices\18f46j50.h

//////// Standard Header file for the PIC18F46J50 device ////////////////
#device PIC18F46J50

It exists in vs. 4.087.
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