Author |
Message |
Topic: CCS registration file error |
matthewmilford
Replies: 4
Views: 5773
|
Forum: General CCS C Discussion Posted: Mon Feb 26, 2024 12:07 pm Subject: CCS registration file error |
When checking the list at
C:\Program Files (x86)\PICC\Devices
I do have the pic I am attempting to use present. |
Topic: CCS registration file error |
matthewmilford
Replies: 4
Views: 5773
|
Forum: General CCS C Discussion Posted: Mon Feb 26, 2024 11:04 am Subject: CCS registration file error |
I am attempting to build a project and am getting the error "Registration File error" "PCM: compiler not found"
When I change my
#include <16f18857.H>
from the corr ... |
Topic: ADC unexpected results |
matthewmilford
Replies: 8
Views: 24112
|
Forum: General CCS C Discussion Posted: Mon Jun 28, 2021 2:33 pm Subject: ADC unexpected results |
I needed to add in the NOEXTOSC fuse, that seems to have fixed the issue. Thanks to those of you that mentioned fuses you were totally on the right track. |
Topic: ADC unexpected results |
matthewmilford
Replies: 8
Views: 24112
|
Forum: General CCS C Discussion Posted: Mon Jun 28, 2021 1:41 pm Subject: ADC unexpected results |
I don't think its as simple as a pinout issue. I have tried changing the pinout between 6, 7, and 9 ( 7 being the logical one and 6 and 9 coming from the data sheet).
It's entirely possible that ... |
Topic: ADC unexpected results |
matthewmilford
Replies: 8
Views: 24112
|
Forum: General CCS C Discussion Posted: Mon Jun 28, 2021 11:30 am Subject: ADC unexpected results |
changed that... still no luck. It has changed however, now it is hovering at zero as its readout. |
Topic: ADC unexpected results |
matthewmilford
Replies: 8
Views: 24112
|
Forum: General CCS C Discussion Posted: Mon Jun 28, 2021 8:07 am Subject: ADC unexpected results |
So, I was working on some code and needed to get an analog input signal. I have done this several times, with no issues.... however this time it seems to be a bit different. What am I missing? I am ... |
Topic: Wave form edge detection |
matthewmilford
Replies: 27
Views: 67907
|
Forum: General CCS C Discussion Posted: Thu Jun 17, 2021 9:00 am Subject: Wave form edge detection |
Everyone,
I finally got a working code. A bit strange as, so far as I can tell the ext_int_edge command is not working properly on this chip. So, I decided to change the bits manually and with a ... |
Topic: Wave form edge detection |
matthewmilford
Replies: 27
Views: 67907
|
Forum: General CCS C Discussion Posted: Wed Jun 16, 2021 2:25 pm Subject: Wave form edge detection |
Okay fixed that. Still no change but certainly good to get it right. |
Topic: Wave form edge detection |
matthewmilford
Replies: 27
Views: 67907
|
Forum: General CCS C Discussion Posted: Wed Jun 16, 2021 1:33 pm Subject: Wave form edge detection |
temtronic
1. its primary job is really to do this interrupt. Everything else is secondary and not all that time sensitive (it only needs to go as fast as a human for display and stuff). So how fa ... |
Topic: Wave form edge detection |
matthewmilford
Replies: 27
Views: 67907
|
Forum: General CCS C Discussion Posted: Wed Jun 16, 2021 11:17 am Subject: Wave form edge detection |
Okay so an update on what I have been doing. I was thinking about it last night and realized exactly what you pointed out with the edge... duh I need those. Anyway, I took your suggestion and stripp ... |
Topic: Wave form edge detection |
matthewmilford
Replies: 27
Views: 67907
|
Forum: General CCS C Discussion Posted: Tue Jun 15, 2021 2:43 pm Subject: Wave form edge detection |
So an update.... I was going back to the basics and found an interesting issue. When I run this external interrupt module where "inputsignal" is my 0-5v waveform it will never get into the ... |
Topic: Wave form edge detection |
matthewmilford
Replies: 27
Views: 67907
|
Forum: General CCS C Discussion Posted: Tue Jun 15, 2021 12:32 pm Subject: Wave form edge detection |
I have the delays in there to use as break points for trouble shooting. The waveform and speed are to control when it executes full wave run format. I don't want it to trigger when speed is 0 (its o ... |
Topic: Wave form edge detection |
matthewmilford
Replies: 27
Views: 67907
|
Forum: General CCS C Discussion Posted: Tue Jun 15, 2021 9:42 am Subject: Wave form edge detection |
I removed the global interrupt stuff (except the stop button to shut it off). No change with that.
I am aware that setting the edge doesn't enable it.
void main()
{
lcd_in ... |
Topic: Wave form edge detection |
matthewmilford
Replies: 27
Views: 67907
|
Forum: General CCS C Discussion Posted: Tue Jun 15, 2021 6:19 am Subject: Wave form edge detection |
I did not use the zcd that is built in due to not wanting to tie in ac power into the pic. I have an external zcd chip that feeds in a very nice isolated 0-5v square wave that matches up well with th ... |
Topic: Wave form edge detection |
matthewmilford
Replies: 27
Views: 67907
|
Forum: General CCS C Discussion Posted: Mon Jun 14, 2021 3:56 pm Subject: Wave form edge detection |
The Voltage on the input is 0 to 5VDC
The Frequency is 60 Hz
The VDD on the PIC18F26K42 is 5Volts
#INT_EXT // external interrupt ISR
void EXT_ISR()
{
disable_interru ... |
|