Author |
Message |
Topic: pin B3 on 18f45k22 |
tysie
Replies: 2
Views: 8588
|
Forum: General CCS C Discussion Posted: Thu Jan 04, 2018 2:38 pm Subject: pin B3 on 18f45k22 |
Solved,
It is a copied project in mplab,
But it looks like it takes the header file of the old project. |
Topic: pin B3 on 18f45k22 |
tysie
Replies: 2
Views: 8588
|
Forum: General CCS C Discussion Posted: Thu Jan 04, 2018 2:34 pm Subject: pin B3 on 18f45k22 |
When i tie the pin directly to VCC a current of 50mA flows through it |
Topic: pin B3 on 18f45k22 |
tysie
Replies: 2
Views: 8588
|
Forum: General CCS C Discussion Posted: Thu Jan 04, 2018 2:20 pm Subject: pin B3 on 18f45k22 |
Hi,
I try to use B3 as an input.
Everything works fine as an output, but now I connected a 10k pull-up resistor and a hall switch to the port, but the port is always low.
If i use only a pull-up ... |
Topic: using C1 on 18F45k22 |
tysie
Replies: 4
Views: 12163
|
Forum: General CCS C Discussion Posted: Thu Dec 21, 2017 4:53 am Subject: using C1 on 18F45k22 |
part of the main:
setup_adc_ports(sAN11);
setup_adc(ADC_CLOCK_DIV_2|ADC_TAD_MUL_0);
setup_timer_1(T1_INTERNAL|T1_DIV_BY_2); //32,7 ms overflow
set ... |
Topic: using C1 on 18F45k22 |
tysie
Replies: 4
Views: 12163
|
Forum: General CCS C Discussion Posted: Thu Dec 21, 2017 4:16 am Subject: using C1 on 18F45k22 |
Hi,
I want to use C1 as a normal output at the 18F45K22.
I cannot use it because by default it is used for SOSCI.
How can I disable SOSCI and use the pin as an output in ccs? |
Topic: Problem pin2 pic12f519 |
tysie
Replies: 3
Views: 10735
|
Forum: General CCS C Discussion Posted: Tue Nov 14, 2017 12:15 pm Subject: solved |
I solved it with the options register.
Thanks |
Topic: Problem pin2 pic12f519 |
tysie
Replies: 3
Views: 10735
|
Forum: General CCS C Discussion Posted: Tue Nov 14, 2017 10:13 am Subject: Problem pin2 pic12f519 |
Hi,
I want to toggle some pins.
I did the following:
output_toggle(LIFELED);
output_toggle(SERVO);
output_toggle(LIGHTOUTPUT);
And my header:
#use delay(intern ... |
|