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 325 matches
CCS Forum Index
Author Message
  Topic: Using E1 as PWM output on 18F45K22 affects delay_ms()
gaugeguy

Replies: 8
Views: 1238

PostForum: General CCS C Discussion   Posted: Mon Apr 21, 2025 2:42 pm   Subject: Using E1 as PWM output on 18F45K22 affects delay_ms()

setup_ccp3(CCP_PWM | CCP_PULSE_STEERING_B);

This would be selecting PIN_E1. You would also need to set the TRIS for port E to make PIN_E1 an output.
The data sheet shows Pin B0 has no h ...
  Topic: Using E1 as PWM output on 18F45K22 affects delay_ms()
gaugeguy

Replies: 8
Views: 1238

PostForum: General CCS C Discussion   Posted: Thu Apr 17, 2025 1:15 pm   Subject: Using E1 as PWM output on 18F45K22 affects delay_ms()
You can't use separate setup_ccp3 statements. You have to OR the setup options together in one setup_ccp3 command.
  Topic: Data Transfer Between PICs - SOLVED!!!
gaugeguy

Replies: 11
Views: 2777

PostForum: General CCS C Discussion   Posted: Thu Apr 10, 2025 8:40 am   Subject: Data Transfer Between PICs - SOLVED!!!
Are you sure your sensor data is in the correct float format?
  Topic: PIC16F18857 external timer_0 setup help needed
gaugeguy

Replies: 17
Views: 3740

PostForum: General CCS C Discussion   Posted: Tue Apr 01, 2025 12:49 pm   Subject: PIC16F18857 external timer_0 setup help needed
If you need to provide an external signal to clock Timer0 then pick a pin that is not being used. The default pin for T0CK is RA4. Feed that with a TTL/CMOS level signal from some external source.
  Topic: PIC16F18857 external timer_0 setup help needed
gaugeguy

Replies: 17
Views: 3740

PostForum: General CCS C Discussion   Posted: Tue Apr 01, 2025 12:45 pm   Subject: PIC16F18857 external timer_0 setup help needed
Don't use T0CK at all.
Don't clock timer0 from an external pin.
  Topic: PIC16F18857 external timer_0 setup help needed
gaugeguy

Replies: 17
Views: 3740

PostForum: General CCS C Discussion   Posted: Tue Apr 01, 2025 7:01 am   Subject: PIC16F18857 external timer_0 setup help needed
Timer0 can be clocked from the internal instruction clock or from an external pin. You are choosing an external pin and then trying to set that external pin as the ceramic resonator oscillator input ...
  Topic: PIC16F18857 external timer_0 setup help needed
gaugeguy

Replies: 17
Views: 3740

PostForum: General CCS C Discussion   Posted: Tue Apr 01, 2025 6:01 am   Subject: PIC16F18857 external timer_0 setup help needed
Why are you setting pin A7 as the T0CK pin? This is one of the pins the ceramic resonator should be connected to.
  Topic: PIC16F18857 external timer_0 setup help needed
gaugeguy

Replies: 17
Views: 3740

PostForum: General CCS C Discussion   Posted: Mon Mar 31, 2025 2:25 pm   Subject: PIC16F18857 external timer_0 setup help needed
What are you using to drive Timer 0 input?
  Topic: encoder pulse measurement
gaugeguy

Replies: 25
Views: 7143

PostForum: General CCS C Discussion   Posted: Fri Mar 14, 2025 10:24 am   Subject: encoder pulse measurement
Instead of connecting your encoder to the T13CKI pin can you connect it to an interrupt pin? This would make it easier. What pin does your encoder direction signal go to?
  Topic: Read from a 16C55A using CCSLOAD?
gaugeguy

Replies: 10
Views: 3417

PostForum: General CCS C Discussion   Posted: Tue Mar 04, 2025 3:29 pm   Subject: Read from a 16C55A using CCSLOAD?
I believe the 16C55 used parallel programming instead of the serial programming so new serial only programmers will not work.
  Topic: manchester decode
gaugeguy

Replies: 294
Views: 86468

PostForum: General CCS C Discussion   Posted: Wed Feb 05, 2025 7:18 am   Subject: manchester decode
bulut_01,
Where did you get your repeated references to UART and KEELOQ from?
  Topic: manchester decode
gaugeguy

Replies: 294
Views: 86468

PostForum: General CCS C Discussion   Posted: Tue Feb 04, 2025 3:33 pm   Subject: manchester decode
You have made a lot of statements about what you have for hardware. Many of those don't seem accurate. Only you know what you have, or maybe you are not even sure.
  Topic: manchester decode
gaugeguy

Replies: 294
Views: 86468

PostForum: General CCS C Discussion   Posted: Thu Jan 30, 2025 9:02 am   Subject: manchester decode
When you read the pin state, toggle a different output pin. Look at both the input pin and output pin on a logic analyzer to see if you are sampling at the correct time in the bit.
  Topic: manchester decode
gaugeguy

Replies: 294
Views: 86468

PostForum: General CCS C Discussion   Posted: Wed Jan 29, 2025 3:51 pm   Subject: manchester decode
The reason Manchester encoding exists and why it is used is that the clock is imbedded in the data. You don't have to know the exact clock or bit rate you just have to be somewhat close (+/- 20%). T ...
  Topic: manchester decode
gaugeguy

Replies: 294
Views: 86468

PostForum: General CCS C Discussion   Posted: Wed Jan 29, 2025 3:08 pm   Subject: manchester decode
On your logic capture, remove the UART decoding as it is invalid and is causing confusion.
 
Page 1 of 22 Goto page 1, 2, 3 ... 20, 21, 22  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group