View previous topic :: View next topic |
Author |
Message |
Charliem
Joined: 01 Mar 2010 Posts: 12
|
some questions! |
Posted: Sat Mar 13, 2010 4:12 pm |
|
|
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
|
|
|
dezso
Joined: 04 Mar 2010 Posts: 102
|
|
Posted: Sat Mar 13, 2010 4:27 pm |
|
|
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
|
|
Posted: Sat Mar 13, 2010 4:41 pm |
|
|
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
|
|
Posted: Sat Mar 13, 2010 4:44 pm |
|
|
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
|
|
Posted: Sat Mar 13, 2010 4:50 pm |
|
|
LCD.
Look in the CCS drivers directory for GLCD drivers.
Also look in the Code Library forum. |
|
|
dezso
Joined: 04 Mar 2010 Posts: 102
|
|
Posted: Sat Mar 13, 2010 4:57 pm |
|
|
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
|
|
Posted: Sat Mar 13, 2010 5:22 pm |
|
|
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
|
|
Posted: Sat Mar 13, 2010 5:46 pm |
|
|
You can use
Code: | set_tris_B(0b00001111 ); |
|
|
|
Charliem
Joined: 01 Mar 2010 Posts: 12
|
|
Posted: Sat Mar 13, 2010 6:16 pm |
|
|
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
|
|
Posted: Sat Mar 13, 2010 6:50 pm |
|
|
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
|
|
Posted: Sat Mar 13, 2010 8:12 pm |
|
|
Thanks. I will play with it. _________________ Regards
Charlie M |
|
|
|