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 2067 matches
CCS Forum Index
Author Message
  Topic: I2C PROBLEM - 18F46K22
asmboy

Replies: 10
Views: 27012

PostForum: General CCS C Discussion   Posted: Sun Sep 11, 2022 6:06 pm   Subject: I2C PROBLEM - 18F46K22
AS an aside - re power -unless you are doing a pull up on some big leaky power transistor or operating at some very high switch rate -1.2K is pretty darned stiff in my experience. And a possible wa ...
  Topic: Radical olympic++ ADC averaging , de-noising routine
asmboy

Replies: 30
Views: 200098

PostForum: Code Library   Posted: Sat Nov 20, 2021 9:14 am   Subject: Radical olympic++ ADC averaging , de-noising routine
I did not know this post you refer to existed when I wrote this original, much simpler routine. They are not at all the same - if you bother to look carefully. If you want to credit and crib that on ...
  Topic: Quick and Simple RS232 string values parser 'El Parser'
asmboy

Replies: 1
Views: 31873

PostForum: Code Library   Posted: Tue Sep 21, 2021 2:34 pm   Subject: the ESP8266 code
ESP8266- that wifi chip is rated to 72Mbps - i tried this code with a 2MB data rate , with no joy at all. further testing says you can't safely go much beyond 100 Kbps and with short packets -pl ...
  Topic: how to write and read 16bit variable to 16f628A chip?
asmboy

Replies: 7
Views: 25300

PostForum: General CCS C Discussion   Posted: Tue Sep 14, 2021 6:17 am   Subject: how to write and read 16bit variable to 16f628A chip?
There are instances where you need to make sure that the data you wrote is valid when read and not uninitialized eeprom. As in valid after a reset. Consider adding two bytes of checksum following you ...
  Topic: Does switch statement has a variable size limit?
asmboy

Replies: 7
Views: 24080

PostForum: General CCS C Discussion   Posted: Mon May 17, 2021 5:50 pm   Subject: Does switch statement has a variable size limit?
Have you looked at the code that a switch statement generates? If you need that many switch branches - the serial code execution cycles alone are gonna crush you in the time domain for numinous arg ...
  Topic: STACK_USE_MPFS + MPFS_USE_EEPROM
asmboy

Replies: 4
Views: 17081

PostForum: General CCS C Discussion   Posted: Mon Apr 26, 2021 6:06 pm   Subject: STACK_USE_MPFS + MPFS_USE_EEPROM
If you can guarantee no interruption in chip power - i can show you how to use main data memory to hold your data instead of EEPROM - surviving PIC software resets and all. But not a cold power off. ...
  Topic: PIC16F1719 The influence of the Timer1 on comparator
asmboy

Replies: 8
Views: 24315

PostForum: General CCS C Discussion   Posted: Mon Apr 26, 2021 5:45 pm   Subject: PPS and CCS
I spent a few bad days struggling with PPS setups on that very same chip two months ago, because a client requested it- all with up to date versions of the compiler. Finally packed it in and moved th ...
  Topic: Radical olympic++ ADC averaging , de-noising routine
asmboy

Replies: 30
Views: 200098

PostForum: Code Library   Posted: Fri Apr 16, 2021 6:54 am   Subject: Radical olympic++ ADC averaging , de-noising routine
Moto dan -

no actually you broke it.
badly
you really don't understand the
compare-sort-swap loop at all .

array elements are numbered 0-15 // 16 values
but we are comparing and swappin ...
  Topic: Radical olympic++ ADC averaging , de-noising routine
asmboy

Replies: 30
Views: 200098

PostForum: Code Library   Posted: Thu Oct 01, 2020 4:47 am   Subject: Radical olympic++ ADC averaging , de-noising routine
this is fundamental C programming it self that you don't understand !

accum is local to the function -so
did you not notice that you cant compile as you used it ?

WOW

printf(lcd_putc,&quo ...
  Topic: Radical olympic++ ADC averaging , de-noising routine
asmboy

Replies: 30
Views: 200098

PostForum: Code Library   Posted: Wed Sep 30, 2020 7:28 pm   Subject: Radical olympic++ ADC averaging , de-noising routine
the function is not "void" -
it merely requires no data to be passed to it.
Surely you understand that, right?

it returns the value of the processed a/d readings,
following the 'ol ...
  Topic: Radical olympic++ ADC averaging , de-noising routine
asmboy

Replies: 30
Views: 200098

PostForum: Code Library   Posted: Wed Sep 30, 2020 3:32 pm   Subject: Radical olympic++ ADC averaging , de-noising routine
This is very very basic 'C

the result is passed by the function on exit .
look at the definition:
then the last line of the code
------------------------------------

unsigned int16 adchlx( ...
  Topic: Radical olympic++ ADC averaging , de-noising routine
asmboy

Replies: 30
Views: 200098

PostForum: Code Library   Posted: Tue Sep 29, 2020 1:23 pm   Subject: Radical olympic++ ADC averaging , de-noising routine
Not sure what you are getting at.

The result is implied in the function call.
I did not mention an LCD display -

unsigned int16 adchlx(void)
It returns an unsigned int16 on exit as in

u ...
  Topic: What is output_float() for?
asmboy

Replies: 13
Views: 41324

PostForum: General CCS C Discussion   Posted: Thu Aug 17, 2017 8:01 am   Subject: What is output_float() for?
output_float(), with a single operation , shuts off any
input pullup within the chip for that pin and
leaves it in the TRIS=1 input receiver state........
  Topic: SlickEdit integration
asmboy

Replies: 5
Views: 20320

PostForum: General CCS C Discussion   Posted: Fri Jun 30, 2017 5:24 am   Subject: SlickEdit integration
Slick Edit is a - JACE.

Just Another C Editor..........
  Topic: Error 71 out of ROM using 16F887
asmboy

Replies: 5
Views: 14616

PostForum: General CCS C Discussion   Posted: Tue Jun 27, 2017 8:44 am   Subject: Error 71 out of ROM using 16F887
The wise counsel from PCM_P is to
break up your main();
into a number of smaller functions-

just don't get tricky and use the
#inline directive or your work will go for naught.....
 
Page 1 of 138 Goto page 1, 2, 3 ... 136, 137, 138  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group