Author |
Message |
Topic: Issues with software PWM for microservo |
lucke
Replies: 7
Views: 20488
|
Forum: General CCS C Discussion Posted: Sat Sep 19, 2020 5:34 pm Subject: Issues with software PWM for microservo |
First, I would like to apologize for the time it took me to respond, I got busy and ended up putting the project aside...
Secondly, I would like to thank you for your efforts in helping me. The sugge ... |
Topic: Issues with software PWM for microservo |
lucke
Replies: 7
Views: 20488
|
Forum: General CCS C Discussion Posted: Wed Aug 26, 2020 8:47 am Subject: Issues with software PWM for microservo |
It takes about 50 instructions just for interrupt overhead code.
At 4 MHz, this is 50us. Then you have your isr user code on top of that.
Hm.. ok, I understand the 50us part ((1/4M)*4 for instru ... |
Topic: Issues with software PWM for microservo |
lucke
Replies: 7
Views: 20488
|
Forum: General CCS C Discussion Posted: Tue Aug 25, 2020 9:30 pm Subject: Issues with software PWM for microservo |
It would be 57 instructions (and 57us) (0x6E-0x36+1)?
This means that changing the processing location (to main() for example) would also not work, right? |
Topic: Issues with software PWM for microservo |
lucke
Replies: 7
Views: 20488
|
Forum: General CCS C Discussion Posted: Tue Aug 25, 2020 7:12 pm Subject: Issues with software PWM for microservo |
Hi all,
I'm trying to make PWM software to control a "9g" microservo, but it's not working (the servomotor does not change the angle correctly):
Servo details:
Freq: 50hz/20ms period
- ... |
Topic: Problem with TIMER0 (PIC16F630) |
lucke
Replies: 4
Views: 13508
|
Forum: General CCS C Discussion Posted: Tue Jul 23, 2019 7:14 pm Subject: Problem with TIMER0 (PIC16F630) |
However the big issue is the inaccuracy of the internal timer.
If I buy a 4MHz crystal and set the oscillator (like in https://www.ccsinfo.com/newsdesk_info.php?newsPath=ALL&newsdesk_id=164), ... |
Topic: Problem with TIMER0 (PIC16F630) |
lucke
Replies: 4
Views: 13508
|
Forum: General CCS C Discussion Posted: Mon Jul 22, 2019 9:17 pm Subject: Problem with TIMER0 (PIC16F630) |
Hello guys! I am trying to make a clock using PIC16F630 and a CD4511 by multiplexing 7 segment displays. Everything is working except the accuracy of time.
I am using TIMER0 (8 bits), and for overflo ... |
Topic: Thermostat with ds18b20 and pic16f628a |
lucke
Replies: 4
Views: 13868
|
Forum: General CCS C Discussion Posted: Fri Mar 24, 2017 9:13 pm Subject: Re: Thermostat with ds18b20 and pic16f628a |
Whatever the temperature on the ds18b20, the LCD always accounted "-
0.5C". Is it a Proteus bug or would it also go wrong in practice?
Read these posts about the "-0.5C" prob ... |
Topic: Thermostat with ds18b20 and pic16f628a |
lucke
Replies: 4
Views: 13868
|
Forum: General CCS C Discussion Posted: Fri Mar 24, 2017 1:33 pm Subject: Thermostat with ds18b20 and pic16f628a |
Hello, Jay! Firstly, thanks for replying to the topic, I've put this in several forums here in Brazil and nobody helps me...
do NOT waste your time with Proteus.
Ok kkkk
the driver is for a ... |
Topic: Thermostat with ds18b20 and pic16f628a |
lucke
Replies: 4
Views: 13868
|
Forum: General CCS C Discussion Posted: Thu Mar 23, 2017 8:57 am Subject: Thermostat with ds18b20 and pic16f628a |
Hello everyone! I'm a beginner in this forum and a beginner in electronics. Any help will be welcome! I need to interface the sensor with Pic to activate a cooling system with a DC motor after the tem ... |
|