Author |
Message |
Topic: Compiler command line v5.098 problem? |
esbelektronik
Replies: 24
Views: 57001
|
Forum: General CCS C Discussion Posted: Sun Jan 17, 2021 1:20 pm Subject: Compiler command line v5.098 problem? |
You can add and remove the versions you want among the add / remove programs options. I removed 5.099 from there and the problem was fixed. But when compiled in version 5.098, it is interesting that w ... |
Topic: Compiler command line v5.098 problem? |
esbelektronik
Replies: 24
Views: 57001
|
Forum: General CCS C Discussion Posted: Sat Jan 16, 2021 1:26 pm Subject: 5.099 problem! |
I am having similar issue at 5.099. When I compile the program I compiled before in 5.098, it gives a warning that there is not enough ram. I regretted upgrading. What should I do to load the previous ... |
Topic: 16F19176 PIN C2 not work input mode |
esbelektronik
Replies: 14
Views: 32680
|
Forum: General CCS C Discussion Posted: Fri Dec 25, 2020 1:01 pm Subject: thanks. |
dear PCM Programmer thanks for help. |
Topic: 16F19176 PIN C2 not work input mode |
esbelektronik
Replies: 14
Views: 32680
|
Forum: General CCS C Discussion Posted: Fri Dec 25, 2020 1:40 am Subject: 16F19176 PIN C2 not work input mode |
Dear PCM programmer,
Reason
setup_adc_ports (sAN0 | sAN23 | sAN34, VSS_VDD); When using the command pin_c2 pin remains as analog input.
set_analog_pins (PIN_A0, PIN_C7, PIN_E2); Using the command p ... |
Topic: 16F19176 PIN C2 not work input mode |
esbelektronik
Replies: 14
Views: 32680
|
Forum: General CCS C Discussion Posted: Thu Dec 24, 2020 3:10 pm Subject: 16F19176 PIN C2 not work input mode |
Compiler version is 5.097 |
Topic: 16F19176 PIN C2 not work input mode |
esbelektronik
Replies: 14
Views: 32680
|
Forum: General CCS C Discussion Posted: Thu Dec 24, 2020 2:56 pm Subject: 16F19176 PIN C2 not work input mode |
it's work correct.
set_analog_pins(PIN_A0,PIN_C7,PIN_E2);
below define in 16f19176.h file adc parameters
#define sAN18 0x00000400 //| C2
#define sAN34 0x00000400 ... |
Topic: 16F19176 PIN C2 not work input mode |
esbelektronik
Replies: 14
Views: 32680
|
Forum: General CCS C Discussion Posted: Thu Dec 24, 2020 1:59 pm Subject: 16F19176 PIN C2 not work input mode |
analog port settings are in my code;
setup_adc (ADC_CLOCK_DIV_64);
setup_adc_reference (VSS_VDD);
setup_adc_ports (sAN0 | sAN23 | sAN34, VSS_VDD);
if you ... |
Topic: 16F19176 PIN C2 not work input mode |
esbelektronik
Replies: 14
Views: 32680
|
Forum: General CCS C Discussion Posted: Thu Dec 24, 2020 12:53 pm Subject: 16F19176 PIN C2 not work input mode |
I had similar issue with 16F19197.
I tried the code below but it still didn't work.
#byte PORTC = getenv("SFR:PORTC")
.................... if(!bit_te ... |
Topic: 16F19176 PIN C2 not work input mode |
esbelektronik
Replies: 14
Views: 32680
|
Forum: General CCS C Discussion Posted: Thu Dec 24, 2020 12:18 pm Subject: 16F19176 PIN C2 not work input mode |
some comments...
1) change PROTECT to NOPROTECT i the FUSES section. There's no need to protect the PIC until final product goes 'out the door' to the customer. Using noprotect will extend the life ... |
Topic: 16F19176 PIN C2 not work input mode |
esbelektronik
Replies: 14
Views: 32680
|
Forum: General CCS C Discussion Posted: Thu Dec 24, 2020 5:40 am Subject: 16F19176 PIN C2 not work input mode |
Pin C2 is available as an ordinary i/o pin.
But it can also be Seg18. Are you using the lcd module in that PIC ?
If you are, it's possible that you enabled Seg18.
Post your small test progr ... |
Topic: 16F19176 PIN C2 not work input mode |
esbelektronik
Replies: 14
Views: 32680
|
Forum: General CCS C Discussion Posted: Wed Dec 23, 2020 3:30 pm Subject: 16F19176 PIN C2 not work input mode |
Hi,
PIN_C2 pin of 16F19176 is detected as 1 even when the input is 0 when it is in input mode. Even if we connect the pin directly to VSS, the situation does not change.
Anyone have this problem? |
Topic: PIC16F18446 PWM problem [Solved] |
esbelektronik
Replies: 1
Views: 7940
|
Forum: General CCS C Discussion Posted: Tue Apr 09, 2019 7:43 am Subject: i solved |
hello,
I found self mistake. I did change timer2 setup command.
setup_timer_2(T2_CLK_INTERNAL | T2_DIV_BY_16,255,1);
its work. |
Topic: PIC16F18446 PWM problem [Solved] |
esbelektronik
Replies: 1
Views: 7940
|
Forum: General CCS C Discussion Posted: Tue Apr 09, 2019 6:36 am Subject: PIC16F18446 PWM problem [Solved] |
Hello,
I use 16F18446 but i can't run pwm1 and pwm2 output. I try close pwm mode and try pin_c2 pin general output pin type output_toggle(pin_c2) command. But it's not change high-low. If i try pin_ ... |
Topic: 16F19197 ADC problem |
esbelektronik
Replies: 7
Views: 17449
|
Forum: General CCS C Discussion Posted: Wed Jan 16, 2019 12:46 pm Subject: 16F19197 ADC problem |
Hi
CCS support response,
"There is an errata for this family with the ADC when using the internal ADC clock as the clock source that says the MSB of the result is stuck at either 0 or 1. In ... |
Topic: 16F19197 ADC problem |
esbelektronik
Replies: 7
Views: 17449
|
Forum: General CCS C Discussion Posted: Wed Jan 16, 2019 12:27 pm Subject: 16F19197 ADC problem |
It still won't give proper values unless you add some acquisition/precharge time.
Also not the other errors pointed out.
yes you are right. i connect 5V to an0 input, but never see 4094 decimal. i ... |
|