Author |
Message |
Topic: I2C function for DS1302 RTC with 16f676 |
noman yousaf
Replies: 4
Views: 11849
|
Forum: General CCS C Discussion Posted: Sat Nov 05, 2016 9:42 pm Subject: I2C function for DS1302 RTC with 16f676 |
Look in your CCS drivers directory:
c:\program files\picc\drivers\ds1302.c
Also, it's SPI, not i2c.
sorry i made a mistake in writing. it was DS1307. |
Topic: I2C function for DS1302 RTC with 16f676 |
noman yousaf
Replies: 4
Views: 11849
|
Forum: General CCS C Discussion Posted: Sat Nov 05, 2016 8:29 pm Subject: I2C function for DS1302 RTC with 16f676 |
I want to use RTC DS1307 with PIC16F676. Is there any library function which can do this?
Please guide me.
Regards |
Topic: pic16f886 uart receiving problem |
noman yousaf
Replies: 1
Views: 6931
|
Forum: General CCS C Discussion Posted: Tue Jun 21, 2016 2:04 pm Subject: pic16f886 uart receiving problem |
hi all,
I am using pic16f886 and want to receive the 16 bit data by interrupt, from another same MCU.
Can someone send me the code?
I have this code for transmitting the data 55 by int tmp19.
vo ... |
Topic: USB bar code scanner interface with PIC18F2550 |
noman yousaf
Replies: 7
Views: 19425
|
Forum: General CCS C Discussion Posted: Thu May 26, 2016 9:59 pm Subject: USB bar code scanner interface with PIC18F2550 |
thanks all to guide me.
need more guideline.
can i use arduino usb host shield for my purpose?
if yes then can i use shield directly to any PIC MCU or should use arduino it self with? |
Topic: USB bar code scanner interface with PIC18F2550 |
noman yousaf
Replies: 7
Views: 19425
|
Forum: General CCS C Discussion Posted: Wed May 25, 2016 10:01 pm Subject: USB bar code scanner interface with PIC18F2550 |
hi all
i want to get data from USB bar code scanner on 16X2 LCD via PIC18F2550.
Need hints to write code.
Can someone help me? |
Topic: problem about putting value in int or float or other variabl |
noman yousaf
Replies: 7
Views: 19975
|
Forum: General CCS C Discussion Posted: Wed Apr 13, 2016 7:17 pm Subject: problem about putting value in int or float or other variabl |
Actually it was just an example equation. There is a variable in this equation but i put value of that. I just wanted to ask that can i solve these types of equations by C in CCS?
Secondly i want the ... |
Topic: problem about putting value in int or float or other variabl |
noman yousaf
Replies: 7
Views: 19975
|
Forum: General CCS C Discussion Posted: Wed Apr 13, 2016 10:48 am Subject: problem about putting value in int or float or other variabl |
thanks to all.
i used the float because in this, decimal point. my actual problem is to solve
(23.45)*SIN(RADIANS((360/365)*(90-81)))
and i need result in decimal number.
how can i do that ?
... |
Topic: problem about putting value in int or float or other variabl |
noman yousaf
Replies: 7
Views: 19975
|
Forum: General CCS C Discussion Posted: Wed Apr 13, 2016 9:26 am Subject: problem about putting value in int or float or other variabl |
hi
when i put the value 0x7543 in an "int16", in RAM that is shown as it is. But
when i put 0x7543 in float, it gives another 32 bit value in RAM which is "866A8D"
what does ... |
Topic: RTC problem |
noman yousaf
Replies: 6
Views: 12479
|
Forum: General CCS C Discussion Posted: Thu Jan 14, 2016 5:53 pm Subject: RTC problem |
these lines in the driver...
#define RTC_SDA PIN_C4
#define RTC_SCL PIN_C3
define(tell the driver) which pins YOU attach the DS1307 to.
From your description you're probably using a PIC t ... |
Topic: RTC problem |
noman yousaf
Replies: 6
Views: 12479
|
Forum: General CCS C Discussion Posted: Thu Jan 14, 2016 5:47 pm Subject: RTC problem |
these lines in the driver...
#define RTC_SDA PIN_C4
#define RTC_SCL PIN_C3
define(tell the driver) which pins YOU attach the DS1307 to.
From your description you're probably using a PIC t ... |
Topic: RTC problem |
noman yousaf
Replies: 6
Views: 12479
|
Forum: General CCS C Discussion Posted: Sat Jan 09, 2016 7:06 am Subject: RTC problem |
No. Not at all.
Use the real ds1307 driver:
http://www.ccsinfo.com/forum/viewtopic.php?t=23255
in that code, there is an error in DS1307.c (the code written in upper)
error is about pinc3,c ... |
Topic: RTC problem |
noman yousaf
Replies: 6
Views: 12479
|
Forum: General CCS C Discussion Posted: Fri Jan 08, 2016 8:01 pm Subject: RTC problem |
hi,
I opened 2416.c
and changed the device address from 0A to 0D (for DS1307 RTC).
and removed oring for use the 3 msb address bits.
then i saved it as 1307.c
will it work as RTC instead of E ... |
Topic: timer output on ports problem |
noman yousaf
Replies: 4
Views: 11268
|
Forum: General CCS C Discussion Posted: Fri Jan 08, 2016 7:54 pm Subject: timer output on ports problem |
i wrote this program
//this software runs the timer1 as counter and put the 16 bit value
// to portb and portd
#include <18F458.h>
#USE DELAY (crystal=4MHz)
UNSIGNED INT ... |
Topic: timer output on ports problem |
noman yousaf
Replies: 4
Views: 11268
|
Forum: General CCS C Discussion Posted: Fri Jan 08, 2016 7:47 pm Subject: timer output on ports problem |
SETUP_TIMER_1(RTCC_EXT_H_TO_L);
This is wrong. The value in bold is not a correct parameter for the
setup_timer_1() function. Look in the .H file for your PIC in the
SETUP_TIMER_1 sect ... |
Topic: timer output on ports problem |
noman yousaf
Replies: 4
Views: 11268
|
Forum: General CCS C Discussion Posted: Thu Jan 07, 2016 9:57 am Subject: timer output on ports problem |
I want to get the value 16 bit timer/counter1 (as counter) on port b and c.
I set the timer1 as follows. Now how can i get the values of timer on ports?
void main()
{
TMR = 0X26;
... |
|