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 32 matches
CCS Forum Index
Author Message
  Topic: Fluctuating Sensor Readings
mka879

Replies: 6
Views: 18175

PostForum: General CCS C Discussion   Posted: Tue May 17, 2016 3:30 am   Subject: Fluctuating Sensor Readings
@Ttelmah: I agree that with this resolution of ADC I cannot get to accuracy of 1% but the question is there has to be a change of 4.8mV on ADC pin for 1 unit change in ADC reading. If this is true, th ...
  Topic: Fluctuating Sensor Readings
mka879

Replies: 6
Views: 18175

PostForum: General CCS C Discussion   Posted: Tue May 17, 2016 12:28 am   Subject: Fluctuating Sensor Readings
I have a fuel level sensor that varies its resistance from 9.5 ohm(empty) to 155ohm(full). The sensor is powered using 12V battery connected to a 30kVA Generator.

The problem is that the level tha ...
  Topic: Comparison of CCS C FAQ Port B Button Press Code
mka879

Replies: 1
Views: 11639

PostForum: General CCS C Discussion   Posted: Sat May 07, 2016 12:11 am   Subject: Comparison of CCS C FAQ Port B Button Press Code
I came across CCS C FAQ section and read Port B Button Press Code. I have recently implemented the same thing but differently. I would like to compare the two code and determine which is better and wh ...
  Topic: Code Hang Problem
mka879

Replies: 9
Views: 31026

PostForum: General CCS C Discussion   Posted: Fri May 06, 2016 11:33 pm   Subject: Code Hang Problem
You don't need to clear your timer interrupt at the end of it's call. Minor, but a wasted instruction.

However, a suggestion.
I've not looked at how 'frequent' your timer tick actually is, but you ...
  Topic: Code Hang Problem
mka879

Replies: 9
Views: 31026

PostForum: General CCS C Discussion   Posted: Wed May 04, 2016 11:56 pm   Subject: Code Hang Problem
yes your delays are a BAD idea - but
i am betting flag

Thank you so much all of you. Fundamentally it was a hardware issue and also the issue pointed out by asmboy. I modified the isr_rda in the ...
  Topic: Code Hang Problem
mka879

Replies: 9
Views: 31026

PostForum: General CCS C Discussion   Posted: Mon May 02, 2016 10:52 pm   Subject: Code Hang Problem
The usual problem of "interrupts disabled to prevent re-entrancy" is not
the case in your program, because you have two #use delay(20M)
statements. This causes the #int_rb routine to ha ...
  Topic: Code Hang Problem
mka879

Replies: 9
Views: 31026

PostForum: General CCS C Discussion   Posted: Mon May 02, 2016 1:25 am   Subject: Code Hang Problem
Nobody is going to wade through and solve your programming problems for you.

However one glaring place to look. delay_ms(10) inside an interrupt. Search here for 'why' this is almost certainly the ...
  Topic: Code Hang Problem
mka879

Replies: 9
Views: 31026

PostForum: General CCS C Discussion   Posted: Sun May 01, 2016 11:26 pm   Subject: Code Hang Problem
I am using SIM900 with Portb interrupt on change in a project. The system sends SMS every minute. Also an SMS is sent at each interrupt on change. The system runs fine only if there are less than thre ...
  Topic: Runtime Configuration of Electronic Module
mka879

Replies: 1
Views: 10507

PostForum: General CCS C Discussion   Posted: Tue Apr 19, 2016 4:52 am   Subject: Runtime Configuration of Electronic Module
I am working on remote monitoring module of generators. We want to have configuration of different parameters such as sensor type selection,etc.

For example there are 5 major temperature sensor ven ...
  Topic: PortB Interrupt on Change Strange Problem
mka879

Replies: 6
Views: 16239

PostForum: General CCS C Discussion   Posted: Mon Apr 04, 2016 2:18 am   Subject: PortB Interrupt on Change Strange Problem
Thank you everyone. As stated the problem only arises when sending SMS using SIM900a, I suspected it was noisy ground issue. As the switches are normally closed which connects ground to portB, therefo ...
  Topic: PortB Interrupt on Change Strange Problem
mka879

Replies: 6
Views: 16239

PostForum: General CCS C Discussion   Posted: Thu Mar 31, 2016 6:28 am   Subject: PortB Interrupt on Change Strange Problem
Here is a strange problem.

I am using PCWHD version 5.015 and PIC16f877A. Hardware is as follows:

Portb.4 and Portb.7 are connected to the output of LM324. Inputs of LM324 is connected to two s ...
  Topic: SPI Problem with CS5463(related to FEB 2009 thread)
mka879

Replies: 22
Views: 41893

PostForum: General CCS C Discussion   Posted: Sun Dec 27, 2015 10:49 pm   Subject: SPI Problem with CS5463(related to FEB 2009 thread)
Well done. Big step forward. Smile

Key thing to learn is the 'approach'. If trying to do something, test the actual thing you are trying to do. Consider what PCM_Programmer's code did. Tested writing ...
  Topic: SPI Problem with CS5463(related to FEB 2009 thread)
mka879

Replies: 22
Views: 41893

PostForum: General CCS C Discussion   Posted: Sun Dec 27, 2015 10:28 pm   Subject: SPI Problem with CS5463(related to FEB 2009 thread)
"sync_port();" is the modification that enable to read correct values every time the circuit is powered on.

void main()
{
int32 vol,cur,ccr;
output_high(RESET ...
  Topic: SPI Problem with CS5463(related to FEB 2009 thread)
mka879

Replies: 22
Views: 41893

PostForum: General CCS C Discussion   Posted: Thu Dec 24, 2015 11:56 am   Subject: SPI Problem with CS5463(related to FEB 2009 thread)
Does the code below correctly show your modification ?
void main()
{
int32 ccr;

// Initialize control lines to cs5463.
output_high(CS);
output_high(RESET);
delay_ms(100);

reset_ ...
  Topic: SPI Problem with CS5463(related to FEB 2009 thread)
mka879

Replies: 22
Views: 41893

PostForum: General CCS C Discussion   Posted: Tue Dec 22, 2015 10:39 pm   Subject: SPI Problem with CS5463(related to FEB 2009 thread)
Thank you so much. I was considering to move to a different IC but finally get the IC working with the help of your (PCM Programmer) code with a slight modification. The code used to get the wrong val ...
 
Page 1 of 3 Goto page 1, 2, 3  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group