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 200 matches
CCS Forum Index
Author Message
  Topic: 16f1503 to 16f676 conversion
sahu77

Replies: 14
Views: 23334

PostForum: General CCS C Discussion   Posted: Sat Jul 01, 2017 2:45 pm   Subject: 16f1503 to 16f676 conversion
What you are posting cannot compile.

First it has an impossible ADC number of bits. The compiler will error on this, and refuse to compile. Then it has no port setup. You then add these. However it ...
  Topic: 16f1503 to 16f676 conversion
sahu77

Replies: 14
Views: 23334

PostForum: General CCS C Discussion   Posted: Sat Jul 01, 2017 11:45 am   Subject: 16f1503 to 16f676 conversion
Because the 676, does not offer pull-ups on port C.

This is a 'read the data sheet' one. You can only use abilities the chip actually has.
ok thank you for information.
Pls also mention next prob ...
  Topic: 16f1503 to 16f676 conversion
sahu77

Replies: 14
Views: 23334

PostForum: General CCS C Discussion   Posted: Sat Jul 01, 2017 11:21 am   Subject: 16f1503 to 16f676 conversion
Where are the following functions in your program ? They're not there.
You are missing them:

setup_adc_ports()
setup_adc()

Look in the 16F1503.h file to see what parameters yo ...
  Topic: 16f1503 to 16f676 conversion
sahu77

Replies: 14
Views: 23334

PostForum: General CCS C Discussion   Posted: Sat Jul 01, 2017 8:35 am   Subject: 16f1503 to 16f676 conversion
hmm...
this
#device ADC=11
is probably wrong, most PIC ADCs are either 8 or 10 bits....never seen an 11 bit....
You don't say what is the 'problem' so

sir i do that before
/#include <16F15 ...
  Topic: 16f1503 to 16f676 conversion
sahu77

Replies: 14
Views: 23334

PostForum: General CCS C Discussion   Posted: Sat Jul 01, 2017 7:08 am   Subject: 16f1503 to 16f676 conversion
hi everyone
Today I'm facing problem with 16f676 adc reading.
Actually i want convert micro controller. That code works fine with 16f1503 but when i convert it 16f676, adc readind reading function n ...
  Topic: Voltmeter with 7-segment display
sahu77

Replies: 25
Views: 43019

PostForum: General CCS C Discussion   Posted: Sat Dec 27, 2014 3:12 pm   Subject: Re: voltmetre numerique a 7 seg
I have need read more then 1 adc, but no left adc pin on this code. If i use 7447 BCD to 7 Segment driver IC, then it possible with above code ?
LIKE THIS WAY
_______
...
  Topic: Voltmeter with 7-segment display
sahu77

Replies: 25
Views: 43019

PostForum: General CCS C Discussion   Posted: Sat Dec 27, 2014 12:14 pm   Subject: Re: voltmetre numerique a 7 seg
I have need read more then 1 adc, but no left adc pin on this code. If i use 7447 BCD to 7 Segment driver IC, then it possible with above code ?
LIKE THIS WAY
_______
...
  Topic: Voltmeter with 7-segment display
sahu77

Replies: 25
Views: 43019

PostForum: General CCS C Discussion   Posted: Fri Dec 26, 2014 4:04 pm   Subject: Re: voltmetre numerique a 7 seg

#include <16F676.h>
#device adc=10
#fuses INTRC_IO,NOWDT,PUT,NOPROTECT,BROWNOUT,NOMCLR
#use delay (clock=4000000) // 4MHz clock

#rom 0x3ff={0x3444}

#byte PORTA = 0 ...
  Topic: lcd with 16f676
sahu77

Replies: 24
Views: 33184

PostForum: General CCS C Discussion   Posted: Sat Nov 29, 2014 9:09 am   Subject: lcd with 16f676
%Ld

However it won't have any decimals since it is an integer number.

Use:

battvolt=read_adc(); //reading current
battvolt= (battvolt * 500)/1024; ...
  Topic: lcd with 16f676
sahu77

Replies: 24
Views: 33184

PostForum: General CCS C Discussion   Posted: Sat Nov 29, 2014 7:05 am   Subject: lcd with 16f676
Yes.

This is standard C. Look in the manual for printf.
battvolt is declared as int32 battvolt . so how can printf it ?
  Topic: lcd with 16f676
sahu77

Replies: 24
Views: 33184

PostForum: General CCS C Discussion   Posted: Sat Nov 29, 2014 6:51 am   Subject: lcd with 16f676

This is standard C. Look in the manual for printf.
battvolt is declared as int32 battvolt . so how can printf it ?
  Topic: lcd with 16f676
sahu77

Replies: 24
Views: 33184

PostForum: General CCS C Discussion   Posted: Fri Nov 28, 2014 3:45 pm   Subject: lcd with 16f676
Battvolt is declared as something other than a float.
%3.2f is show only float only?
  Topic: lcd with 16f676
sahu77

Replies: 24
Views: 33184

PostForum: General CCS C Discussion   Posted: Fri Nov 28, 2014 1:11 pm   Subject: lcd with 16f676
now i want to display adc value on lcd. those code as
set_adc_channel(1);
delay_us(10); //-------->NOTE:AQUISITION TIME NECCESARY
battv ...
  Topic: lcd with 16f676
sahu77

Replies: 24
Views: 33184

PostForum: General CCS C Discussion   Posted: Thu Nov 27, 2014 3:35 pm   Subject: now ok its working
OK, if the led blinks about once per second when the program runs
then you are back to a hardware problem.
meany meany thanks sir g
now ok
its working
  Topic: lcd with 16f676
sahu77

Replies: 24
Views: 33184

PostForum: General CCS C Discussion   Posted: Thu Nov 27, 2014 3:08 pm   Subject: lcd with 16f676
OK, if the led blinks about once per second when the program runs
then you are back to a hardware problem.
ok i test it . then reply here
 
Page 1 of 14 Goto page 1, 2, 3 ... 12, 13, 14  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group