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

Search found 20 matches
CCS Forum Index
Author Message
  Topic: 16f877a SPI slave read problem
sresam89

Replies: 3
Views: 6221

PostForum: General CCS C Discussion   Posted: Wed Sep 12, 2012 4:40 am   Subject: 16f877a SPI slave read problem
solved it by changing the SSPCON VALUE to 0x35

hello all.
i have a small query...
i know writing 0x35 to SSPCON ll control the salve using SlaveSelect pin @ PA.5, also the salve pin need to be co ...
  Topic: 16f877a SPI slave read problem
sresam89

Replies: 3
Views: 6221

PostForum: General CCS C Discussion   Posted: Tue Sep 11, 2012 3:37 am   Subject: 16f877a SPI slave read problem
solved it by changing the SSPCON VALUE to 0x35
  Topic: 16f877a SPI slave read problem
sresam89

Replies: 3
Views: 6221

PostForum: General CCS C Discussion   Posted: Mon Sep 10, 2012 11:15 pm   Subject: 16f877a SPI slave read problem
hi all
I am trying to implement spi communication between two 16f877a.
I am giving my CCS (4.038) code below:

For master

void main()
{
TRISC=0x10; //SCK is output (Master&# ...
  Topic: 18f4550 usb weird problem
sresam89

Replies: 1
Views: 4200

PostForum: General CCS C Discussion   Posted: Tue Apr 03, 2012 2:40 am   Subject: 18f4550 usb weird problem
hello all
I am trying to implement ex_usb_serial.c in ccs examples with 18f4550. The code compiles and works very fine till enumeration, then n there stops

The driver supplied doesn't get installe ...
  Topic: CAN problem (beginner)
sresam89

Replies: 28
Views: 70572

PostForum: General CCS C Discussion   Posted: Mon Apr 02, 2012 8:45 pm   Subject: CAN problem (beginner)
Here is a simple test program which allows you to prove that two CAN


1. Can I use the same program for 18f4550/4585 ECAN controllers?
2. Will there be any other major changes in the program exce ...
  Topic: Driving Nokia3310 Lcd
sresam89

Replies: 7
Views: 22060

PostForum: General CCS C Discussion   Posted: Sun Mar 25, 2012 2:48 pm   Subject: un stable contrast
hello M.Yasser

your code came out well and indeed helpful.

just one problem with my hardware is my contrast is not getting stabilized its gets off upon every reset and takes quite large time to ...
  Topic: Driving Nokia3310 Lcd
sresam89

Replies: 7
Views: 22060

PostForum: General CCS C Discussion   Posted: Sun Mar 25, 2012 3:58 am   Subject: Driving Nokia3310 Lcd
Hi temtronic,
Your comment was very helpful;
Be aware that the 877 is a 5 volt device, the Nokia a 3.3 device so you WILL require logic level translation between the two.
I managed to get it work; ...
  Topic: NOKIA 1100 LCD Driver [PCF8814]
sresam89

Replies: 10
Views: 86179

PostForum: Code Library   Posted: Fri Mar 23, 2012 12:56 pm   Subject: NOKIA 1100 LCD Driver [PCF8814]
sir just out of curiosity why were you using this particular line in your code

#use rs232(baud=19200, xmit=PIN_C6, rcv=PIN_C7,stream=com0)


where you looping the output/display via rs2 ...
  Topic: ks0108 128x64glcd interface problem
sresam89

Replies: 20
Views: 26189

PostForum: General CCS C Discussion   Posted: Wed Mar 21, 2012 1:43 am   Subject: ks0108 128x64glcd interface problem
Hi,

To summarze, with the "normal" configuration of CS1 and CS2 you only see something on the left side of the display, and with these lines swapped you still only see something on the le ...
  Topic: ks0108 128x64glcd interface problem
sresam89

Replies: 20
Views: 26189

PostForum: General CCS C Discussion   Posted: Sun Mar 18, 2012 11:39 pm   Subject: ks0108 128x64glcd interface problem
Hi,

It seems that your display might have problem. Can you try a new one?

John

hi ezflyr
I have tried with new one too still the problem exists. :(
Any problem with driver? If you have one ...
  Topic: ks0108 128x64glcd interface problem
sresam89

Replies: 20
Views: 26189

PostForum: General CCS C Discussion   Posted: Sat Mar 17, 2012 11:14 am   Subject: ks0108 128x64glcd interface problem
Hi,

Are you saying that swapping CS1 and CS2 on the display causes the opposite side of the display to start working? IOW, first the right side was working, and now the left side is working?


y ...
  Topic: ks0108 128x64glcd interface problem
sresam89

Replies: 20
Views: 26189

PostForum: General CCS C Discussion   Posted: Sat Mar 17, 2012 6:14 am   Subject: ks0108 128x64glcd interface problem
dear pcm programmer and ezflyr
i tried an exchange between cs1 and cs2 pins then am getting the other half of the display on the left side, confirming that my datas are coming out properly. but why i ...
  Topic: ks0108 128x64glcd interface problem
sresam89

Replies: 20
Views: 26189

PostForum: General CCS C Discussion   Posted: Sat Mar 17, 2012 4:04 am   Subject: ks0108 128x64glcd interface problem
Hi,

The KS0108 uses two chip select lines, CS1 and CS2. Each one controls half the display, so your problem description suggests an issue in this area. You really should not be manually setting TRI ...
  Topic: ks0108 128x64glcd interface problem
sresam89

Replies: 20
Views: 26189

PostForum: General CCS C Discussion   Posted: Fri Mar 16, 2012 11:32 pm   Subject: ks0108 128x64glcd interface problem
Yes, it will. .

thank you so much sir

sir can you just post the HDM64GS12.c, GLCD.h GLCD.c files for my use

am now getting not sure of the integrity of the files i have, also may i ask i have ...
  Topic: ks0108 128x64glcd interface problem
sresam89

Replies: 20
Views: 26189

PostForum: General CCS C Discussion   Posted: Fri Mar 16, 2012 11:00 pm   Subject: ks0108 128x64glcd interface problem
Here is a way to let CCS handle the TRIS:


so you say the compiler would automatically comes the know the tris configuration we need to have?

just to clear myself
say all my portc pins are inp ...
 
Page 1 of 2 Goto page 1, 2  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group