Author |
Message |
Topic: PWM shuts off unexpectedly for 16LF1503 |
randy.shaffer
Replies: 1
Views: 700
|
Forum: General CCS C Discussion Posted: Fri Oct 11, 2024 12:21 pm Subject: PWM shuts off unexpectedly for 16LF1503 |
#include <16LF1503.h> // device file
#fuses NOWDT, NOBROWNOUT
#use delay(internal = 16MHZ)
#use PWM(PWM1, FREQUENCY = 15.625kHz, OUTPUT = PIN_C5, PWM_OFF, STREAM = IN1)
#byte ... |
Topic: Help with rs-232 for PIC16F18323 [SOLVED] |
randy.shaffer
Replies: 10
Views: 10922
|
Forum: General CCS C Discussion Posted: Mon Jun 10, 2024 11:37 am Subject: Help with rs-232 for PIC16F18323 [SOLVED] |
Thank you for the clarification, much obliged. |
Topic: Help with rs-232 for PIC16F18323 [SOLVED] |
randy.shaffer
Replies: 10
Views: 10922
|
Forum: General CCS C Discussion Posted: Mon Jun 10, 2024 10:34 am Subject: VDD not connected |
I didn't have VDD connected because I wasn't using the VDD from the ICD-64. However, it appears that VDD must be connected for everything to work properly, even when the MCU is powered by a source ext ... |
Topic: Unable to view EEPROM data in CCSLOAD with 16F18323 |
randy.shaffer
Replies: 7
Views: 7366
|
Forum: General CCS C Discussion Posted: Sun Feb 18, 2024 9:47 am Subject: Unable to view EEPROM data in CCSLOAD with 16F18323 |
I was missing the read operation! Thank you so much! |
Topic: Unable to view EEPROM data in CCSLOAD with 16F18323 |
randy.shaffer
Replies: 7
Views: 7366
|
Forum: General CCS C Discussion Posted: Sat Feb 17, 2024 8:31 am Subject: Unable to view EEPROM data in CCSLOAD with 16F18323 |
Thank you, temtronic. I was hoping to view the stored values in CCSLOAD. I've modified the original code. |
Topic: Unable to view EEPROM data in CCSLOAD with 16F18323 |
randy.shaffer
Replies: 7
Views: 7366
|
Forum: General CCS C Discussion Posted: Fri Feb 16, 2024 5:43 pm Subject: Unable to view EEPROM data in CCSLOAD with 16F18323 |
Disregard, I was expecting to see the EEPROM values after re-programming and realized that is not correct, sorry for the trouble. |
Topic: Unable to view EEPROM data in CCSLOAD with 16F18323 |
randy.shaffer
Replies: 7
Views: 7366
|
Forum: General CCS C Discussion Posted: Fri Feb 16, 2024 5:17 pm Subject: Unable to view EEPROM data in CCSLOAD with 16F18323 |
Compiler is v5.116, programmer is ICD-U64. After the program executes, I was expecting to see the stored values in the Data Storage table in CCSLOAD but the table appears blank.
Is the base address i ... |
Topic: Help with rs-232 for PIC16F18323 [SOLVED] |
randy.shaffer
Replies: 10
Views: 10922
|
Forum: General CCS C Discussion Posted: Wed Oct 18, 2023 9:43 am Subject: Help with rs-232 for PIC16F18323 [SOLVED] |
Thank you, newguy, I tried compiling with ICD=TRUE and ICD= and found no difference in the fuses. Does anyone know if there is an ICD=something that corresponds to released code? The compiler doesn't ... |
Topic: Need help flashing an LED with PIC16F18323 |
randy.shaffer
Replies: 13
Views: 11851
|
Forum: General CCS C Discussion Posted: Tue Oct 17, 2023 8:53 am Subject: Need help flashing an LED with PIC16F18323 |
Thank you, Ttelmah. The MCLR pin has a 10k pull-up. I am using the CCS IDE and the ICD-U64 programmer. |
Topic: Need help flashing an LED with PIC16F18323 |
randy.shaffer
Replies: 13
Views: 11851
|
Forum: General CCS C Discussion Posted: Mon Oct 16, 2023 4:26 pm Subject: Need help flashing an LED with PIC16F18323 |
Thank you newguy, I will give that a try. |
Topic: Migration from 16F15223 to 16F18323 |
randy.shaffer
Replies: 12
Views: 11698
|
Forum: General CCS C Discussion Posted: Mon Oct 16, 2023 3:44 pm Subject: Migration from 16F15223 to 16F18323 |
I used the statement:
#device ICD=
in another program and now this program works as originally posted. Does anyone know why? I'm using the ICD-U64 programmer. |
Topic: Need help flashing an LED with PIC16F18323 |
randy.shaffer
Replies: 13
Views: 11851
|
Forum: General CCS C Discussion Posted: Mon Oct 16, 2023 3:39 pm Subject: Need help flashing an LED with PIC16F18323 |
I added the statement:
#device ICD=
and now it works. Also, I deleted the #device statement and it still works. Apparently, something got reset or happy. If anyone knows why this worked, I would ... |
Topic: Help with rs-232 for PIC16F18323 [SOLVED] |
randy.shaffer
Replies: 10
Views: 10922
|
Forum: General CCS C Discussion Posted: Mon Oct 16, 2023 3:34 pm Subject: Help with rs-232 for PIC16F18323 [SOLVED] |
Jay, thank you for the insight. It now gets more weird. I tried ICD = FALSE, but the compiler didn't like it. Then I tried various ICD = something and got no change. Then I tried
#device ICD=
An ... |
Topic: Help with rs-232 for PIC16F18323 [SOLVED] |
randy.shaffer
Replies: 10
Views: 10922
|
Forum: General CCS C Discussion Posted: Mon Oct 16, 2023 2:24 pm Subject: Help with rs-232 for PIC16F18323 [SOLVED] |
If I re-compile with ICD = TRUE, the program works in the debugger. But it doesn't work outside of the debugger. Do I need a #device ICD = something? to make it work on its own? |
Topic: Need help flashing an LED with PIC16F18323 |
randy.shaffer
Replies: 13
Views: 11851
|
Forum: General CCS C Discussion Posted: Mon Oct 16, 2023 12:58 pm Subject: Need help flashing an LED with PIC16F18323 |
#include <16F18323.h>
#fuses NOWDT
#use delay(internal = 1MHZ)
void main(void)
{
while(TRUE)
{
output_bit(PIN_C1, 0);
delay_ms(500 ... |
|