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 40 matches
CCS Forum Index
Author Message
  Topic: 1st & 2nd Module of SDA & SCL
PROMOD

Replies: 4
Views: 13289

PostForum: General CCS C Discussion   Posted: Tue Dec 25, 2018 9:49 am   Subject: 1st & 2nd Module of SDA & SCL
[url=http://ww1.microchip.com/downloads/en/devicedoc/39616b.pdf]PIC18F4431

In the 40 pin PIC18F4431 device there are two SCL & SDA modules. One is in PORTC and another one is in PORTD.

Which ...
  Topic: I2C1 and I2C2
PROMOD

Replies: 3
Views: 14685

PostForum: General CCS C Discussion   Posted: Fri Nov 23, 2018 7:29 pm   Subject: I2C1 and I2C2
From the CCS C manual:

https://preview.ibb.co/jBbvFV/Untitled-1.jpg
I2C1 = Set SDA and SCL to the first module
I2C2 = Set SDA and SCL to the second module

What is first and second module? Some ...
  Topic: pwm dead band generator
PROMOD

Replies: 6
Views: 17449

PostForum: General CCS C Discussion   Posted: Tue Nov 20, 2018 6:11 am   Subject: pwm dead band generator
What is "pwm dead band generator"? Could someone please explain it?
  Topic: void ds1307_display()
PROMOD

Replies: 30
Views: 58609

PostForum: General CCS C Discussion   Posted: Wed Nov 14, 2018 8:56 pm   Subject: void ds1307_display()
The following is not working!

#define LCD_RS_PIN PIN_B0
#define LCD_RW_PIN PIN_B1
#define LCD_ENABLE_PIN PIN_B2
#define LCD_DATA4 PIN_B3
#define LCD_DATA5 PIN_B4
#define LCD_DATA6 PIN_B5
#def ...
  Topic: void ds1307_display()
PROMOD

Replies: 30
Views: 58609

PostForum: General CCS C Discussion   Posted: Wed Nov 14, 2018 9:30 am   Subject: void ds1307_display()
I just want to read time and date from ds1307 and to display it in LCD monitor. To do so I have written the following code. But its not working. Why is it not working?


void ds1307_display( ...
  Topic: void ds1307_display()
PROMOD

Replies: 30
Views: 58609

PostForum: General CCS C Discussion   Posted: Fri Nov 09, 2018 8:37 pm   Subject: void ds1307_display()
I am all most done with this program. I have learned many things by this program.

One more things I need to know why the following conditions have been used in the program. Is there any problem if ...
  Topic: void ds1307_display()
PROMOD

Replies: 30
Views: 58609

PostForum: General CCS C Discussion   Posted: Fri Nov 09, 2018 9:41 am   Subject: void ds1307_display()
One more question:

ds1307_write(1, minute);

In the above statement:
1=address
minute=data

Am I correct?
  Topic: void ds1307_display()
PROMOD

Replies: 30
Views: 58609

PostForum: General CCS C Discussion   Posted: Fri Nov 09, 2018 9:29 am   Subject: void ds1307_display()
second =i2c_read(1); // Read seconds from register 0
minute =i2c_read(1); // Read minuts from register 1
hour = i2c_read(1); ...
  Topic: void ds1307_display()
PROMOD

Replies: 30
Views: 58609

PostForum: General CCS C Discussion   Posted: Thu Nov 08, 2018 8:34 pm   Subject: void ds1307_display()
void ds1307_write(unsigned int8 address, data_){
i2c_start(); // Start I2C
i2c_write(0xD0); // DS1307 address
i2c_wr ...
  Topic: void ds1307_display()
PROMOD

Replies: 30
Views: 58609

PostForum: General CCS C Discussion   Posted: Thu Nov 08, 2018 11:30 am   Subject: void ds1307_display()
In the following program there is no "DS1307.c" included in the beginning then how are ds1307_display(), ds1307_write() functions working?

Also there is no "ds1307_read()" funct ...
  Topic: void ds1307_display()
PROMOD

Replies: 30
Views: 58609

PostForum: General CCS C Discussion   Posted: Wed Nov 07, 2018 11:55 am   Subject: void ds1307_display()
BTW, if you press F11 when your project is open, the CCS manual will open for you.As you instructed I start to search the manual. But there is also not clearly explained.

form the manual-
rtc_writ ...
  Topic: void ds1307_display()
PROMOD

Replies: 30
Views: 58609

PostForum: General CCS C Discussion   Posted: Wed Nov 07, 2018 9:06 am   Subject: void ds1307_display()
output_x(value) - Outputs an entire byte to the port.Now in the following code " output_b(0);" indicate which entire byte should put to the port B?

void main(){
setup_osci ...
  Topic: void ds1307_display()
PROMOD

Replies: 30
Views: 58609

PostForum: General CCS C Discussion   Posted: Sun Nov 04, 2018 4:21 am   Subject: void ds1307_display()
SET_TRIS_B(0b00001111);Does it mean that set 4 pins of PORTB as output pins and other 4 pins as input pin?
  Topic: void ds1307_display()
PROMOD

Replies: 30
Views: 58609

PostForum: General CCS C Discussion   Posted: Sun Nov 04, 2018 3:24 am   Subject: void ds1307_display()
Thanks Mr. temtronic!

One more:
SET_TRIS_B(0);= Set all pin of PORTB as output.
SET_TRIS_B(0x0F);=?

What does "SET_TRIS_B(0x0F);" say?
  Topic: void ds1307_display()
PROMOD

Replies: 30
Views: 58609

PostForum: General CCS C Discussion   Posted: Sat Nov 03, 2018 8:55 am   Subject: void ds1307_display()
void ds1307_write(unsigned int8 address, data_)
{
i2c_start(); // Start I2C
i2c_write(0xD0); // DS1307 address
i2c_write(address); ...
 
Page 1 of 3 Goto page 1, 2, 3  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group