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 15 matches
CCS Forum Index
Author Message
  Topic: Using 2 Analog Input channels on PIC18F4520
Dean

Replies: 4
Views: 17533

PostForum: General CCS C Discussion   Posted: Wed Jan 31, 2018 3:00 am   Subject: Using 2 Analog Input channels on PIC18F4520
Thank you guys, problem solved.

Just had to define AN1 the way the header states.

Very Happy Very Happy
  Topic: Using 2 Analog Input channels on PIC18F4520
Dean

Replies: 4
Views: 17533

PostForum: General CCS C Discussion   Posted: Tue Jan 30, 2018 5:41 am   Subject: Using 2 Analog Input channels on PIC18F4520
Hi Everyone

I am trying to read two analog inputs on the PIC18F4520,
looks like my problem is simple however I could not solve it.
The program keeps giving me an error when I define the seco ...
  Topic: ADC in PIC18F4520 - fluctuation in reading
Dean

Replies: 7
Views: 16852

PostForum: General CCS C Discussion   Posted: Fri Dec 08, 2017 4:20 pm   Subject: ADC in PIC18F4520 - fluctuation in reading
Thank you guys Problem solved with your advice.

1. Software mistake #device ADC=10, NOT 16.
2. Hardware, extra capacitor is added 470Micro F at the power source.

Now it's working like a S ...
  Topic: ADC in PIC18F4520 - fluctuation in reading
Dean

Replies: 7
Views: 16852

PostForum: General CCS C Discussion   Posted: Thu Dec 07, 2017 6:40 pm   Subject: ADC in PIC18F4520 - fluctuation in reading
Hi everyone

I am using pic18F4520 ADC to read voltage which varies between 0 - 5 volts across 100 ohm resistor as a current sensor.
The reading I am gettting from the PIC fluctuated in High range ...
  Topic: Write to EEPROM
Dean

Replies: 16
Views: 48784

PostForum: General CCS C Discussion   Posted: Sun Jul 16, 2017 1:51 am   Subject: Write to EEPROM
Well , Its not the chip , I used the very same chip , which is new , with a different compiler (MikroC Pro ) and it works fine !
But as I said in a previous message , MikroC Pro Compiler is limited ...
  Topic: Write to EEPROM
Dean

Replies: 16
Views: 48784

PostForum: General CCS C Discussion   Posted: Sat Jul 15, 2017 5:11 pm   Subject: Write to EEPROM
Thanx dyeatman

Ttelmah, the version is - CCS PCH C Compiler, Version 5.008.

Apparently it's a new version !

Any new ideas ?

Currently, I am trying to understand the library interna ...
  Topic: Write to EEPROM
Dean

Replies: 16
Views: 48784

PostForum: General CCS C Discussion   Posted: Sat Jul 15, 2017 12:39 pm   Subject: Write to EEPROM
Hi Ttelmah

First I don't know where the version of the compiler is written on the software menus, there is no About option on the menu where the version is normally shown.

I did use the same ...
  Topic: Write to EEPROM
Dean

Replies: 16
Views: 48784

PostForum: General CCS C Discussion   Posted: Sat Jul 15, 2017 7:56 am   Subject: Write to EEPROM
I am programming the PIC through PicKit2 writing the Hex code directly to the PIC, however I am using Proteus as well for simulation.

I will test it on an other PIC as 16F877 the most common PIC.
...
  Topic: Write to EEPROM
Dean

Replies: 16
Views: 48784

PostForum: General CCS C Discussion   Posted: Sat Jul 15, 2017 6:24 am   Subject: Write to EEPROM
Thanks Jay

I will read that (boring) part of the manual for sure, but if the type of variable is the problem then the PIC will not save it in all cases. In this particular case the variable is sav ...
  Topic: Write to EEPROM
Dean

Replies: 16
Views: 48784

PostForum: General CCS C Discussion   Posted: Sat Jul 15, 2017 2:41 am   Subject: Write to EEPROM
Hi

The variable STime is declared as float

float STime = 10;

The fuses declaration in *.h file is:

#include <18F4520.h>
#device ADC=16

#FUSES NOWDT //No Wa ...
  Topic: Write to EEPROM
Dean

Replies: 16
Views: 48784

PostForum: General CCS C Discussion   Posted: Fri Jul 14, 2017 3:14 pm   Subject: Write to EEPROM
Hi everyone

I have a problem when writing a variable to the PIC EEPROM. It writes the variable OK and reads it as well, but when the power is turned off and on again the value in EEPROM is reset ...
  Topic: Interrupt PIC18F4520
Dean

Replies: 8
Views: 14913

PostForum: General CCS C Discussion   Posted: Thu Jun 15, 2017 10:01 am   Subject: Interrupt PIC18F4520
By the way, is there a method built in LCD 16X2 to flash text without having to go to a loop ?
  Topic: Interrupt PIC18F4520
Dean

Replies: 8
Views: 14913

PostForum: General CCS C Discussion   Posted: Thu Jun 15, 2017 9:33 am   Subject: Interrupt PIC18F4520
Thank you Ttelmah

I understand the limitation of the interrupt, it looks even timer and timer overflow interrupt behaves the same way. Even if the loop is triggered by a flag outside the interru ...
  Topic: Interrupt PIC18F4520
Dean

Replies: 8
Views: 14913

PostForum: General CCS C Discussion   Posted: Thu Jun 15, 2017 8:42 am   Subject: Interrupt PIC18F4520
The infinite loop here is not a hang up, its a part of the code where lcd is flashing continuously till a button is pressed. I am using external interrupt to detect the push button whenever pressed. ...
  Topic: Interrupt PIC18F4520
Dean

Replies: 8
Views: 14913

PostForum: General CCS C Discussion   Posted: Thu Jun 15, 2017 5:28 am   Subject: Interrupt PIC18F4520
Hi everyone

I have a question regarding interrupts in PIC18F4520.

1. Using Timer0 overflow interrupt what happens if I am calling an endless loop from that interrupt handling routine ?

2. ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group