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 203 matches
CCS Forum Index
Author Message
  Topic: Anyone have PWM working with PIC16LF15325?
starfire151

Replies: 4
Views: 1190

PostForum: General CCS C Discussion   Posted: Thu Apr 17, 2025 2:57 pm   Subject: Anyone have PWM working with PIC16LF15325?
THANK YOU!

That worked!

Apparently my original code specified the output pin through a pin select. This did not work. When I specify the output pin through the #use PWM() function, as your cod ...
  Topic: Anyone have PWM working with PIC16LF15325?
starfire151

Replies: 4
Views: 1190

PostForum: General CCS C Discussion   Posted: Mon Apr 07, 2025 6:40 pm   Subject: Anyone have PWM working with PIC16LF15325?
Has anyone gotten the PWM to work with the PIC16LF15325?

If so, would you post a very simple code example of the setup? Any frequency, duty cycle, or output pin.

I have tried all traditional me ...
  Topic: PWM with PIC16LF15325
starfire151

Replies: 9
Views: 2300

PostForum: General CCS C Discussion   Posted: Sat Apr 05, 2025 1:25 pm   Subject: PWM with PIC16LF15325
OK. Here's the listing file.... sorry it's so long...


CCS PCM C Compiler, Version 5.071, 33568 05-Apr-25 08:24

Filename: D:\projects\PicC\projects\4D0185_pwm_hi ...
  Topic: PWM with PIC16LF15325
starfire151

Replies: 9
Views: 2300

PostForum: General CCS C Discussion   Posted: Sat Apr 05, 2025 8:28 am   Subject: PWM with PIC16LF15325
Thanks for responding...

Here's my modified code:


#include <16LF15325.h>

#device adc=10 // 10-bit ADC => 1024 steps
#device *=16

#define clk_freq 16M
#use delay(inte ...
  Topic: PWM with PIC16LF15325
starfire151

Replies: 9
Views: 2300

PostForum: General CCS C Discussion   Posted: Sat Apr 05, 2025 6:02 am   Subject: PWM with PIC16LF15325
Does anyone have the PIC16LF15325 working with a PWM output?

Any output pin, any frequency, any duty cycle?

I'm having start-up issues with this simple program:


#include <16LF15325.h> ...
  Topic: PWM with PIC16LF15325
starfire151

Replies: 9
Views: 2300

PostForum: General CCS C Discussion   Posted: Fri Apr 04, 2025 7:28 am   Subject: PWM with PIC16LF15325
Thanks for responding.

I implemented the changes you suggested but there is still no output.

I added the pwm_on(); after setting the duty percent but still no output. The scope shows flatline. ...
  Topic: PWM with PIC16LF15325
starfire151

Replies: 9
Views: 2300

PostForum: General CCS C Discussion   Posted: Thu Apr 03, 2025 4:15 pm   Subject: PWM with PIC16LF15325
.h file:


#include <16LF15325.h>

#device adc=10 // 10-bit ADC => 1024 steps
#device *=16

#define clk_freq 16M
#use delay(internal=clk_freq)

#pin_select PWM3=PIN_C ...
  Topic: PWM with PIC16LF15325
starfire151

Replies: 9
Views: 2300

PostForum: General CCS C Discussion   Posted: Thu Apr 03, 2025 9:42 am   Subject: PWM with PIC16LF15325
I've been trying to get the PWM output to work with a PIC16LF15325 but have been unsuccessful.

From the header support file:
#pin_select PWM3=PIN_C0
#use pwm(output=PIN_C0, frequency=15625, bits= ...
  Topic: Is anybody using a 480x320 TFT with a PIC?
starfire151

Replies: 12
Views: 20956

PostForum: General CCS C Discussion   Posted: Sun Oct 15, 2023 6:12 am   Subject: Is anybody using a 480x320 TFT with a PIC?
Do you have some model numbers of some smart displays you've used or you know there's libraries for?
I've used the Nextion NX4832T035 before with an Arduino project. I was thinking of trying to use ...
  Topic: Is anybody using a 480x320 TFT with a PIC?
starfire151

Replies: 12
Views: 20956

PostForum: General CCS C Discussion   Posted: Fri Oct 13, 2023 8:30 am   Subject: Is anybody using a 480x320 TFT with a PIC?
Thanks to all who responded! Great info!

Yeah, I kinda figured RAM would be the major stumbling block. I was thinking of using an external FRAM (like the FM25V10, 128K x 8) but I think the interf ...
  Topic: Is anybody using a 480x320 TFT with a PIC?
starfire151

Replies: 12
Views: 20956

PostForum: General CCS C Discussion   Posted: Thu Oct 12, 2023 4:32 pm   Subject: Is anybody using a 480x320 TFT with a PIC?
Is there anyone using a graphics display (i.e. 480x320 TFT, like HX8357) with a PIC microcontroller?

If so, is there a library posted?

Thanks.
  Topic: problem with WDT in 16LF1825
starfire151

Replies: 16
Views: 52279

PostForum: General CCS C Discussion   Posted: Wed May 12, 2021 8:32 am   Subject: problem with WDT in 16LF1825
Hi Ttelmah, newguy, and PCM programmer -

GREAT HELP EVERYBODY! I changed the #FUSES NOWDT line to #FUSES WDT_SW, recompiled, and loaded it. It worked right off the bat completely correctly!

I' ...
  Topic: problem with WDT in 16LF1825
starfire151

Replies: 16
Views: 52279

PostForum: General CCS C Discussion   Posted: Tue May 11, 2021 5:20 pm   Subject: problem with WDT in 16LF1825
Hi PCM programmer and temtronic

I checked the bottom of the .lst file and get this:

Configuration Fuses:
Word 1: 39C4 INTRC_IO NOWDT PUT MCLR NOPROTECT NOCPD NOBROWNOUT NOCLKOUT IESO FCME ...
  Topic: problem with WDT in 16LF1825
starfire151

Replies: 16
Views: 52279

PostForum: General CCS C Discussion   Posted: Tue May 11, 2021 8:33 am   Subject: problem with WDT in 16LF1825
Hi PCM programmer -

I included the #FUSES NODEBUG so I think the WDT should be enabled?

Hi Ttelmah -

I included the delay_cycles(1); after the sleep() command. This didn't appear to make any ...
  Topic: problem with WDT in 16LF1825
starfire151

Replies: 16
Views: 52279

PostForum: General CCS C Discussion   Posted: Mon May 10, 2021 2:44 pm   Subject: problem with WDT in 16LF1825
Hi PCM programmer. Thanks for responding so quickly.

I changed the #FUSES WDT to #FUSES NOWDT and tried it again. I don't even see the loops counting now on the PIN_A5 output.

When I activate ...
 
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