Author |
Message |
Topic: Cant get the Keypad code to work ! |
PICdawg
Replies: 8
Views: 11681
|
Forum: General CCS C Discussion Posted: Sat Jul 19, 2014 12:23 pm Subject: Cant get the Keypad code to work ! |
Thanks PCM! We are now perfectly in sync. I've included additional comments to remind me about the debounce factor and using it in an interrupt vs polled environment. Your Password example is runnin ... |
Topic: Cant get the Keypad code to work ! |
PICdawg
Replies: 8
Views: 11681
|
Forum: General CCS C Discussion Posted: Sat Jul 19, 2014 10:29 am Subject: Cant get the Keypad code to work ! |
Thanks for your quick response PCM! I understand your comments and example completely. Makes sense when the driver is not used in an interrupt driven fashion. I hadn't looked at EX_LCDKB.C until yo ... |
Topic: Cant get the Keypad code to work ! |
PICdawg
Replies: 8
Views: 11681
|
Forum: General CCS C Discussion Posted: Fri Jul 18, 2014 5:30 pm Subject: Cant get the Keypad code to work ! |
Old post but I have a couple questions about the flex_kbd, and kbd.c drivers w.r.t. kbd_debounce_factor. I am implementing a keypad in a design for the first time. I've written a test program and it ... |
Topic: DHT22 code desired (RH and Temp sensor) |
PICdawg
Replies: 17
Views: 92724
|
Forum: General CCS C Discussion Posted: Sat Oct 26, 2013 2:55 pm Subject: DHT22 code desired (RH and Temp sensor) |
ezflyr (John) ..... Code works great! I'm up and running and reading temp and humidity. I changed the 18ms time to 2ms in the start sequence since I'm only ever going to use the DHT22. Output of DH ... |
Topic: DHT22 code desired (RH and Temp sensor) |
PICdawg
Replies: 17
Views: 92724
|
Forum: General CCS C Discussion Posted: Wed Oct 23, 2013 9:16 am Subject: DHT22 code desired (RH and Temp sensor) |
Thanks ezflyr! That's exactly what I was looking for! Should have my proto up in a jiffy. I want to look at the data line with a logic analyzer just for giggles and grins and see the actual DHT res ... |
Topic: DHT22 code desired (RH and Temp sensor) |
PICdawg
Replies: 17
Views: 92724
|
Forum: General CCS C Discussion Posted: Tue Oct 22, 2013 8:58 am Subject: DHT22 code desired (RH and Temp sensor) |
Thanks for the tips but unfortunately the SHT11 and DHT22 are not related. The SHT11 part is made by Sensiron and uses a synchronous 2 wire interface (clock and data). The DHT22 and its older brothe ... |
Topic: DHT22 code desired (RH and Temp sensor) |
PICdawg
Replies: 17
Views: 92724
|
Forum: General CCS C Discussion Posted: Mon Oct 21, 2013 8:41 am Subject: DHT22 code desired (RH and Temp sensor) |
Anyone have any code they'd like to share for interfacing to a DHT22 sensor?
I have the Great Cow Basic program from Nuts and Volts and the Arduino library stuff regarding this part, but my prefere ... |
Topic: Generating multiple PWM pulse on PIC16F877a |
PICdawg
Replies: 12
Views: 23485
|
Forum: General CCS C Discussion Posted: Fri Jan 04, 2008 4:03 pm Subject: Generating multiple PWM pulse on PIC16F877a |
JohnP, excellent point! My solution is in fact a multi-channel hobby servo controller and is not doing the lower level contol of a servo motor itself. Sorry for any confusion I may have introduced a ... |
Topic: Generating multiple PWM pulse on PIC16F877a |
PICdawg
Replies: 12
Views: 23485
|
Forum: General CCS C Discussion Posted: Fri Jan 04, 2008 11:57 am Subject: Generating multiple PWM pulse on PIC16F877a |
You can certainly develop a multi-channel servo controller but I don't believe you'll be using the built in pwm function. I developed a 4 channel dedicated servo controller using the 16f876a. Basica ... |
Topic: I2C slave transmitting data |
PICdawg
Replies: 47
Views: 93860
|
Forum: General CCS C Discussion Posted: Mon Dec 17, 2007 7:51 pm Subject: I2C slave transmitting data |
See my private email to you. Rather than fill up this with the code I answered your question and sent you the code I used for my demo. |
Topic: HELP !! pic16f84A timer0 don't work |
PICdawg
Replies: 3
Views: 4435
|
Forum: General CCS C Discussion Posted: Mon Dec 17, 2007 2:06 pm Subject: HELP !! pic16f84A timer0 don't work |
If you go ahead and use the prescaler set to 256, then your counter needs to be initialized to 32. (8192/256=32). As PCM programmer indicated, you are missing this initialization line... |
Topic: HELP !! pic16f84A timer0 don't work |
PICdawg
Replies: 3
Views: 4435
|
Forum: General CCS C Discussion Posted: Mon Dec 17, 2007 1:56 pm Subject: HELP !! pic16f84A timer0 don't work |
Keep in mind the following...
Timer0 is an 8 bit timer/counter. Your code says use the internal clock with no prescaler. That means the RTCC is incrementing every 0.4768us. (this time comes from ... |
Topic: I2C slave transmitting data |
PICdawg
Replies: 47
Views: 93860
|
Forum: General CCS C Discussion Posted: Mon Dec 17, 2007 10:31 am Subject: I2C slave transmitting data |
Thanks. I did add the NAK parameter to my master-receiver code and my demo program(s) came to life! My slave is running essentially the example slave program. Very simple master program.
I will ... |
Topic: Zero Crossing Hardware question |
PICdawg
Replies: 9
Views: 8047
|
Forum: General CCS C Discussion Posted: Mon Dec 17, 2007 10:26 am Subject: Zero Crossing Hardware question |
As the others have said, I'd highly recommend using an AC input, phototransistor optocoupler for isolation purposes. Cheap part, readily available from DigiKey, Mouser, etc. I built a PIC based holi ... |
Topic: I2C slave transmitting data |
PICdawg
Replies: 47
Views: 93860
|
Forum: General CCS C Discussion Posted: Fri Dec 14, 2007 1:26 pm Subject: I2C slave transmitting data |
Yes, I forgot that the s/w implementation is only for the master.
Also, I believe the problem in my implementation may be that my read did not specify the NAK parameter. After some review of the i ... |
|