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 support@ccsinfo.com

some questions!

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



Joined: 01 Mar 2010
Posts: 12

View user's profile Send private message

some questions!
PostPosted: Sat Mar 13, 2010 4:12 pm     Reply with quote

Hello everyone,

I am think of coming over to C. I have been using Basic for around 5 years. I really like all the features in the CCS IDE. I have downloaded the manual and have been reading through it. How do you setup the port for printing to a (44780) lcd?

How do you set up the ports for a GLCD? and what it the pseudo code to print to both? I have not been able to find anything in the manual about this? I must say its like learning to speak another language.Thanks.

Charlie
_________________
Regards
Charlie M
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Sat Mar 13, 2010 4:26 pm     Reply with quote

Quote:

How do you setup the port for printing to a (44780) lcd?

Use the Flex LCD driver:
http://www.ccsinfo.com/forum/viewtopic.php?t=24661

See the schematics in this post for the connections:
http://www.ccsinfo.com/forum/viewtopic.php?t=30026&start=5
dezso



Joined: 04 Mar 2010
Posts: 102

View user's profile Send private message

PostPosted: Sat Mar 13, 2010 4:27 pm     Reply with quote

One of the poorest constructed manual I have seen lately for sure.
Who don't use bookmarks this days ? ohh CCS !
Code examples ?, in 135 different file!
Not impressed, $500 for most commonly used pic or $200 for PIC18
Only have 19 days from the demo, not sure if I buy it.
Did you ?

Some one should show me the fantastic future of the IDE, myself I found MPLAB IDE better in many way.
Charliem



Joined: 01 Mar 2010
Posts: 12

View user's profile Send private message

PostPosted: Sat Mar 13, 2010 4:41 pm     Reply with quote

Thanks for the replys. I have not bought it yet. I was looking at a development package. With programmer/debugger. Can I use other programmers with the compiler? for example I have a pickit2 is there anyway to make it the default programmer in the IDE?
_________________
Regards
Charlie M
Charliem



Joined: 01 Mar 2010
Posts: 12

View user's profile Send private message

PostPosted: Sat Mar 13, 2010 4:44 pm     Reply with quote

Ok so without this flex driver is it possible to print to a GLCD or a LCD?
_________________
Regards
Charlie M
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Sat Mar 13, 2010 4:50 pm     Reply with quote

LCD.

Look in the CCS drivers directory for GLCD drivers.
Also look in the Code Library forum.
dezso



Joined: 04 Mar 2010
Posts: 102

View user's profile Send private message

PostPosted: Sat Mar 13, 2010 4:57 pm     Reply with quote

You can add a command line instruction to PK2CMD to program your chip with Pickit2. Under :OPTIONS:TOOLS: User Defined Tools
I don't think you can use PICKIT2 or 3 for debugging, this is the reason why I use it with MPLAB IDE.
Charliem



Joined: 01 Mar 2010
Posts: 12

View user's profile Send private message

PostPosted: Sat Mar 13, 2010 5:22 pm     Reply with quote

Thanks. Another question.... When it comes to the I/O register and setting them up can I use TrisX = 0B000000; or something similar?
_________________
Regards
Charlie M
dezso



Joined: 04 Mar 2010
Posts: 102

View user's profile Send private message

PostPosted: Sat Mar 13, 2010 5:46 pm     Reply with quote

You can use
Code:
set_tris_B(0b00001111 );
Charliem



Joined: 01 Mar 2010
Posts: 12

View user's profile Send private message

PostPosted: Sat Mar 13, 2010 6:16 pm     Reply with quote

OK thanks. Is that the format or syntax for setting up other registers? Like Osccon or adcon1 registers?
_________________
Regards
Charlie M
dezso



Joined: 04 Mar 2010
Posts: 102

View user's profile Send private message

PostPosted: Sat Mar 13, 2010 6:50 pm     Reply with quote

Do you use the CCS IDE/PCW ?
Start a new project Wizard, it will help you to set up your Config and peripherals.

sample;

Code:
   setup_adc_ports(RA0_ANALOG);
   setup_adc(ADC_CLOCK_INTERNAL);
   set_adc_channel(0);
   SET_TRIS_B( 0xff );
Charliem



Joined: 01 Mar 2010
Posts: 12

View user's profile Send private message

PostPosted: Sat Mar 13, 2010 8:12 pm     Reply with quote

Thanks. I will play with it.
_________________
Regards
Charlie M
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