Author |
Message |
Topic: Pulse counting routine |
RandyP
Replies: 10
Views: 14323
|
Forum: General CCS C Discussion Posted: Mon Jul 06, 2015 8:26 am Subject: RE: Pulse counting routine |
Thank you all. Great suggestions.
Somehow I started a new thread without knowing it and thanks to Guy I realized that I was watching the new thread while you were giving great suggestions on the r ... |
Topic: OK, I am an idiot |
RandyP
Replies: 2
Views: 6071
|
Forum: General CCS C Discussion Posted: Sat Jul 04, 2015 4:08 pm Subject: OK, I am an idiot |
Feel free to disagree...
It finally dawned on me that if I have fewer than the max pulses I will still make my way down through the rest of the IF ELSE statements and count the lows. This will neve ... |
Topic: Pulse counting routine |
RandyP
Replies: 10
Views: 14323
|
Forum: General CCS C Discussion Posted: Sat Jul 04, 2015 3:45 pm Subject: Using a debug would help, but... |
I was going to debug with the PicKit3 but the setup required different OSC settings and different pins, etc. and I didn't want to start tearing up my board, so I was turning chip 2's led's on at certa ... |
Topic: Pulse counting routine |
RandyP
Replies: 10
Views: 14323
|
Forum: General CCS C Discussion Posted: Sat Jul 04, 2015 3:38 pm Subject: once more |
Oh, I get what you are saying. Create a short compilable program that illustrates my problem. Not necessarily the entire program, much of which is irrelevant to my post. I got it, thanks. |
Topic: Pulse counting routine |
RandyP
Replies: 10
Views: 14323
|
Forum: General CCS C Discussion Posted: Sat Jul 04, 2015 3:36 pm Subject: Pulse counting routine |
Thanks. Are you saying I can ignore the low part of the pulses and just count the highs? I will try it.
I purposely didn't put the entire code up because it is long. I must say I never thought some ... |
Topic: Pulse counting routine |
RandyP
Replies: 10
Views: 14323
|
Forum: General CCS C Discussion Posted: Sat Jul 04, 2015 1:48 pm Subject: Pulse counting routine |
Using PIC 16F690, MPLAB 8.92, and PicKit3, and CCS V4.050
I am working on a program in which a number of pulses at Pin RA4 are to be counted and actions taken based on the number of pulses.
The ... |
Topic: Need Input(pin_A0) for PIC16F690 Help |
RandyP
Replies: 16
Views: 27592
|
Forum: General CCS C Discussion Posted: Wed Jun 24, 2015 4:05 pm Subject: Need Input(pin_A0) for PIC16F690 Help |
You are right. I used the INTRC_IO and it allowed me to use RA4 and RA5 as digital inputs. Can you tell me which oscillator this function uses? Is it the calibrated or uncalibrated one?
That was t ... |
Topic: Need Input(pin_A0) for PIC16F690 Help |
RandyP
Replies: 16
Views: 27592
|
Forum: General CCS C Discussion Posted: Wed Jun 24, 2015 1:01 pm Subject: Need Input(pin_A0) for PIC16F690 Help |
Yes, I see on page 38 I read the last line of the INTOSCCIO (which lets the OSC1 & OSC2 pins - RA4,RA5 available for I/O) I thought I read that under the next heading HFINTOSC. No wonder I could n ... |
Topic: Need Input(pin_A0) for PIC16F690 Help |
RandyP
Replies: 16
Views: 27592
|
Forum: General CCS C Discussion Posted: Tue Jun 23, 2015 10:17 pm Subject: 16F690 PortA as digital inputs |
Inching closer. Thanks for the tip about using a Pickit 3 instead of a 2, and upgrading to MPLAB 8.92. I immediately was able to use RA0...RA3 as digital inputs. Been working on RA4 and RA5. I learned ... |
Topic: Need Input(pin_A0) for PIC16F690 Help |
RandyP
Replies: 16
Views: 27592
|
Forum: General CCS C Discussion Posted: Thu Jun 18, 2015 8:57 am Subject: Need Input(pin_A0) for PIC16F690 Help |
That's a big help as money is tight. Thanks. |
Topic: Need Input(pin_A0) for PIC16F690 Help |
RandyP
Replies: 16
Views: 27592
|
Forum: General CCS C Discussion Posted: Wed Jun 17, 2015 4:54 pm Subject: Need Input(pin_A0) for PIC16F690 Help |
Man, I am impressed you would do that. I really appreciated it. I copied your code and programmed it into my 16F690 and still same problem, that tells me I need to go to later version of MPLAB and inv ... |
Topic: Need Input(pin_A0) for PIC16F690 Help |
RandyP
Replies: 16
Views: 27592
|
Forum: General CCS C Discussion Posted: Wed Jun 17, 2015 1:54 pm Subject: Need Input(pin_A0) for PIC16F690 Help |
Thanks. I had forgot to mention I removed the pot that is attached to RA0. Have you ever used the 16F690 by chance? It doesn't make sense that the input() command is not working. I am betting the se ... |
Topic: Need Input(pin_A0) for PIC16F690 Help |
RandyP
Replies: 16
Views: 27592
|
Forum: General CCS C Discussion Posted: Wed Jun 17, 2015 7:55 am Subject: Need Input(pin_A0) for PIC16F690 Help |
Hi PCM Programmer,
Thank you for responding to my post. Here is the info you requested:
1) CCS PCM C Compiler, Version 4.050
2) The development board is the "Low Pin Count Demo Board" ... |
Topic: Need Input(pin_A0) for PIC16F690 Help |
RandyP
Replies: 16
Views: 27592
|
Forum: General CCS C Discussion Posted: Tue Jun 16, 2015 4:32 pm Subject: Still not working |
Hi everyone,
As previously suggested I tried using pin A2, then A3 as my input pin.
I disabled the following:
CCP1, Comparator, Vref, Timer1, ADC, MCLR
In my real application I need 5 outpu ... |
Topic: Need Input(pin_A0) for PIC16F690 Help |
RandyP
Replies: 16
Views: 27592
|
Forum: General CCS C Discussion Posted: Mon Jun 15, 2015 6:42 pm Subject: Need Input(pin_A0) for PIC16F690 Help |
I will, thank you. I wish I understood the PIC micros better!
Thanks again. I will post when it works. |
|