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 8 matches
CCS Forum Index
Author Message
  Topic: Error when compiling to a port from a function
johenrod

Replies: 2
Views: 3936

PostForum: General CCS C Discussion   Posted: Thu Apr 18, 2024 8:25 am   Subject: Error when compiling to a port from a function
Tiene sentido, reordene el codigo y compilo.
Muchas gracias.

It makes sense, reorder the code and compile.
Thank you so much.
  Topic: Error when compiling to a port from a function
johenrod

Replies: 2
Views: 3936

PostForum: General CCS C Discussion   Posted: Sat Apr 13, 2024 8:33 pm   Subject: Error when compiling to a port from a function
Cordial saludo, se que les puede parecer muy basico pero no encuentro la solucion.
he creado una funcion en una libreria .h y al compilar me muestra erores, dejo el codigo.(ccs)
Gracias de antemano. ...
  Topic: Doubts in a PWM code
johenrod

Replies: 3
Views: 10018

PostForum: General CCS C Discussion   Posted: Tue May 09, 2023 9:51 am   Subject: Doubts in a PWM code
There are several things that are not really 'right'.
The first is selecting 'ALL_ANALOGS'. This means that every input pin
is fed to the analog multiplexer. Problem is that this tends to introduce ...
  Topic: Doubts in a PWM code
johenrod

Replies: 3
Views: 10018

PostForum: General CCS C Discussion   Posted: Mon May 08, 2023 8:41 am   Subject: Doubts in a PWM code
Greetings, could you help me please?
I am trying to make a pwm control to control a 110 volt motor. I have a clear power stage with optocoupler and mosfet, I try to make the pwm output greater than 5 ...
  Topic: How to define a register if it can be used on several pins?
johenrod

Replies: 6
Views: 13864

PostForum: General CCS C Discussion   Posted: Sun Apr 09, 2023 1:08 pm   Subject: How to define a register if it can be used on several pins?
I saw that you changed 9 to 0, I was crazy looking for that 9 but it already makes sense to me.
#bit CCP1SEL=getenv("CCP1SEL")
it would also be
#bit TXCKSEL=getenv("TXCKSEL")
...
  Topic: How to define a register if it can be used on several pins?
johenrod

Replies: 6
Views: 13864

PostForum: General CCS C Discussion   Posted: Sun Apr 09, 2023 11:17 am   Subject: How to define a register if it can be used on several pins?
I'm trying to do a speed control, I attach the code, it compiles well but it doesn't work for me, I don't get anything at the RC2(PIN17) output, I took it from the "education automatic control&qu ...
  Topic: How to define a register if it can be used on several pins?
johenrod

Replies: 6
Views: 13864

PostForum: General CCS C Discussion   Posted: Sun Apr 09, 2023 11:06 am   Subject: How to define a register if it can be used on several pins?
Excellent, thank you very much "Ttelmah" that is to say that if "CCP1SEL =0; //CCP1 will now go to RA2" ?
I didn't know this "#bit CCP1SEL=getenv("CCP1SEL")" a ...
  Topic: How to define a register if it can be used on several pins?
johenrod

Replies: 6
Views: 13864

PostForum: General CCS C Discussion   Posted: Sun Apr 09, 2023 9:11 am   Subject: How to define a register if it can be used on several pins?
Best regard
I'm trying to configure the "CCP1" register for a pwm" with the pic12f1822 and it has CCP1 on 2 pins RA0 and RA5, could you please tell me how to configure it for a certain ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group