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 69 matches
CCS Forum Index
Author Message
  Topic: MCP41xxx / MCP42xxx Driver
ratgod

Replies: 5
Views: 52230

PostForum: Code Library   Posted: Sun Feb 10, 2013 12:19 pm   Subject: MCP41xxx / MCP42xxx Driver
asmboy:
I have not heard of the MCP4251 until you mentioned it, having read the datasheet it looks like a nice digipot but this driver was written for the MCP41xxx and the MCP42xxx range, I'd perso ...
  Topic: compact flash card development
ratgod

Replies: 3
Views: 4980

PostForum: General CCS C Discussion   Posted: Fri Oct 30, 2009 8:07 pm   Subject: compact flash card development
I'm currently working on a project that has an IDE hard disk connected to a PIC18F4523, I based it on the text from this page:

http://www.pjrc.com/tech/8051/ide/wesley.html#8255ide

so far I can ...
  Topic: Quirks in the compiler?
ratgod

Replies: 1
Views: 2865

PostForum: General CCS C Discussion   Posted: Sat Mar 28, 2009 12:22 am   Subject: Quirks in the compiler?
Hi There,
I am using IDE,PCB,PCM and PCH version 4.071 and have been noticing something strange.
There is a set of code I am doing for work, based on the PIC18F2580. and it appears that when I c ...
  Topic: 3.3V CAN Transceiver?
ratgod

Replies: 1
Views: 6144

PostForum: General CCS C Discussion   Posted: Mon Mar 16, 2009 10:01 am   Subject: 3.3V CAN Transceiver?
Hi There,
I'm doing great with CAN communications at 5V level, but can anyone sugest a CAN Transceiver that will work at 3.3V? the MCP2551 is only 4.5-5.5v range, yet Microchip have their CAN Pic's ...
  Topic: trouble getting leading zero's or spaces to show
ratgod

Replies: 2
Views: 3350

PostForum: General CCS C Discussion   Posted: Tue Feb 24, 2009 10:48 pm   Subject: trouble getting leading zero's or spaces to show
thanks Ttelmah,

That worked a treat, now it shows correct spacing.

it's this sort of thing you miss when you teach yourself programming languagees Smile
  Topic: trouble getting leading zero's or spaces to show
ratgod

Replies: 2
Views: 3350

PostForum: General CCS C Discussion   Posted: Tue Feb 24, 2009 10:15 am   Subject: trouble getting leading zero's or spaces to show
Hi There,
I have a PIC18F2580 attached to a 20x4 hitachi LCD, it all works fine and my code is pretty stable, but I am unable to display the leading zero's or spaces of a floating point number.

...
  Topic: MCP41xxx / MCP42xxx Driver
ratgod

Replies: 5
Views: 52230

PostForum: Code Library   Posted: Tue Dec 02, 2008 4:33 am   Subject: MCP41xxx / MCP42xxx Driver
This is a function that was originally in the driver, I haven't tried it myself but the datasheet states :
Shutdown feature open circuits of all resistors for maximum power savings
I have to assume ...
  Topic: MCP41xxx / MCP42xxx Driver
ratgod

Replies: 5
Views: 52230

PostForum: Code Library   Posted: Mon Nov 24, 2008 11:00 pm   Subject: MCP41xxx / MCP42xxx Driver
Here is a driver for both the MCP41xxx and the MCP42xxx. Theoretically it can be used to drive both devices with the same driver.

It allows you to use more than one device and independently control ...
  Topic: LCD on Port A problem
ratgod

Replies: 2
Views: 4335

PostForum: General CCS C Discussion   Posted: Tue Oct 28, 2008 7:25 am   Subject: LCD on Port A problem
unfortunately it didn't do anything extra.
But a work colleague suggested putting pull up resistors and it worked a treat.

the INT_RDA is already in my code, I just removed it for the posting.

...
  Topic: LCD on Port A problem
ratgod

Replies: 2
Views: 4335

PostForum: General CCS C Discussion   Posted: Mon Oct 27, 2008 11:14 pm   Subject: LCD on Port A problem
I have a Hitachi type LCD I am trying to get to work on port A of a PIC18F4520. I have no problem with any other port, but nothing appears on the screen when using port A. I know the screen works and ...
  Topic: Code to split a number in digits (for 7-seg displays)
ratgod

Replies: 5
Views: 50645

PostForum: Code Library   Posted: Wed Sep 10, 2008 11:01 am   Subject: Code to split a number in digits (for 7-seg displays)
Here is another version done with purely numbers:
a little longer than the string version, but doesn't require any extra files to be included.
This has been written for 4 - digit screen, but can be ...
  Topic: Playback of 1 bit encoded wav and mp3 files.
ratgod

Replies: 5
Views: 58152

PostForum: Code Library   Posted: Sun Sep 07, 2008 9:47 pm   Subject: Playback of 1 bit encoded wav and mp3 files.
please ignore my last reply, I have created a small program to convert the MikroC C files that are exported from BTc to C file that you can just #include into your code

for (i=0; i<17; i++&# ...
  Topic: Playback of 1 bit encoded wav and mp3 files.
ratgod

Replies: 5
Views: 58152

PostForum: Code Library   Posted: Sun Sep 07, 2008 9:15 am   Subject: Playback of 1 bit encoded wav and mp3 files.
do you know how to include and play any of the exported files from the BTc Sound encoder from within the PIC?

or rather how could I #include the MikroC file and have that played using your routine? ...
  Topic: Sending a float through CANbus
ratgod

Replies: 7
Views: 14344

PostForum: General CCS C Discussion   Posted: Sun Sep 07, 2008 7:53 am   Subject: Sending a float through CANbus
What I'm doing here is simulating the buffer and conversion ready to drop into my CAN code.

The variables a,b,c,d are global as they represent the payload part of my packet buffer. Float1 would re ...
  Topic: Sending a float through CANbus
ratgod

Replies: 7
Views: 14344

PostForum: General CCS C Discussion   Posted: Sun Sep 07, 2008 12:35 am   Subject: Sending a float through CANbus
I've tried several different methods, including your 2 but I cannot seem to get any to work right.


float float1=123.45f,float2=0;
byte a=0,b=0,c=0,d=0;

void float_to_bytes(byte *a,*b,*c,* ...
 
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