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 11 matches
CCS Forum Index
Author Message
  Topic: Timer1 is 20% off on PIC18F8722
marc10k

Replies: 5
Views: 7510

PostForum: General CCS C Discussion   Posted: Mon Sep 14, 2009 6:16 am   Subject: Timer1 is 20% off on PIC18F8722
@FvM

Thank you for your help. After I changed to 4 states it works well. I must have been blind to see that.
  Topic: Timer1 is 20% off on PIC18F8722
marc10k

Replies: 5
Views: 7510

PostForum: General CCS C Discussion   Posted: Mon Sep 14, 2009 1:41 am   Subject: Timer1 is 20% off on PIC18F8722
I am using only the 32 MHz system clock. T1OSC (T1OSO and T1OSI Pins) are used as a output Pins.
  Topic: Timer1 is 20% off on PIC18F8722
marc10k

Replies: 5
Views: 7510

PostForum: General CCS C Discussion   Posted: Mon Sep 14, 2009 12:52 am   Subject: Timer1 is 20% off on PIC18F8722
Hello

I am using Timer1 to count my operating hours of the device and store the value every 15 min into the EEPROM. After 71 hours of operating the counter shows me only 57 hours. This is a differ ...
  Topic: 16bit to eeprom?
marc10k

Replies: 6
Views: 6417

PostForum: General CCS C Discussion   Posted: Mon Jan 14, 2008 6:28 am   Subject: 16bit to eeprom?
I changed the code a bit to just write and read 16bit. Now you can call the function for reading:
Internal_EEPROM(0, your_adresse, your_16bit_variable)
writing is:
Internal_EEPROM(1, your_adresse, ...
  Topic: 16bit to eeprom?
marc10k

Replies: 6
Views: 6417

PostForum: General CCS C Discussion   Posted: Mon Jan 14, 2008 1:15 am   Subject: 16bit to eeprom?
This code is used for a Pic18


/******************************************************************************
* *
* ...
  Topic: Float to int32, exact bit copy
marc10k

Replies: 6
Views: 10110

PostForum: General CCS C Discussion   Posted: Fri Jul 27, 2007 2:54 am   Subject: Float to int32, exact bit copy
Tried both functions and they work fine. Just the LSB are swapped with the MSB compared to my code.
Thanks again for some inspiration and better understanding of C.

Marcus
  Topic: Float to int32, exact bit copy
marc10k

Replies: 6
Views: 10110

PostForum: General CCS C Discussion   Posted: Fri Jul 27, 2007 2:04 am   Subject: Float to int32, exact bit copy
Thanks Ttelmah

Now it works the way I want it.

Here my function for copying the bits from a float into an int32. Probably some one else might need it. It might not be the best or the most elega ...
  Topic: Float to int32, exact bit copy
marc10k

Replies: 6
Views: 10110

PostForum: General CCS C Discussion   Posted: Wed Jul 25, 2007 5:47 am   Subject: Float to int32, exact bit copy
The union is a good idea. The problem is I have to change a lot of code in my project in order to get it to work. Therefore it would be easier for me to get the float into the int32. I just want to co ...
  Topic: Float to int32, exact bit copy
marc10k

Replies: 6
Views: 10110

PostForum: General CCS C Discussion   Posted: Wed Jul 25, 2007 3:15 am   Subject: Float to int32, exact bit copy
Hello

A int32 variable (return_value) is used to store 8, 16, 24 or 32 bits of data. These data will be send via RS232 later. If only 8 bity are stored only 1 byte will be transmitted, if 16 bits ...
  Topic: EEPROM writing problem
marc10k

Replies: 2
Views: 6283

PostForum: General CCS C Discussion   Posted: Mon Jul 16, 2007 12:20 am   Subject: EEPROM writing problem
Thanks PCM Programmer

It worked fine after I moved the '&' from your first example in front of DATA.
  Topic: EEPROM writing problem
marc10k

Replies: 2
Views: 6283

PostForum: General CCS C Discussion   Posted: Fri Jul 13, 2007 4:50 am   Subject: EEPROM writing problem
Hello

I want to write a couple of bytes into the internal EEPROM from my 18F8722 with compiler version 4.042.
When I call the function Internal_EEPROM with 0x00 as data and write one byte it work ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group