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 168 matches
CCS Forum Index
Author Message
  Topic: QEI and VELR math Prob
Kenny

Replies: 1
Views: 4045

PostForum: General CCS C Discussion   Posted: Sat Feb 12, 2011 4:25 pm   Subject: QEI and VELR math Prob
I think that the measurement should be about 10000 (microseconds) with the setup details provided, and no conversion would be necessary.

If that is true, then the task would be to find out why 39 i ...
  Topic: sine to square conversion using pic16f877 adc program
Kenny

Replies: 14
Views: 14999

PostForum: General CCS C Discussion   Posted: Wed Jan 05, 2011 4:15 pm   Subject: sine to square conversion using pic16f877 adc program
LOL.

I remember those shoe x-ray machines - it was fun to watch as you wiggled your toes! Would have been in the late 1940's or early 1950s.

Those timing lights that are used to set engine timin ...
  Topic: Measuring speed with QEI
Kenny

Replies: 15
Views: 28075

PostForum: General CCS C Discussion   Posted: Thu Jul 29, 2010 6:33 pm   Subject: Measuring speed with QEI
There are several other problems without looking at the code too closely.

1. The input to the timer 5 prescaler is Fosc/4 not Fosc.

2. T5 will overflow at low speeds. Define the minimum rotatio ...
  Topic: multiple 18B20 - need working example - i'm stupid in 1-wire
Kenny

Replies: 10
Views: 27791

PostForum: General CCS C Discussion   Posted: Sat Nov 07, 2009 3:04 pm   Subject: multiple 18B20 - need working example - i'm stupid in 1-wire
For one device the address is not required. Either use the code in the link, or the code in the code library section of this forum. However, the code above should work with just one device connected. ...
  Topic: ADC of PIC18F4431, help me. Please!
Kenny

Replies: 5
Views: 11095

PostForum: General CCS C Discussion   Posted: Sun Sep 27, 2009 2:59 pm   Subject: ADC of PIC18F4431, help me. Please!
I have tryed it but it is false with 18F4431. So I don't understand what must i do if i use 18F4431.

Are the AVdd and AVss pins connected?

AVdd to Vdd, and AVss to Vss.
  Topic: Trouble getting a DS18B20 to work in parasite power mode...
Kenny

Replies: 28
Views: 75325

PostForum: General CCS C Discussion   Posted: Wed Sep 16, 2009 9:13 am   Subject: Trouble getting a DS18B20 to work in parasite power mode...
Edited:

Deleted post.

Testing showed that the delay at the end of write_bit() wasn't critical within the specified timeslot width.
Had to be a long way outside the specified range before it st ...
  Topic: Trouble getting a DS18B20 to work in parasite power mode...
Kenny

Replies: 28
Views: 75325

PostForum: General CCS C Discussion   Posted: Fri Sep 11, 2009 7:02 pm   Subject: Trouble getting a DS18B20 to work in parasite power mode...
Joe

Only thing I spotted was that the fuse should be XT instead of HS
for 4MHz.

It worked with the code 'as is' here
http://www.ccsinfo.com/forum/viewtopic.php?t=19255
Just added output_high( ...
  Topic: 30f2010 QEI extending count range
Kenny

Replies: 1
Views: 3000

PostForum: General CCS C Discussion   Posted: Sat Mar 07, 2009 11:13 pm   Subject: 30f2010 QEI extending count range
The counter will work in the range of 0 to 0xFFFF (65535). The range can be extended by sampling the count frequently, and adding the difference in sampled values between successive samples to a signe ...
  Topic: i2c and clock frequency
Kenny

Replies: 6
Views: 9151

PostForum: General CCS C Discussion   Posted: Tue Mar 03, 2009 11:44 pm   Subject: i2c and clock frequency
The 16F88 has hardware for only an i2c slave (SSP) so it's bit banging I'm afraid.

The clock speed never reaches 100kHz regardless of the settings. With 8MHz it gets to about 83kHz, and when FAST = ...
  Topic: LM35 temp sensor reading (10°C off)
Kenny

Replies: 18
Views: 38791

PostForum: General CCS C Discussion   Posted: Mon Mar 02, 2009 10:13 pm   Subject: LM35 temp sensor reading (10°C off)
The LM34 can go down to about 5F (-15C) without using a negative supply.
The sensitivity is 18mV/degree C (10mV/degree F by 9/5).
  Topic: comparator not working (16F887)
Kenny

Replies: 4
Views: 5421

PostForum: General CCS C Discussion   Posted: Mon Mar 02, 2009 6:50 pm   Subject: comparator not working (16F887)
Could be a compiler bug. With version 4.084 the startup code clears all the ANSEL bits but the appropriate bit for the selected pin doesn't get set by setup_comparator().

As a work-around try

#b ...
  Topic: Counting Pulses during sleep mode
Kenny

Replies: 13
Views: 12987

PostForum: General CCS C Discussion   Posted: Mon Mar 02, 2009 12:23 am   Subject: Counting Pulses during sleep mode
Yes. Counting occurs on the rising edge of the input though. I tested it on the 18F2520. If it's a reed switch then contact bounce could be a problem - should be easily fixed with a resistor and capac ...
  Topic: Problem with I2C between PIC18F and MAX5820 (DAC)
Kenny

Replies: 3
Views: 5347

PostForum: General CCS C Discussion   Posted: Mon Feb 16, 2009 4:43 pm   Subject: Problem with I2C between PIC18F and MAX5820 (DAC)
I haven't used this chip, but here are a few things to check.


#define DAC 0x70


This implies the MAX5820L part with the Vadd pin connected to GND.
Confirm that the reference is connected. ...
  Topic: three DS18B20...
Kenny

Replies: 31
Views: 37403

PostForum: General CCS C Discussion   Posted: Sun Feb 15, 2009 9:28 pm   Subject: three DS18B20...
It worked for me using a 16F876. A 16x2 lcd was connected to port B and the CCS driver lcd.c was used. Compiler version was 4.084.

I had to make changes. In FindDevices() the device number was disp ...
  Topic: three DS18B20...
Kenny

Replies: 31
Views: 37403

PostForum: General CCS C Discussion   Posted: Sat Feb 14, 2009 3:38 pm   Subject: three DS18B20...
Very good Smile

I will test it on hardware at work.
The lcd_init() statement should be before FindDevices() though.
 
Page 1 of 12 Goto page 1, 2, 3 ... 10, 11, 12  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group