Author |
Message |
Topic: Small AC Signal input protection |
luisjoserod
Replies: 9
Views: 19509
|
Forum: General CCS C Discussion Posted: Mon Oct 14, 2019 8:16 am Subject: Small AC Signal input protection |
Hi, i've been reading you all and make this:
[img]https://imgur.com/2OPZ7MG[/img]
R10 and R11 are for offset,
Can you give me any feed back on my design?
Thanks |
Topic: Small AC Signal input protection |
luisjoserod
Replies: 9
Views: 19509
|
Forum: General CCS C Discussion Posted: Fri Sep 27, 2019 1:46 pm Subject: Small AC Signal input protection |
Hi, I've been reading this https://www.ccsinfo.com/forum/viewtopic.php?p=127332 but still don't sure if it's ok to apply something like this to my purpose.
My ideal signal is a 5Vpp @ 1khz , then b ... |
Topic: About RMS Calculation without offset |
luisjoserod
Replies: 14
Views: 29858
|
Forum: General CCS C Discussion Posted: Wed Aug 14, 2019 3:40 pm Subject: About RMS Calculation without offset |
Here's the optimized code:
#include <16F876A.h>
#fuses HS,NOWDT,NOLVP
#device adc=8
#use delay(clock=20000000)
#use rs232(baud=9600,xmit=PIN_C6,rcv=PIN_C7,parity=N)
... |
Topic: About RMS Calculation without offset |
luisjoserod
Replies: 14
Views: 29858
|
Forum: General CCS C Discussion Posted: Wed Aug 14, 2019 5:20 am Subject: About RMS Calculation without offset |
Thanks temtronic,
I will consider your recommendations when doing the practice on the ProjectBoard.
Ttelmah, you're right.
I'd been reading a lot these days, but not sure if i understand what ... |
Topic: About RMS Calculation without offset |
luisjoserod
Replies: 14
Views: 29858
|
Forum: General CCS C Discussion Posted: Mon Aug 12, 2019 2:44 am Subject: About RMS Calculation without offset |
Thanks guys! Problem solved
for a sinusoidal input @ 1khz without offset gives 1.82, 1.66, 1.77, 1.79. Any suggestion about how to make it more solid/stable? |
Topic: About RMS Calculation without offset |
luisjoserod
Replies: 14
Views: 29858
|
Forum: General CCS C Discussion Posted: Sun Aug 11, 2019 4:39 pm Subject: About RMS Calculation without offset |
Thanks for your beautiful answers,
By now i'm working only on the simulator so there's no noise related events.
Following your suggestions, i just have done a test.
Instead of calculating ... |
Topic: About RMS Calculation without offset |
luisjoserod
Replies: 14
Views: 29858
|
Forum: General CCS C Discussion Posted: Sun Aug 11, 2019 11:19 am Subject: About RMS Calculation without offset |
Hello there,
I'm trying to adaptate the example ex_rmsdb.c for my current project, i managed to run perfectly this way:
#include <16F876A.h>
#fuses HS,NOWDT,NOLVP
#device adc=8
#use d ... |
Topic: Constantly doing different setups for Timers |
luisjoserod
Replies: 5
Views: 13616
|
Forum: General CCS C Discussion Posted: Fri Feb 22, 2019 3:09 pm Subject: Constantly doing different setups for Timers |
Thanks you |
Topic: Constantly doing different setups for Timers |
luisjoserod
Replies: 5
Views: 13616
|
Forum: General CCS C Discussion Posted: Fri Feb 22, 2019 2:47 pm Subject: Constantly doing different setups for Timers |
No, i'm not saying the fuses affects the timers.
I remember you recommended other user
not to mess with fuses because of what PCM Programmer says.
i was wondering if something analogue
happens w ... |
Topic: Constantly doing different setups for Timers |
luisjoserod
Replies: 5
Views: 13616
|
Forum: General CCS C Discussion Posted: Fri Feb 22, 2019 6:58 am Subject: Constantly doing different setups for Timers |
Hello, i know that changing FUSES it's a totally BAD idea..
But i wonder if anything could go wrong if i do different setups
for timer on different situations, it could short the Life-Time of the ... |
Topic: Sampling both 1kHz and very slow Signals ADC |
luisjoserod
Replies: 7
Views: 17040
|
Forum: General CCS C Discussion Posted: Fri Feb 15, 2019 6:50 pm Subject: Sampling both 1kHz and very slow Signals ADC |
Your last message was very helpful
Now it sounds as if you are talking about wanting to read other ADC
channels?
Actually, yes.
I would like to have one command for sampling channel 0 ... |
Topic: Sampling both 1kHz and very slow Signals ADC |
luisjoserod
Replies: 7
Views: 17040
|
Forum: General CCS C Discussion Posted: Thu Feb 14, 2019 7:41 pm Subject: Sampling both 1kHz and very slow Signals ADC |
Thanks Ttelmah and temtronic, you're awesome
The 8bit ADC setting seturns the top 8bits of the ADC register. Exactly the same as you will get by rotating by two bits.
I really appreciate ... |
Topic: TIMER0 PROBLEM |
luisjoserod
Replies: 3
Views: 11479
|
Forum: General CCS C Discussion Posted: Thu Feb 14, 2019 10:30 am Subject: TIMER0 PROBLEM |
Thanks guys!
I will avoid the use of Timers for my project,
following the recommendations on Ttelmah on
this other thread:
https://www.ccsinfo.com/forum/viewtopic.php?p=222513#222513 |
Topic: Sampling both 1kHz and very slow Signals ADC |
luisjoserod
Replies: 7
Views: 17040
|
Forum: General CCS C Discussion Posted: Thu Feb 14, 2019 10:21 am Subject: Sampling both 1kHz and very slow Signals ADC |
Thanks for your beautiful answer and fast response!
I was really starting to feel desperated about it.
But now it's more clear to me how to get this done.
In order to do a succesful com ... |
Topic: TIMER0 PROBLEM |
luisjoserod
Replies: 3
Views: 11479
|
Forum: General CCS C Discussion Posted: Wed Feb 13, 2019 6:25 pm Subject: TIMER0 PROBLEM |
Hello guys, i'm using this code:
#include <16F876A.h>
#FUSES NOWDT
#FUSES XT
#FUSES PUT
#FUSES NOPROTECT ... |
|