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: pic16f1788 just one break point
arachid

Replies: 1
Views: 7853

PostForum: General CCS C Discussion   Posted: Fri Feb 22, 2019 1:28 pm   Subject: pic16f1788 just one break point
i tried with mplab x and ccs compiler all work, i can use 3 break point,
anybody know why ccs ide not allow me to put more that one break point ?
  Topic: BUILD FAIL trouble [Solved]
arachid

Replies: 2
Views: 9383

PostForum: General CCS C Discussion   Posted: Fri Feb 22, 2019 1:23 pm   Subject: BUILD FAIL trouble [Solved]
find solution, mplabx asked me to make update after update and restarted mplabx all work
  Topic: BUILD FAIL trouble [Solved]
arachid

Replies: 2
Views: 9383

PostForum: General CCS C Discussion   Posted: Fri Feb 22, 2019 12:59 pm   Subject: BUILD FAIL trouble [Solved]
Hi, I used my ccs compiler with ccs ide (work fine) but now I like to try ccs compile with mplabx. I see a video and I make all same but get always error when I try to complie my c file.

CLEAN SUCC ...
  Topic: Help With 12f683 Two Analog Inputs
arachid

Replies: 17
Views: 35000

PostForum: General CCS C Discussion   Posted: Tue Feb 19, 2019 6:55 pm   Subject: Help With 12f683 Two Analog Inputs
according to datasheet page 62 note 4:
4: When the device frequency is greater than 1 MHz, the FRC clock source is only recommended if the
conversion will be performed during Sleep.

them yo have ...
  Topic: Help With 12f683 Two Analog Inputs
arachid

Replies: 17
Views: 35000

PostForum: General CCS C Discussion   Posted: Tue Feb 19, 2019 6:43 pm   Subject: Help With 12f683 Two Analog Inputs
according to datasheet page 62 note 4:
4: When the device frequency is greater than 1 MHz, the FRC clock source is only recommended if the
conversion will be performed during Sleep.

them yo have ...
  Topic: Help With 12f683 Two Analog Inputs
arachid

Replies: 17
Views: 35000

PostForum: General CCS C Discussion   Posted: Tue Feb 19, 2019 6:32 pm   Subject: Help With 12f683 Two Analog Inputs
try

#include <12F683.h>

#define ACT PIN_A5
#define IN PIN_A3 //Main Input

#use delay(clock = 4000000)
#fuses INTRC_IO,NOWDT,NOPROTECT,NOMCLR



//time 1
int result; ...
  Topic: Help With 12f683 Two Analog Inputs
arachid

Replies: 17
Views: 35000

PostForum: General CCS C Discussion   Posted: Tue Feb 19, 2019 6:30 pm   Subject: Help With 12f683 Two Analog Inputs
try:

//time 1
int result;

void Time(void)
{

set_adc_channel(0); //output to port A0
delay_us(10);
result = read_adc();

for(int i = 0; i < result; i++)
{
delay_ms(12 ...
  Topic: Help With 12f683 Two Analog Inputs
arachid

Replies: 17
Views: 35000

PostForum: General CCS C Discussion   Posted: Tue Feb 19, 2019 5:15 pm   Subject: Help With 12f683 Two Analog Inputs
sorry not need raference if you not use vref
setup_adc_ports(sAN0 | sAN1); //read port A0 and A1 analog input

is ok because
VSS_VDD is 0x0000
them it is by default.
  Topic: Help With 12f683 Two Analog Inputs
arachid

Replies: 17
Views: 35000

PostForum: General CCS C Discussion   Posted: Tue Feb 19, 2019 5:07 pm   Subject: Help With 12f683 Two Analog Inputs
you Don't use the delay_us(10) at right moment, you need to wait after change channel not after read, and you frotgot to indicate the reference.

like this:
setup_adc(ADC_CLOCK_INTERNAL); // adc in ...
  Topic: pic16f1788 just one break point
arachid

Replies: 1
Views: 7853

PostForum: General CCS C Discussion   Posted: Tue Feb 19, 2019 4:50 pm   Subject: pic16f1788 just one break point
Hi, is it posible to have more that one break point with pic16f1788, icd3, ide ccs interface 5.070.
according with this microchip page my chip should be have 3 hw breakpoint
http://ww1.microchip.com ...
  Topic: low voltage chip error
arachid

Replies: 2
Views: 10174

PostForum: General CCS C Discussion   Posted: Sat Oct 15, 2016 5:19 pm   Subject: low voltage chip error
Hello, i try to program a pic16lf1786 and i get always error when i write the chip. I tried with a 16f1786 successfully them i just change the chip from an F to an LF version of chip. I made example p ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group