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 7 matches
CCS Forum Index
Author Message
  Topic: I2C slave transmitting data
iVoVa

Replies: 47
Views: 93976

PostForum: General CCS C Discussion   Posted: Thu Mar 17, 2011 10:59 am   Subject: I2C slave transmitting data
I have a source code about transfer and receive data between MASTER and SLAVE with I2C connect.
Hope it useful for the persons need it.

http://www.mediafire.com/file/l0eq4tuodd5sa1h/I2C%20transfe ...
  Topic: Proteus I2C have a problem, help me !
iVoVa

Replies: 2
Views: 7793

PostForum: General CCS C Discussion   Posted: Thu Mar 17, 2011 5:36 am   Subject: Proteus I2C have a problem, help me !
Thanks PCM so much, you help me get a lot of knowledges.
My program worked.
  Topic: Proteus I2C have a problem, help me !
iVoVa

Replies: 2
Views: 7793

PostForum: General CCS C Discussion   Posted: Wed Mar 16, 2011 11:16 pm   Subject: Proteus I2C have a problem, help me !
#include<18F4520.h>
#include"DEF_18F4520.c"
#fuses HS
#use delay(clock = 4000000)
#use I2C(MASTER , SDA = PIN_C4, SCL = PIN_C3)
#use FAST_IO( A B)
#use FA ...
  Topic: Proteus run incorrect with SPI between 2 PIC18, help me !
iVoVa

Replies: 2
Views: 5493

PostForum: General CCS C Discussion   Posted: Tue Mar 15, 2011 3:55 am   Subject: Proteus run incorrect with SPI between 2 PIC18, help me !
hmmm... you're using fast_io() but where's your setup of the tris registers ?
Have you disabled other peripherals you don't use ?
Do you need a chip select for the slave ?
Your hardware for switch ...
  Topic: Proteus run incorrect with SPI between 2 PIC18, help me !
iVoVa

Replies: 2
Views: 5493

PostForum: General CCS C Discussion   Posted: Mon Mar 14, 2011 1:17 pm   Subject: Proteus run incorrect with SPI between 2 PIC18, help me !
#include<18F4520.h>
#use delay(clock=4000000)
#use FAST_IO(D)

void main()
{
int number;

setup_spi(SPI_MASTER );
while(1)
{
nu ...
  Topic: Explain about code timer0, help me !
iVoVa

Replies: 2
Views: 5881

PostForum: General CCS C Discussion   Posted: Sun Mar 13, 2011 6:58 am   Subject: Explain about code timer0, help me !
@Ttelmah : Thanks for helping !
  Topic: Explain about code timer0, help me !
iVoVa

Replies: 2
Views: 5881

PostForum: General CCS C Discussion   Posted: Sat Mar 12, 2011 11:39 pm   Subject: Explain about code timer0, help me !

#include <18F4520.h>
#fuses NOWDT,PUT,XT,NOPROTECT
#use delay(clock=4000000)
#byte PORTB = 0xF81
int16 count = 0;
int8 a;

//Chuong trinh ngat TMR0
#int_timer0
void interrupt_ ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group