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 58 matches
CCS Forum Index
Author Message
  Topic: Help a newbie to spi?
jfk1965

Replies: 18
Views: 21643

PostForum: General CCS C Discussion   Posted: Wed Sep 19, 2007 8:01 am   Subject: Help a newbie to spi?
How are you actually 'testing' this?.
You say that you only have the test meter attached to the pot. This may be the problem.
Digital potentiometers, behave significantly differently from 'real' one ...
  Topic: Help a newbie to spi?
jfk1965

Replies: 18
Views: 21643

PostForum: General CCS C Discussion   Posted: Wed Sep 19, 2007 7:44 am   Subject: Help a newbie to spi?
Thankyou for all the help you are giving ckielstra.

I will test the code you have modified for me. One thing that makes me think that there is nothing wrong with the code as such is that when the ...
  Topic: Help a newbie to spi?
jfk1965

Replies: 18
Views: 21643

PostForum: General CCS C Discussion   Posted: Wed Sep 19, 2007 4:06 am   Subject: Help a newbie to spi?
Anyone any other ideas why once it has passed 38K it won't go passed it again?
I've looked and looked I just can't see a problem.

Thanks

JFK
  Topic: Help a newbie to spi?
jfk1965

Replies: 18
Views: 21643

PostForum: General CCS C Discussion   Posted: Tue Sep 18, 2007 7:58 am   Subject: Help a newbie to spi?
I'm measuring the 38K with a digital multimeter across the digipot terminals there is no other circuitry connected to the digipot terminals, so no influence from elsewhere.

Thanks for the code amen ...
  Topic: Help a newbie to spi?
jfk1965

Replies: 18
Views: 21643

PostForum: General CCS C Discussion   Posted: Tue Sep 18, 2007 6:53 am   Subject: Help a newbie to spi?
OK thanks

The program i'm using is this one, the pot is 100K and automatically goes to midpoint at powerup unless changed by the data sent. The program i'm using is this.


#include <16f690. ...
  Topic: Help a newbie to spi?
jfk1965

Replies: 18
Views: 21643

PostForum: General CCS C Discussion   Posted: Tue Sep 18, 2007 4:47 am   Subject: Help a newbie to spi?
Thanks can't see any difference in operation using the original one to the one you suggested later.

Noticed a problem and I don't know why it does this as it simulated out ok.

When I first switc ...
  Topic: Beginer needs help for PIC18F4550 !
jfk1965

Replies: 4
Views: 4219

PostForum: General CCS C Discussion   Posted: Thu Sep 13, 2007 8:58 am   Subject: Beginer needs help for PIC18F4550 !
do you have current limiting resitors in series with your LED's?
Also try a 100nF capacitor from MCLR to ground.

JFK
  Topic: Help a newbie to spi?
jfk1965

Replies: 18
Views: 21643

PostForum: General CCS C Discussion   Posted: Thu Sep 13, 2007 6:46 am   Subject: Help a newbie to spi?
Thanks

program works now surprise surprise.

I'm now on the way to the opticians to get my eye's tested.

Thanks again

JFK
  Topic: Help a newbie to spi?
jfk1965

Replies: 18
Views: 21643

PostForum: General CCS C Discussion   Posted: Thu Sep 13, 2007 4:54 am   Subject: Help a newbie to spi?
Thanks for pointing out those errors , could you clarify what you mean on point 2?

The problem I have now is that the data coming out of the PIC is not changing the resistance value of the digipot. ...
  Topic: Help a newbie to spi?
jfk1965

Replies: 18
Views: 21643

PostForum: General CCS C Discussion   Posted: Thu Sep 13, 2007 3:01 am   Subject: Help a newbie to spi?
OK thanks for the pointer to the command byte have to admit I was guity of not reading that far on the data sheet.

I now have this program which works ok

#include <16f690.h>
#fuses XT,NOW ...
  Topic: Help a newbie to spi?
jfk1965

Replies: 18
Views: 21643

PostForum: General CCS C Discussion   Posted: Mon Sep 10, 2007 7:49 am   Subject: Help a newbie to spi?
Hi

I'm attempting to use spi for the first time.

I'm using a 16F690 and a MCP41100 digital potentionmeter.

I read a post a while ago and I have a small test program to get the spi working ...
  Topic: Need help with SPI master-slave interface
jfk1965

Replies: 14
Views: 12827

PostForum: General CCS C Discussion   Posted: Wed Aug 22, 2007 8:30 am   Subject: Need help with SPI master-slave interface
Try removing the inverted commas in the for statement I don't think thay are needed.

So
for (i='0'; i<='9'; i++)

becomes
for (i=0; i<=9; i++)

JFK
  Topic: accelerometer adc code
jfk1965

Replies: 12
Views: 13088

PostForum: General CCS C Discussion   Posted: Wed Aug 15, 2007 1:44 am   Subject: accelerometer adc code
What problems are you having?
what version is your compiler?

JFK
  Topic: accelerometer adc code
jfk1965

Replies: 12
Views: 13088

PostForum: General CCS C Discussion   Posted: Wed Aug 15, 2007 1:19 am   Subject: accelerometer adc code
You need to put a delay in between selecting the adc channel and reading that channel. Time doesn't seem to be an issue s I wouls suggest a 100us delay should be ok.

JFK
  Topic: Sensor Voltage Output
jfk1965

Replies: 8
Views: 7635

PostForum: General CCS C Discussion   Posted: Thu Aug 09, 2007 6:49 am   Subject: Sensor Voltage Output
If your hardware is setup to use Vcc as the Ref then i'm afraid your stuck with it. A high accuracy Vref will require hardware changes.

Try to get as tight a tolerance Regulator that supplies the ...
 
Page 1 of 4 Goto page 1, 2, 3, 4  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group