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

Nokia 3310 and Pic18F4550.

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



Joined: 20 Feb 2009
Posts: 1

View user's profile Send private message

Nokia 3310 and Pic18F4550.
PostPosted: Fri Feb 20, 2009 9:07 am     Reply with quote

I have a problem with display Nokia 3310 and Pic18F4550.
I've used the code:
http://www.ccsinfo.com/forum/viewtopic.php?t=25571

I use 4 mhz clock and my main() program is:

Code:
void main(void)
{
   set_tris_d(0b00000111);   
   set_tris_e(0b00000000);   

   output_high(LED_Rojo);
   output_low(LED_Verde);
   delay_ms(100);   
   output_low(LED_Rojo);
   output_high(LED_Verde);

   nokia_init();
   
   nokia_gotoxy(0,0);
   printf(nokia_printchar,"test???");

   for(;;)
   {
      delay_ms(500);
   }
}



And this pin config:

Code:
#define nok_sclk  PIN_D7
#define nok_sda   PIN_D6
#define nok_dc    PIN_D5
#define nok_cs    PIN_D4
#define nok_res   PIN_D3


after the power, black display.

Any help.
Thankyou
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