Author |
Message |
Topic: PIC18F23k22 UART2 pins sharing with programmer |
chrhartz
Replies: 11
Views: 10069
|
Forum: General CCS C Discussion Posted: Mon Jan 08, 2024 3:20 pm Subject: PIC18F23k22 UART2 pins sharing with programmer |
I need two UARTS to connect to a PC and another serial device.
The PIC18F23k22 choosen supports two UARTS. Unfortunately the 2nd
UART shares the pins with the programming interface. (PGC and PGD)
... |
Topic: PIC18F26K20 - 40 KHz PWM with defined # of periods |
chrhartz
Replies: 5
Views: 10177
|
Forum: General CCS C Discussion Posted: Sat Jan 30, 2016 11:25 am Subject: PIC18F26K20 - 40 KHz PWM with defined # of periods |
Many thanks for your answers!
I didn´t know that I can set the duty to 0% or 50% to change
the output behaviour of the pwm.
Feeding back the output to a timer input is a nice idea. This gives
... |
Topic: PIC18F26K20 - 40 KHz PWM with defined # of periods |
chrhartz
Replies: 5
Views: 10177
|
Forum: General CCS C Discussion Posted: Thu Jan 28, 2016 4:43 pm Subject: PIC18F26K20 - 40 KHz PWM with defined # of periods |
Hi,
I need to pulse a red laser diode with a fixed number of 40 KHz,
50 % duty pulses. Clock is a 16 MHz Crystal. The modulation input
of the laser driver is connected to the CCP1 pin. Also I can ... |
Topic: pic 16f877a sinewave |
chrhartz
Replies: 9
Views: 11254
|
Forum: General CCS C Discussion Posted: Mon May 26, 2014 1:17 pm Subject: pic 16f877a sinewave |
Hi John,
take a look here:
http://www.ccsinfo.com/forum/viewtopic.php?t=52418
http://www.romanblack.com/onesec/Sine1kHz.htm
Best wishes,
Chris |
Topic: PIC12F1822: PWM int-flag problem on mask level 9 |
chrhartz
Replies: 8
Views: 13746
|
Forum: General CCS C Discussion Posted: Sun May 25, 2014 3:26 pm Subject: PIC12F1822: PWM int-flag problem on mask level 9 |
@Ttelmah
Thank you for the explanation. I didn´t know that the #bit directive
uses bit set, test and clear instead of byte operations. I will use this
in the future.
@asmboy
I have found thi ... |
Topic: PIC12F1822: PWM int-flag problem on mask level 9 |
chrhartz
Replies: 8
Views: 13746
|
Forum: General CCS C Discussion Posted: Sat May 24, 2014 5:21 am Subject: PIC12F1822: PWM int-flag problem on mask level 9 |
@Ttelmah
finally I found the problem. It was the bit setting of the PIR1 register.
I do not really understand the reason. Can anyone explain this?
Why is
if( (PIR1 & 0x02) == 0x02 )
not ... |
Topic: PIC12F1822: PWM int-flag problem on mask level 9 |
chrhartz
Replies: 8
Views: 13746
|
Forum: General CCS C Discussion Posted: Fri May 23, 2014 3:43 pm Subject: PIC12F1822: PWM int-flag problem on mask level 9 |
Hi,
I am using PIC12F1822 to generate a sine wave via pwm.
The code was written and tested on silicium mask level 8.
But now I got mask level 9 and the code does not work anymore.
After some t ... |
|