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 147 matches
CCS Forum Index
Author Message
  Topic: using level translators for 5v PIC with 3v I2C
languer

Replies: 7
Views: 13056

PostForum: General CCS C Discussion   Posted: Wed Mar 26, 2014 11:41 pm   Subject: using level translators for 5v PIC with 3v I2C
Along the same lines of what dyeatman showed;

https://www.sparkfun.com/products/12009

https://www.sparkfun.com/products/11955

I've implemented the FET solution on some of my designs a few tim ...
  Topic: [OT] Jam/Interference Resistant Commercial Comm Equipment
languer

Replies: 13
Views: 16983

PostForum: General CCS C Discussion   Posted: Sun Mar 02, 2014 9:16 pm   Subject: [OT] Jam/Interference Resistant Commercial Comm Equipment
What does your equipment do? What is it you provide that gets destroyed? If whatever you provide can get tagged to a specific individual at a specific time, then you could implement some sort of logge ...
  Topic: CCS & MPLAB (8.9) question
languer

Replies: 1
Views: 5002

PostForum: General CCS C Discussion   Posted: Tue Jan 14, 2014 11:47 pm   Subject: CCS & MPLAB (8.9) question
Hi all,
I am re-staging a new PC and have an MPLAB question. In the past I've used EditPlus and the PCM/PCH line compiler. It provides most of the features I've needed (syntax highlight, autocomplete ...
  Topic: MCU reset on spike
languer

Replies: 7
Views: 9084

PostForum: General CCS C Discussion   Posted: Sun May 05, 2013 12:45 pm   Subject: MCU reset on spike
The CODE section on the forum is to post working code which you wish to share with other users.


++++++++++++++++++
Moved to General Discussion forum.

- Forum Moderator
++++++++++++++++++
  Topic: Simple driver for OOK Wireless Messaging - Single Data Byte
languer

Replies: 0
Views: 23606

PostForum: Code Library   Posted: Tue Apr 23, 2013 1:04 am   Subject: Simple driver for OOK Wireless Messaging - Single Data Byte
Simple driver to send and receive a single data byte using inexpensive OOK wireless modules (315MHz, 433MHz) and RS232. Following the driver is example code on how to use it for transmission and recep ...
  Topic: The quirks and flaws of the CCS compiler
languer

Replies: 27
Views: 79576

PostForum: General CCS C Discussion   Posted: Tue Apr 16, 2013 3:45 pm   Subject: The quirks and flaws of the CCS compiler
There is a CCS compiler bug in ver 1.140
This right there smells funny. You surely are not complaining about a bug in a version many years ago.

Many of your issues have been addressed by compiler ...
  Topic: ADC result jumps between two numbers after averaging
languer

Replies: 19
Views: 25351

PostForum: General CCS C Discussion   Posted: Tue Apr 02, 2013 10:00 pm   Subject: ADC result jumps between two numbers after averaging
better option would be to use a quadrature encoder
great idea ... like use the right tool for the job

use the 1024 counts from a 10 bit ADC to create 1000 different frequencies
I'll beg to differ ...
  Topic: ADC result jumps between two numbers after averaging
languer

Replies: 19
Views: 25351

PostForum: General CCS C Discussion   Posted: Mon Apr 01, 2013 7:14 pm   Subject: ADC result jumps between two numbers after averaging
a hardware filter should help, a median filter in software may also help. it looks like you are only getting the LSB jumping, so you could discard that as well.
  Topic: Battery Life Calculation
languer

Replies: 10
Views: 12543

PostForum: General CCS C Discussion   Posted: Thu Mar 28, 2013 3:24 pm   Subject: Battery Life Calculation
Or even better; how about 1 cell and a step-up device like this one: http://www.pololu.com/catalog/product/798
  Topic: Battery Life Calculation
languer

Replies: 10
Views: 12543

PostForum: General CCS C Discussion   Posted: Thu Mar 28, 2013 12:47 pm   Subject: Battery Life Calculation
That app note has a good explanation on the subject. I have my little spreadsheet which assigns each state a duty factor and then calculate total usage from there. The app note explanation just makes ...
  Topic: How to combine 2 or more HC-SR04 in one program ?
languer

Replies: 8
Views: 18309

PostForum: General CCS C Discussion   Posted: Sun Mar 24, 2013 9:19 pm   Subject: How to combine 2 or more HC-SR04 in one program ?
I am pretty sure the pulse width contains the distance information. So I believe you need the following change:
from...
set_timer1(0);
while ((input(echo)==0) &am ...
  Topic: How to combine 2 or more HC-SR04 in one program ?
languer

Replies: 8
Views: 18309

PostForum: General CCS C Discussion   Posted: Sun Mar 24, 2013 10:46 am   Subject: How to combine 2 or more HC-SR04 in one program ?
You could do something like a round-robin style. As an example; test sensor1, once complete, test sensor 2, once complete test sensor 3; and repeat. For this, I would use a timer and start the timer e ...
  Topic: int8 * int8 isn't = int16?
languer

Replies: 5
Views: 9102

PostForum: General CCS C Discussion   Posted: Sat Mar 02, 2013 6:04 pm   Subject: int8 * int8 isn't = int16?
I need to declare var_1 and var_2 as a long int to obtain 10 000 as an answer.

To add to what FVM illustrated. You do not need to "declare" one of the int8 variable as int16, but you need ...
  Topic: After discharge and charge of source, EEPROM appears erased
languer

Replies: 7
Views: 11302

PostForum: General CCS C Discussion   Posted: Thu Nov 01, 2012 11:36 pm   Subject: After discharge and charge of source, EEPROM appears erased
What do you have for nominal battery voltage? What do you have for regulated voltage (i.e. voltage at output of regulator)? At what point do you write to the EEP (at power up, before power down, other ...
  Topic: Serial ISR and function
languer

Replies: 10
Views: 14738

PostForum: General CCS C Discussion   Posted: Mon May 07, 2012 1:37 pm   Subject: Serial ISR and function
You can do it (as was suggested) either on the ISR or the Main. You already set a flag; so if you processed on the ISR you would be looking for "$" when the flag is not set; and for "#& ...
 
Page 1 of 10 Goto page 1, 2, 3, 4, 5, 6, 7, 8, 9, 10  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group