Author |
Message |
Topic: PIC16F616 PWM and ADC |
jjude
Replies: 5
Views: 11766
|
Forum: General CCS C Discussion Posted: Tue Jan 22, 2013 1:29 am Subject: PIC16F616 PWM and ADC |
I'm sorry!
The code works just fine, the problem was the rest of the code. |
Topic: PIC16F616 PWM and ADC |
jjude
Replies: 5
Views: 11766
|
Forum: General CCS C Discussion Posted: Mon Jan 21, 2013 12:13 pm Subject: PIC16F616 PWM and ADC |
How do you KNOW what's working and what's not?
Is this real hardware or simulation?
Mike
I see that the oscilloscope pwm works.
But by changing the voltage of the ADC does not change dutycycle.
C ... |
Topic: PIC16F616 PWM and ADC |
jjude
Replies: 5
Views: 11766
|
Forum: General CCS C Discussion Posted: Mon Jan 21, 2013 6:24 am Subject: PIC16F616 PWM and ADC |
Hi.
I need PWM output and ADC input my project.
PWM its OK, but ADC no read voltage and replace PWM duty cycle.
Its my config OK?
#include <16F616.h>
#device adc=8
//
#FUSES WDT ... |
Topic: Compiler say "Undefined identifier" |
jjude
Replies: 8
Views: 11904
|
Forum: General CCS C Discussion Posted: Wed Jan 25, 2012 6:19 am Subject: Compiler say "Undefined identifier" |
I moved "#bit-rows" subroutine files and now compiles OK.
#bit ECCPAS0 = 0x17.4 // PWM auto shotdown contro
#bit ECCPASE = 0x17.7 // PWM start/stop control
void eteen_kiihdytys() ... |
Topic: Compiler say "Undefined identifier" |
jjude
Replies: 8
Views: 11904
|
Forum: General CCS C Discussion Posted: Tue Jan 24, 2012 11:32 pm Subject: Compiler say "Undefined identifier" |
Have you actually 'cut and pasted' the name between the locations?. This has all the symptoms, of the actual value typed, accidentally having an invisible character in it. Used to be a standard 'trick ... |
Topic: Compiler say "Undefined identifier" |
jjude
Replies: 8
Views: 11904
|
Forum: General CCS C Discussion Posted: Tue Jan 24, 2012 8:29 am Subject: Compiler say "Undefined identifier" |
Might it be you have ECCPAS0 once with a zero and the other with a capital letter O.
No. All ECCPAS0 is zero. |
Topic: Compiler say "Undefined identifier" |
jjude
Replies: 8
Views: 11904
|
Forum: General CCS C Discussion Posted: Tue Jan 24, 2012 5:45 am Subject: Compiler say "Undefined identifier" |
Since you have cut and carved the stuff in front of it, there is no way we can help. However (for example), you will find people having faults like this, often having something missing like a bracket, ... |
Topic: Compiler say "Undefined identifier" |
jjude
Replies: 8
Views: 11904
|
Forum: General CCS C Discussion Posted: Tue Jan 24, 2012 2:39 am Subject: Compiler say "Undefined identifier" |
Complier 4.099
PIC 16F616
#include <16F616.h>
#device adc=8
//
#FUSES WDT //Watch Dog Timer
#FUSES INTRC //Internal RC Osc
#FUSES NOPROTECT ... |
Topic: Internal oscillator |
jjude
Replies: 2
Views: 4573
|
Forum: General CCS C Discussion Posted: Thu Sep 08, 2011 1:05 am Subject: Internal oscillator |
How reliable is the internal oscillator (PIC16F616)?
Does it work reliably even after 10 years? |
Topic: I don't understand assembler |
jjude
Replies: 3
Views: 4443
|
Forum: General CCS C Discussion Posted: Thu Feb 18, 2010 3:23 am Subject: I don't understand assembler |
Hi.
027F: BSF 03.5 this switch to data memory bank 1(STATUS register bit 5 = 1)
0281: CLRF 1A SRCON1 = 0 (address = 80h+1Ah = 9Ah)
0282: CLRF 19 SRCON0 = 0 (address = 80h+19h = 99h)
Look at page 1 ... |
Topic: I don't understand assembler |
jjude
Replies: 3
Views: 4443
|
Forum: General CCS C Discussion Posted: Thu Feb 18, 2010 2:24 am Subject: I don't understand assembler |
PIC16F616
.................... setup_vref(VREF_HIGH|REFERENSSI);
0278: MOVLW 8C This I understand W = 8C
0279: MOVWF 19 This I understand W -> 19 (VRCON)
.................... s ... |
Topic: Compiler version history |
jjude
Replies: 1
Views: 6764
|
Forum: General CCS C Discussion Posted: Sun Feb 14, 2010 12:13 pm Subject: Compiler version history |
Where I can find compiler version history?
WWW-sites is change and I don't find this. |
Topic: SWITCH, CASE and BREAK |
jjude
Replies: 10
Views: 55910
|
Forum: General CCS C Discussion Posted: Fri Feb 12, 2010 4:07 am Subject: SWITCH, CASE and BREAK |
switch(xxx)
{
case : 1
{
if(input(PIN_A1)) break;
else yyy = 0;
}
break; //COMING BREAK THIS
default :
... |
Topic: ECCPAS-register (16F616) |
jjude
Replies: 1
Views: 3860
|
Forum: General CCS C Discussion Posted: Wed Feb 10, 2010 6:01 am Subject: ECCPAS-register (16F616) |
How control ECCPAS-register (address 0x17)?
I need test, set and clear ECCPASE-bit (bit 7). |
Topic: 16F616 PWM stopped |
jjude
Replies: 1
Views: 3015
|
Forum: General CCS C Discussion Posted: Thu Feb 04, 2010 2:27 am Subject: 16F616 PWM stopped |
Code "input_c();" stopped PWM?!?
PWM run on, but when I write code "input_c();"
then PWM not run!
Why?
(PWM output in C5, compiler PCWH 4.099) |
|