Author |
Message |
Topic: get/set time on DS1307 |
IceMetal
Replies: 1
Views: 4894
|
Forum: General CCS C Discussion Posted: Thu Feb 27, 2014 10:15 am Subject: get/set time on DS1307 |
I'm trying to write alarm clock, with the DS1307 but instead of using LCD I want to communicate via serial and I haven't done c programming in so long I forgot my basic, I would google this but I dont ... |
Topic: shift PWM |
IceMetal
Replies: 15
Views: 23638
|
Forum: General CCS C Discussion Posted: Mon Oct 07, 2013 1:13 pm Subject: shift PWM |
I see everyone talking about it how is possible or not possible, but is it possible with ccs?
if it is where is a sample code where it can control 2 timers to start at a different time. |
Topic: shift PWM |
IceMetal
Replies: 15
Views: 23638
|
Forum: General CCS C Discussion Posted: Mon Oct 07, 2013 9:42 am Subject: shift PWM |
OK Jay, so all 4 timer on datasheet is just for advertising, when in reality is only 1 timer?
what would be an example code with CCS with a pic with 2 timers and which pic microcontroller would be? |
Topic: shift PWM |
IceMetal
Replies: 15
Views: 23638
|
Forum: General CCS C Discussion Posted: Mon Oct 07, 2013 9:00 am Subject: shift PWM |
thank you, so i'm back where i started
how can i control each timer separate so they would start at different time? |
Topic: shift PWM |
IceMetal
Replies: 15
Views: 23638
|
Forum: General CCS C Discussion Posted: Fri Oct 04, 2013 8:43 am Subject: shift PWM |
so is there code to talk to a pic hardware to accomplish what I'm trying to do? is there any pic that actually has 2 timers? according to the datasheet I though I would be able to talk to each timer i ... |
Topic: shift PWM |
IceMetal
Replies: 15
Views: 23638
|
Forum: General CCS C Discussion Posted: Thu Oct 03, 2013 11:29 am Subject: shift PWM |
as previously noted the PIC you're using doesn't have the hardware you need for a 'hardware' solution.
sorry I still don't know what you mean by that, as jeremiah mention it has 2 timers, wouldn't ... |
Topic: shift PWM |
IceMetal
Replies: 15
Views: 23638
|
Forum: General CCS C Discussion Posted: Thu Oct 03, 2013 11:06 am Subject: shift PWM |
It may have 4 timers, but the PWM module only works with timer 2. Look at the PWM section of the datasheet you linked.
ok so is not 1 timer, any idea how can I run both timer separate from each ot ... |
Topic: shift PWM |
IceMetal
Replies: 15
Views: 23638
|
Forum: General CCS C Discussion Posted: Thu Oct 03, 2013 9:49 am Subject: shift PWM |
but all the PWM's, on this generator, run from a a single timer
Thank you for the information, but how can I use the other timers according to the datasheet on page 13
http://ww1.microchip.com/down ... |
Topic: shift PWM |
IceMetal
Replies: 15
Views: 23638
|
Forum: General CCS C Discussion Posted: Wed Oct 02, 2013 3:41 pm Subject: shift PWM |
Hi I'm still having trouble adjusting this PWM
how can I shift one of the PWM 200us
http://s11.postimg.org/4vmyrrwv7/TEK0001.jpg
#include <18F4431.h>
#fuses HS,NOWDT,PUT,BROWNOUT,NOLVP
... |
Topic: 16F628A does not work at 3.3V |
IceMetal
Replies: 8
Views: 18344
|
Forum: General CCS C Discussion Posted: Wed Mar 20, 2013 12:33 pm Subject: 16F628A does not work at 3.3V |
From what I read, you'll have to disable the brownout fuse.
"Brown-out Detect Voltage 3.7 4.0 4.3 V"
So my thinking is that since 3.3 < 3.7 , PIC sees a 'brownout' condition and will ... |
Topic: 16F628A does not work at 3.3V |
IceMetal
Replies: 8
Views: 18344
|
Forum: General CCS C Discussion Posted: Wed Mar 20, 2013 12:06 pm Subject: 16F628A does not work at 3.3V |
according to the datasheet
http://www.digikey.com/product-detail/en/PIC16F628A-I%2FP/PIC16F628A-I%2FP-ND/529766
the pic16f628 should work at 3.3V but I can not find the correct set of fuses to getti ... |
Topic: getch question |
IceMetal
Replies: 11
Views: 13667
|
Forum: General CCS C Discussion Posted: Tue Mar 12, 2013 11:14 pm Subject: getch question |
I will try to figure out since no one is helping, people seems they love to rant here. |
Topic: getch question |
IceMetal
Replies: 11
Views: 13667
|
Forum: General CCS C Discussion Posted: Tue Mar 12, 2013 5:46 pm Subject: getch question |
still I can not type 100 or 50, that does not work :( is there a way to type those numbers
if you are already angry you can ignore this post you dont have to answer |
Topic: getch question |
IceMetal
Replies: 11
Views: 13667
|
Forum: General CCS C Discussion Posted: Tue Mar 12, 2013 5:24 pm Subject: getch question |
The ASCII value for '0' is 0x30 or 48 in decimal.
The ASCII value for '1' is 0x31 or 49 in decimal.
The ASCII value for '2' is 0x32 or 50 in decimal etc.
Does this answer your question?
Mike
... |
Topic: getch question |
IceMetal
Replies: 11
Views: 13667
|
Forum: General CCS C Discussion Posted: Tue Mar 12, 2013 5:05 pm Subject: getch question |
I have a dc motor and I want to add a pot as a feedback. The problem is the pot has set values from 0-255. How can I type them, it seems when I press 1, 49 shows up and when I press 2, 50 appears and ... |
|