Author |
Message |
Topic: Incorrect code generation for output pins on PIC 16F15354 ? |
JimHearne
Replies: 6
Views: 7199
|
Forum: General CCS C Discussion Posted: Tue Mar 05, 2024 4:32 am Subject: Incorrect code generation for output pins on PIC 16F15354 ? |
Hi Jeremiah,
Thank you for that additional information, that will make it much easier to update existing code rather than having to rewrite it to use the CCS functions.
Many thanks,
Jim |
Topic: Incorrect code generation for output pins on PIC 16F15354 ? |
JimHearne
Replies: 6
Views: 7199
|
Forum: General CCS C Discussion Posted: Fri Mar 01, 2024 5:20 am Subject: Incorrect code generation for output pins on PIC 16F15354 ? |
Hi Ttelmah,
Thank you very much for the detailed explanation, it makes sense.
I've been writing code on the PICs with the CCS compiler for around 20 years and i've always used #bit and #byte for the ... |
Topic: Incorrect code generation for output pins on PIC 16F15354 ? |
JimHearne
Replies: 6
Views: 7199
|
Forum: General CCS C Discussion Posted: Fri Mar 01, 2024 4:11 am Subject: Incorrect code generation for output pins on PIC 16F15354 ? |
Hi all,
Compiler version 5.105, PIC 16F15354
This is a very hacked down program so show what i believe the problem is.
I initalise a variable op_on to 1 and then in the main loop i output that ... |
Topic: 16F18425 ADC Frc Oscillator stops running when PIC is warm. |
JimHearne
Replies: 11
Views: 26166
|
Forum: General CCS C Discussion Posted: Tue Apr 06, 2021 5:07 am Subject: 16F18425 ADC Frc Oscillator stops running when PIC is warm. |
The PIC is supposed to work between -40°C to 85°C so 40°C should be fine.
Anyways, this was found during testing , it normally will be at close to ambient
air temperature, though in some part ... |
Topic: 16F18425 ADC Frc Oscillator stops running when PIC is warm. |
JimHearne
Replies: 11
Views: 26166
|
Forum: General CCS C Discussion Posted: Tue Apr 06, 2021 3:50 am Subject: 16F18425 ADC Frc Oscillator stops running when PIC is warm. |
Sorry, posted my last message while you were replying.
An expensive lesson learnt.
Thanks,
Jim |
Topic: 16F18425 ADC Frc Oscillator stops running when PIC is warm. |
JimHearne
Replies: 11
Views: 26166
|
Forum: General CCS C Discussion Posted: Tue Apr 06, 2021 3:48 am Subject: 16F18425 ADC Frc Oscillator stops running when PIC is warm. |
Ok, after looking at some datasheets for older PIC i can see on some that there is this mention of not using Frc with a clock above 1mhz below the ADC clock table.
On other PIC's it's in the Errata.
... |
Topic: 16F18425 ADC Frc Oscillator stops running when PIC is warm. |
JimHearne
Replies: 11
Views: 26166
|
Forum: General CCS C Discussion Posted: Tue Apr 06, 2021 3:01 am Subject: 16F18425 ADC Frc Oscillator stops running when PIC is warm. |
Hi Ttelmah,
Thank you for your reply.
I used the Frc as I knew of no reason not to use it.
I would be grateful if you could point me at the section in the 16F18425 datasheet that mentions not u ... |
Topic: 16F18425 ADC Frc Oscillator stops running when PIC is warm. |
JimHearne
Replies: 11
Views: 26166
|
Forum: General CCS C Discussion Posted: Tue Apr 06, 2021 2:30 am Subject: 16F18425 ADC Frc Oscillator stops running when PIC is warm. |
Hi All,
I've been on here before but had to re-register as i couldn't get my old logon to work.
We've come across a problem with a product using a PIC 16F18425
I was using the Frc Oscillator a ... |
|