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 71 matches
CCS Forum Index
Author Message
  Topic: Can open ADC port full time?
Sydney

Replies: 2
Views: 4839

PostForum: General CCS C Discussion   Posted: Wed Mar 18, 2009 4:51 pm   Subject: Can open ADC port full time?
You dont need to turn it off, but you need to read the datasheet as you are using adc_clock_internal, which you shouldnt be.
  Topic: PWM on 18f1230/1330
Sydney

Replies: 4
Views: 5971

PostForum: General CCS C Discussion   Posted: Mon Mar 16, 2009 12:05 am   Subject: PWM on 18f1230/1330
You'd normally want 120 degree phases, not 90 degree....

Yeah thats what I meant Smile
  Topic: PWM on 18f1230/1330
Sydney

Replies: 4
Views: 5971

PostForum: General CCS C Discussion   Posted: Sun Mar 15, 2009 9:45 am   Subject: PWM on 18f1230/1330
Presumably you want the 3 pwms 90° out of phase, and I dont think that can be done.
  Topic: how do I know my PIC is working
Sydney

Replies: 1
Views: 2636

PostForum: General CCS C Discussion   Posted: Sat Mar 14, 2009 3:41 am   Subject: how do I know my PIC is working
Try it on a programmer you know is working, or try another pic.
  Topic: fix time for the interrupt
Sydney

Replies: 2
Views: 3269

PostForum: General CCS C Discussion   Posted: Sat Mar 14, 2009 3:38 am   Subject: fix time for the interrupt
You need to post a test program that will compile and run, exactly what it should do, and what the problem is. It looks like a bit of a sideways approach to a simple task to me.
  Topic: About PIC16C71
Sydney

Replies: 2
Views: 3365

PostForum: General CCS C Discussion   Posted: Sat Mar 14, 2009 3:27 am   Subject: About PIC16C71
Yeah its probably one time programmable, unless its a windowed JW(I think) device.

You can still get the 16c71 I believe, I chose a 16f88 to replace it in one of my projects, worked well, they're b ...
  Topic: Interrupts disabled warning. Why ?
Sydney

Replies: 8
Views: 6600

PostForum: General CCS C Discussion   Posted: Sat Mar 14, 2009 3:19 am   Subject: Interrupts disabled warning. Why ?
The 100 us delay, i just put it there to allow for the adc to stabalize after conversion, just in case. I'm not really sure if i need that there or not.

If you set the adc up properly then no you p ...
  Topic: Interrupts disabled warning. Why ?
Sydney

Replies: 8
Views: 6600

PostForum: General CCS C Discussion   Posted: Sat Mar 14, 2009 3:10 am   Subject: Interrupts disabled warning. Why ?
Would it work if I disabled the external interrupt as soon as I entered the isr and enabled it again while exiting the isr ?

The compiler does this automagically, the problem being the interrupt wo ...
  Topic: 2's Complement Bit toggle
Sydney

Replies: 18
Views: 22198

PostForum: General CCS C Discussion   Posted: Fri Mar 13, 2009 3:00 pm   Subject: 2's Complement Bit toggle
Its because your 14 bit number say 0b11111111111111 = -1 when its put into your 16 bit var it becomes 0b0011111111111111 = 16383, so the sign bit 14 needs copying into 15 and 16 to make it -1 again
  Topic: Array in CCS
Sydney

Replies: 4
Views: 6443

PostForum: General CCS C Discussion   Posted: Fri Mar 13, 2009 2:19 pm   Subject: Array in CCS
BYTE array[8]

...

void main(void){

int mynum = 0b00010101;
...
for int i =0; i<8; i++){
array[i] = mynum & 1;
mynum >>= 1;
}
...
  Topic: Interrupts disabled warning. Why ?
Sydney

Replies: 8
Views: 6600

PostForum: General CCS C Discussion   Posted: Fri Mar 13, 2009 1:27 am   Subject: Interrupts disabled warning. Why ?
I dont think those delays in the isr are really necessary are they?
  Topic: Interrupts disabled warning. Why ?
Sydney

Replies: 8
Views: 6600

PostForum: General CCS C Discussion   Posted: Fri Mar 13, 2009 1:24 am   Subject: Interrupts disabled warning. Why ?
a) To prevent re-entrancy, ie interrupting inside a delay_ms call, then calling it again.
b) Because they are reenabled after.

I think this is the same problem http://www.ccsinfo.com/forum/viewtop ...
  Topic: LCD won't display
Sydney

Replies: 3
Views: 3947

PostForum: General CCS C Discussion   Posted: Thu Mar 12, 2009 5:20 pm   Subject: LCD won't display
Doh Embarassed Such a noob

Very Happy LOL, I'm sure everyone makes those sort of mistakes, they are unspottable until some one points it out Smile
  Topic: ADIS16350 Driver Creation
Sydney

Replies: 10
Views: 11370

PostForum: General CCS C Discussion   Posted: Thu Mar 12, 2009 4:07 pm   Subject: ADIS16350 Driver Creation
You could also try a slower spi speed, to rule that out.
  Topic: ADIS16350 Driver Creation
Sydney

Replies: 10
Views: 11370

PostForum: General CCS C Discussion   Posted: Thu Mar 12, 2009 4:05 pm   Subject: ADIS16350 Driver Creation
Do you get the odd bad sample with the code fvm posted, you removed the part that drives cs high to signify the end of the data frame, but the datasheet is a little unclear if this is necessary or not ...
 
Page 1 of 5 Goto page 1, 2, 3, 4, 5  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group