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 40 matches
CCS Forum Index
Author Message
  Topic: PIC18F14K50 - Setting Pin C7 as Analogue Input
mayur.k.vadukul

Replies: 8
Views: 6192

PostForum: General CCS C Discussion   Posted: Fri May 03, 2024 3:17 am   Subject: PIC18F14K50 - Setting Pin C7 as Analogue Input
OK.
First comment _USE THE CODE BUTTONS_.... Sad

Now that having been said, this was what I was puzzled by:

setup_adc_ports(NO_ANALOGS, VSS_FVR);

Pointless line. The _last_ setup_adc_po ...
  Topic: PIC18F14K50 - Setting Pin C7 as Analogue Input
mayur.k.vadukul

Replies: 8
Views: 6192

PostForum: General CCS C Discussion   Posted: Wed May 01, 2024 2:21 pm   Subject: PIC18F14K50 - Setting Pin C7 as Analogue Input
Not going to download code, but what you originally posted does not
have a set_adc_channel call.
I don't think the define VSS_FVR, is for the setup_adc_ports call.
That is for using FVR as the refe ...
  Topic: PIC18F14K50 - Setting Pin C7 as Analogue Input
mayur.k.vadukul

Replies: 8
Views: 6192

PostForum: General CCS C Discussion   Posted: Wed May 01, 2024 9:47 am   Subject: PIC18F14K50 - Setting Pin C7 as Analogue Input
Download the stripped down simple code.

https://file.io/X3njzKvsLfPl
  Topic: PIC18F14K50 - Setting Pin C7 as Analogue Input
mayur.k.vadukul

Replies: 8
Views: 6192

PostForum: General CCS C Discussion   Posted: Wed May 01, 2024 6:22 am   Subject: PIC18F14K50 - Setting Pin C7 as Analogue Input
my comments

1) disable the WDT ! It's not needed until your entire program has been 100% coded/compiled and working.

- I tried with both WDT enabled and disabled.

2) The PIC.hdr file I have d ...
  Topic: PIC18F14K50 - Setting Pin C7 as Analogue Input
mayur.k.vadukul

Replies: 8
Views: 6192

PostForum: General CCS C Discussion   Posted: Tue Apr 30, 2024 4:16 am   Subject: PIC18F14K50 - Setting Pin C7 as Analogue Input
Can anyone please let me know whether the settings below are correct, if I want to set Pin C7 as the Analogue Input using the internal reference voltage.
I am using the internal crystal with PLL.

...
  Topic: PIC18F14K50 - Port Pin B4 outputs High All the time.
mayur.k.vadukul

Replies: 18
Views: 11526

PostForum: General CCS C Discussion   Posted: Tue Apr 30, 2024 1:36 am   Subject: PIC18F14K50 - Debugging with Internal Oscillator
hmm... I recall some PICs cannot use the internal oscillator when run off the Pickit3. There's got to be a 'notice' about this somewhere....

@temtronic, I am using ICD-U80 debugger.
  Topic: PIC18F14K50 - Port Pin B4 outputs High All the time.
mayur.k.vadukul

Replies: 18
Views: 11526

PostForum: General CCS C Discussion   Posted: Mon Apr 29, 2024 9:26 am   Subject: PIC18F14K50 - Debugging with Internal Oscillator
Still the issue is with debugging the micro with internal oscillator enabled and CCS have confirmed that they have simulated the fault but do not know the solution. This indicates that this might be d ...
  Topic: PIC18F14K50 - Port Pin B4 outputs High All the time.
mayur.k.vadukul

Replies: 18
Views: 11526

PostForum: General CCS C Discussion   Posted: Mon Apr 29, 2024 8:32 am   Subject: PIC18F14K50 - Port Pin B4 outputs High All the time.
Thanks for the help.

Port Pint B4 is behaving correctly now. It seems that the Pull Down resistor is not soldered properly. i.e. intermittent, so when I pressed with multimeter, it worked so it was ...
  Topic: PIC18F14K50 - Port Pin B4 outputs High All the time.
mayur.k.vadukul

Replies: 18
Views: 11526

PostForum: General CCS C Discussion   Posted: Mon Apr 29, 2024 7:56 am   Subject: PIC18F14K50 - Port Pin B4 outputs High All the time.
Download from below:-

https://file.io/CUKsblQ01uCQ
  Topic: PIC18F14K50 - Port Pin B4 outputs High All the time.
mayur.k.vadukul

Replies: 18
Views: 11526

PostForum: General CCS C Discussion   Posted: Mon Apr 29, 2024 7:43 am   Subject: PIC18F14K50 - Port Pin B4 outputs High All the time.
Same board works well with the code which is old Hi-Tech compiler code for the hardware. That does work and I have converted the code into CCS compiler.
Then I stripped down the code to bare minimum ...
  Topic: PIC18F14K50 - Port Pin B4 outputs High All the time.
mayur.k.vadukul

Replies: 18
Views: 11526

PostForum: General CCS C Discussion   Posted: Mon Apr 29, 2024 5:32 am   Subject: PIC18F14K50 - Port Pin B4 outputs High All the time.
10K is a lot smaller than recommended. Minimum recommended is 22K...
10K was the recommended value back in the ICD2 days. These were able
to drive a lower resistor.
The help for the ICD-U80 recomme ...
  Topic: PIC18F14K50 - Port Pin B4 outputs High All the time.
mayur.k.vadukul

Replies: 18
Views: 11526

PostForum: General CCS C Discussion   Posted: Mon Apr 29, 2024 5:29 am   Subject: PIC18F14K50 - Port Pin B4 outputs High All the time.
@tmtronic,
MAINS_IP is the low voltage input for the microprocessor and it does not get anything beyond 5V.

The hardware is fine as the old MPLAB Hi-Tech code for the board works correctly. I have ...
  Topic: PIC18F14K50 - Port Pin B4 outputs High All the time.
mayur.k.vadukul

Replies: 18
Views: 11526

PostForum: General CCS C Discussion   Posted: Mon Apr 29, 2024 2:23 am   Subject: PIC18F14K50 - Port Pin B4 outputs High All the time.
I have always compiled & debug with Watchdog and compiler whilst debugging, switches off the watchdog. I have used the compiler for so many micros and having trouble with this particular one.

M ...
  Topic: PIC18F14K50 - Port Pin B4 outputs High All the time.
mayur.k.vadukul

Replies: 18
Views: 11526

PostForum: General CCS C Discussion   Posted: Mon Apr 29, 2024 1:45 am   Subject: PIC18F14K50 - Port Pin B4 outputs High All the time.
Hi,
I have very basic code as below:-

#include <18F14K50.h>
#device ADC=10

#FUSES WDT //Watch Dog Timer
#FUSES WDT256 //Watch Dog Timer uses 1:256 ...
  Topic: How to check timer flag without enabling interrupt?
mayur.k.vadukul

Replies: 10
Views: 9016

PostForum: General CCS C Discussion   Posted: Thu Feb 08, 2024 2:51 am   Subject: How to check timer flag without enabling interrupt?
Thanks for your help.

The issues are in the device's .h files whereby the constants they defined do not tie up with the datasheet's register. T1_INTERNAL should turn on the Timer and place it under ...
 
Page 1 of 3 Goto page 1, 2, 3  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group