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 29 matches
CCS Forum Index
Author Message
  Topic: Need help with SPI master-slave interface
applecon2000

Replies: 14
Views: 13180

PostForum: General CCS C Discussion   Posted: Wed Aug 22, 2007 11:34 am   Subject: my reply for SPI issue
Of course I haven't.
The program I wrote in Master device was shown below:
#include <16F876.h>
#fuses XT,NOWDT,NOPROTECT,NOPUT,NOBROWNOUT,NOLVP,NODEBUG
#use delay(clock=4000000)
#de ...
  Topic: Need help with SPI master-slave interface
applecon2000

Replies: 14
Views: 13180

PostForum: General CCS C Discussion   Posted: Wed Aug 22, 2007 11:26 am   Subject: Dear all
Except the SPI issue.
My I2C worked, but not well enough. As the program for master device were shown below:
#include <16F876.h>
#Fuses XT,NOWDT,NOPROTECT,NOPUT,NOBROWNOUT,NOLVP,NODEBUG
#USE ...
  Topic: Need help with SPI master-slave interface
applecon2000

Replies: 14
Views: 13180

PostForum: General CCS C Discussion   Posted: Wed Aug 22, 2007 11:16 am   Subject: hello
I have quoted, but it still did not work, could you please check if my connection was ok.
Or this interface can not be simulated in ISIS at all !?
  Topic: Need help with SPI master-slave interface
applecon2000

Replies: 14
Views: 13180

PostForum: General CCS C Discussion   Posted: Wed Aug 22, 2007 10:23 am   Subject: hello
Dear all,
I have changed codes but it still not worked, for my circuit, I just connected master device SCL PIN_C3 and SDO PIN_C5 to slave device SCL PIN_C3 and SDI PIN_C4. I have not put pull_up resi ...
  Topic: Need help with SPI master-slave interface
applecon2000

Replies: 14
Views: 13180

PostForum: General CCS C Discussion   Posted: Wed Aug 22, 2007 7:24 am   Subject: thanks a lot, but...
Thank you very much indeed.
The program compiling was fine but when I simulated it in ISIS, the LCD screen would still display:
SPI data:
i
I a ...
  Topic: Need help with SPI master-slave interface
applecon2000

Replies: 14
Views: 13180

PostForum: General CCS C Discussion   Posted: Tue Aug 21, 2007 2:52 pm   Subject: ask for help
Dear all,
I am trying to compile data transfering with mode of SPI, for my master device, the code was shown below:
#include <16F876.h>
#Fuses XT,NOWDT,NOPROTECT,NOPUT,NOBROWNOUT,NOLVP,NODEBU ...
  Topic: ask for help
applecon2000

Replies: 4
Views: 5244

PostForum: General CCS C Discussion   Posted: Fri Aug 17, 2007 6:35 pm   Subject: Thanks first but......
My project was to use PIC16F876 to drive a 16x2 LCD module. SPI and I2C were two interfaces needed to build in it.
As treating my LCD module as a slave item, I wanna simulate my design in ISIS, my RS ...
  Topic: Ask for help
applecon2000

Replies: 2
Views: 3269

PostForum: General CCS C Discussion   Posted: Fri Aug 17, 2007 5:54 pm   Subject: Guide me please
please tell me the right place I can post about my question.
and that's the last question, if you know the answer please give me your suggestion, I will stop post it.
thanks.
  Topic: ask for help
applecon2000

Replies: 4
Views: 5244

PostForum: General CCS C Discussion   Posted: Fri Aug 17, 2007 5:35 pm   Subject: dear sir
As a frashman using this system, I am not really familar with your rules.
Sorry to bring you so many troubles.
  Topic: Ask for help
applecon2000

Replies: 2
Views: 3269

PostForum: General CCS C Discussion   Posted: Fri Aug 17, 2007 5:29 pm   Subject: Ask for help
Dear all,
after building RS232 interface in my LCD module, I wanna build I2C and SPI interfaces into it as well, is there any friend who can give me the suggestion about the code for those two inter ...
  Topic: ask for help
applecon2000

Replies: 4
Views: 5244

PostForum: General CCS C Discussion   Posted: Fri Aug 17, 2007 11:28 am   Subject: ask for help
Dear all,
after building RS232 interface in my LCD module, I wanna build I2C and SPI interfaces into it as well, is there any friend who can give me the suggestion about the code for those two inter ...
  Topic: Need help with i2c slave interface
applecon2000

Replies: 0
Views: 2658

PostForum: General CCS C Discussion   Posted: Thu Aug 16, 2007 4:31 pm   Subject: Need help with i2c slave interface
dear sir,
after RS232 interface, I also need build I2C and SPI interfaces into my LCD module, after reading the datasheet of PIC16F876A and the help file of CCS Compiler, I have been sure about the w ...
  Topic: help:convert char into int
applecon2000

Replies: 4
Views: 5017

PostForum: General CCS C Discussion   Posted: Thu Aug 16, 2007 4:23 pm   Subject: cool
thanks millian about your help.
it works.
By the way, if I wanna input number of x which was large than 10, how can I do that?
  Topic: help:convert char into int
applecon2000

Replies: 4
Views: 5017

PostForum: General CCS C Discussion   Posted: Thu Aug 16, 2007 1:56 pm   Subject: help again
My codes were rectified as follows:
lcd_putc("\f Input x: \n");
x=atoi(getch());
lcd_putc(x);
delay_ms(500);
lcd_putc("\f Input y ...
  Topic: help:convert char into int
applecon2000

Replies: 4
Views: 5017

PostForum: General CCS C Discussion   Posted: Thu Aug 16, 2007 12:55 pm   Subject: help:convert char into int
Dear all, I communicate my LCD module with my PC in RS232. When I type two number such as x=8, y=0 to run the rutine of lcd_gotoxy(Byte x, Byte y) the cursor would not point to the exact posit ...
 
Page 1 of 2 Goto page 1, 2  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group