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 25 matches
CCS Forum Index
Author Message
  Topic: spi_read(X) not behaving as expected
Bollo

Replies: 3
Views: 5415

PostForum: General CCS C Discussion   Posted: Thu Jan 12, 2012 3:51 am   Subject: spi_read(X) not behaving as expected
Thanks for the replies. There is already a delay_us(10) between each spi_write(10-14) on the master. I will attempt to increase that delay to see if it has any effect later tonight, I'll also post the ...
  Topic: spi_read(X) not behaving as expected
Bollo

Replies: 3
Views: 5415

PostForum: General CCS C Discussion   Posted: Wed Jan 11, 2012 8:07 pm   Subject: spi_read(X) not behaving as expected
This is some test code running on an SPI slave.



#include <18F46K20.h>

#FUSES NOWDT //No Watch Dog Timer
#FUSES INTRC_IO //High speed osc with HW ena ...
  Topic: PIC18F65J50 USB "Unknown Device"
Bollo

Replies: 7
Views: 11755

PostForum: General CCS C Discussion   Posted: Sun Sep 25, 2011 6:59 pm   Subject: PIC18F65J50 USB "Unknown Device"
I think I have found a second problem here. It would seem the PLL is not being used with the code above. I set the osc to output on RA6 and I get a 1MHz output. This 1MHz x 4 x 2 gives you the 8MHz in ...
  Topic: PIC18F65J50 USB "Unknown Device"
Bollo

Replies: 7
Views: 11755

PostForum: General CCS C Discussion   Posted: Sat Sep 24, 2011 10:30 am   Subject: PIC18F65J50 USB "Unknown Device"
Thanks for letting me know! When I chose this chip I took a look at the oscillator diagram in the data sheet and it does suggest the internal osc could be used. But yes you are sadly correct, TABLE 2- ...
  Topic: PIC18F65J50 USB "Unknown Device"
Bollo

Replies: 7
Views: 11755

PostForum: General CCS C Discussion   Posted: Sat Sep 24, 2011 8:40 am   Subject: PIC18F65J50 USB "Unknown Device"
OK. I think I have have it set properly for low speed usb. Problem is the device is still unrecognised. Does any one know if I'm missing something that is not being set in the CCS USB drivers? Or shou ...
  Topic: PIC18F65J50 USB "Unknown Device"
Bollo

Replies: 7
Views: 11755

PostForum: General CCS C Discussion   Posted: Fri Sep 23, 2011 3:50 pm   Subject: PIC18F65J50 USB "Unknown Device"
Thanks for the reply. I wasn't aware of the restriction imposed by the internal clock. The previous chip I had used with USB (PIC18F47J53) had a LS48MHZ fuse to set low speed. Having looked at the fus ...
  Topic: PIC18F65J50 USB "Unknown Device"
Bollo

Replies: 7
Views: 11755

PostForum: General CCS C Discussion   Posted: Fri Sep 23, 2011 12:26 pm   Subject: PIC18F65J50 USB "Unknown Device"
Hello I'm trying to get USB HID working with this PIC. However windows claims the device is unknown and gives error code 43. I have double checked the D+ and D- connections and they are correct.

He ...
  Topic: Floats are broken?
Bollo

Replies: 10
Views: 10281

PostForum: General CCS C Discussion   Posted: Thu Sep 15, 2011 10:04 am   Subject: Floats are broken?
I'm using a PIC18F26K20, and yes there seems to be bugs with floats and/or printf and floats. I have not come across a consistent work around so far.
  Topic: Floats are broken?
Bollo

Replies: 10
Views: 10281

PostForum: General CCS C Discussion   Posted: Thu Sep 15, 2011 9:06 am   Subject: Floats are broken?
Sorry I should explain more. The float constant is not really a constant, it was an experiment to see if initialising the float to non zero would help the problem (see PCM's post above). The returning ...
  Topic: Floats are broken?
Bollo

Replies: 10
Views: 10281

PostForum: General CCS C Discussion   Posted: Thu Sep 15, 2011 8:19 am   Subject: Floats are broken?
Oh I take it back! The one explicit cast I didn't try was casting current_speed to a float (even though a handful of lines above I initialise the variable as a float)



int8 ENC_GET_SPEED( ...
  Topic: Floats are broken?
Bollo

Replies: 10
Views: 10281

PostForum: General CCS C Discussion   Posted: Thu Sep 15, 2011 7:04 am   Subject: Floats are broken?
I initialised all my floats to non zero (1's in fact) and still no change, the only thing that will make it work is sprintf / printf. It looks like floats are broken Shocked I will attempt to remove ...
  Topic: Floats are broken?
Bollo

Replies: 10
Views: 10281

PostForum: General CCS C Discussion   Posted: Wed Sep 14, 2011 7:37 pm   Subject: Floats are broken?
Thanks for the replies. I already tried explicitly casting to no avail. I will attempt initialising them to a non zero number tomorrow (GMT) and let you know how it goes.
  Topic: Floats are broken?
Bollo

Replies: 10
Views: 10281

PostForum: General CCS C Discussion   Posted: Wed Sep 14, 2011 4:12 pm   Subject: Floats are broken?
Hello I'm using CCS 4.120 currently and I have a very concerning problem. I have a calculation involving heavy use of floats. If I printf or sprintf the result of the calculation the result is correct ...
  Topic: [SOLVED] Working GLCD S1D13700 driver?
Bollo

Replies: 2
Views: 8572

PostForum: General CCS C Discussion   Posted: Sat Sep 03, 2011 8:59 am   Subject: [SOLVED] Working GLCD S1D13700 driver?
I discovered that the CCS driver structure was actually mostly correct. I took the system settings from the C18 driver and came up with a working driver.

/////////////////////////////////////////// ...
  Topic: [SOLVED] Working GLCD S1D13700 driver?
Bollo

Replies: 2
Views: 8572

PostForum: General CCS C Discussion   Posted: Fri Sep 02, 2011 5:55 pm   Subject: [SOLVED] Working GLCD S1D13700 driver?
Hi. I have a Powertip PG320240WRF-HE9 which has a S1D13700 controller. I'm using a PIC18F46K20. I have searched the forums here and found a driver modifed by Eduardo Guilherme Brandt in 2006. I looked ...
 
Page 1 of 2 Goto page 1, 2  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group