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 14 matches
CCS Forum Index
Author Message
  Topic: DS18B20 and pic16f917
snooer

Replies: 1
Views: 3167

PostForum: General CCS C Discussion   Posted: Wed May 27, 2009 4:17 am   Subject: DS18B20 and pic16f917
I have a problem with reading data from it. And just wondering is't code problem ore circuit. I used normal power mode for ds18b20 and allways getting 0 value from it. i used 4k7 pullup rsistor as wri ...
  Topic: Low frequency counter
snooer

Replies: 0
Views: 2258

PostForum: General CCS C Discussion   Posted: Mon Apr 27, 2009 6:45 am   Subject: Low frequency counter

#include <16F877a.h>
#fuses HS,NOWDT,NOPROTECT,NOLVP
//#fuses XT,NOPUT,NOPROTECT,NOBROWNOUT,NOLVP,NOWDT
#use delay(clock=20000000)
#include <stdlib.h>
#include <lcd.c&g ...
  Topic: Wind speed counter
snooer

Replies: 10
Views: 8030

PostForum: General CCS C Discussion   Posted: Sun Apr 26, 2009 8:18 am   Subject: Wind speed counter
So is it possible to count how much time passed between timer start and stop? Converting result in seconds? Or counting frequency?
  Topic: 1490 Digital Compass
snooer

Replies: 2
Views: 3109

PostForum: General CCS C Discussion   Posted: Sun Apr 26, 2009 6:44 am   Subject: 1490 Digital Compass
Thx
  Topic: 1490 Digital Compass
snooer

Replies: 2
Views: 3109

PostForum: General CCS C Discussion   Posted: Sun Apr 26, 2009 5:59 am   Subject: 1490 Digital Compass
Maybe someone have used it and is it working simple as 4 outputs with logical 1 or 0 value?
  Topic: Wind speed counter
snooer

Replies: 10
Views: 8030

PostForum: General CCS C Discussion   Posted: Sun Apr 26, 2009 5:53 am   Subject: Wind speed counter
Yes I was thinking about this but so far the problem is not in hardware design. The problem is all about timer1. I still can't find the problem why I can't get 1 second when I'm using 1 Hz in input si ...
  Topic: Wind speed counter
snooer

Replies: 10
Views: 8030

PostForum: General CCS C Discussion   Posted: Fri Apr 24, 2009 1:55 pm   Subject: Wind speed counter
Can anyone tell me why can't I get seconds in LCD getting numbers from 500 to 11000?
do {

wait_for_low1();
set_timer1(0);
wait_for_low2();
...
  Topic: writing counters
snooer

Replies: 3
Views: 4273

PostForum: General CCS C Discussion   Posted: Fri Apr 24, 2009 12:09 pm   Subject: writing counters
int1 0 to 1

int8 0 to 255; -128 to 127

int16 0 to 65535; -32768 to 32767

int32 0 to 4294967295; -2147483648 to 2147483647

float32 -1.5 x 1045 to 3.4 x 1038
  Topic: Wind speed counter
snooer

Replies: 10
Views: 8030

PostForum: General CCS C Discussion   Posted: Fri Apr 24, 2009 11:59 am   Subject: Wind speed counter
I was thinking about that and yes it's redone code from examples because i need to count from low to low input.
void wait_for_low1() {

while(input(PIN_C1)); ...
  Topic: Wind speed counter
snooer

Replies: 10
Views: 8030

PostForum: General CCS C Discussion   Posted: Fri Apr 24, 2009 11:48 am   Subject: Wind speed counter
I'am new in C so maby can you show in code? Ore some example
  Topic: Wind speed counter
snooer

Replies: 10
Views: 8030

PostForum: General CCS C Discussion   Posted: Fri Apr 24, 2009 11:18 am   Subject: Wind speed counter
So I'm using IR and phototransistor and writing a program to count the wind speed. Counting process is simple detecting first low input and then second. Then getting result and of the time distance is ...
  Topic: DS18B20 and pic16f877a
snooer

Replies: 6
Views: 6746

PostForum: General CCS C Discussion   Posted: Thu Apr 23, 2009 5:13 am   Subject: DS18B20 and pic16f877a
Thx for help. I solved the problem if some one needs working code of pic16f877a and ds18b20 pm me Smile

Yea and i changed back to original code. from signed int16 to float for result
  Topic: DS18B20 and pic16f877a
snooer

Replies: 6
Views: 6746

PostForum: General CCS C Discussion   Posted: Wed Apr 22, 2009 11:37 am   Subject: DS18B20 and pic16f877a
Yep :(
  Topic: DS18B20 and pic16f877a
snooer

Replies: 6
Views: 6746

PostForum: General CCS C Discussion   Posted: Wed Apr 22, 2009 11:26 am   Subject: DS18B20 and pic16f877a
It was mistype but it wont change a lot still getting 0 value.
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group