Author |
Message |
Topic: NEC decoder |
Denny9167
Replies: 14
Views: 35079
|
Forum: General CCS C Discussion Posted: Sun May 30, 2021 8:06 am Subject: NEC decoder |
One big differences I find between traditional ASM code and C in dealing with decoders, is in the beginning, IR commands are #defined as constants, and the incoming command is XOR'ed with the constant ... |
Topic: NEC decoder |
Denny9167
Replies: 14
Views: 35079
|
Forum: General CCS C Discussion Posted: Sun May 30, 2021 6:07 am Subject: NEC decoder |
re: which program ?
The simple one that ONLY tests the 2 I/O pins at a 2Hz toggle rate.
It is possible that either there's a basic hardware problem (wrong pin, solder whisker,wrong resistor value) ... |
Topic: NEC decoder |
Denny9167
Replies: 14
Views: 35079
|
Forum: General CCS C Discussion Posted: Sat May 29, 2021 7:35 pm Subject: NEC decoder |
They only do what the program says to do....
You need to post your simple test program.
Which Program? I’ve already posted the code and posted a video of the prototype! One can compile the code ... |
Topic: NEC decoder |
Denny9167
Replies: 14
Views: 35079
|
Forum: General CCS C Discussion Posted: Sat May 29, 2021 5:25 pm Subject: NEC decoder |
Both shouldn’t blink like this, they should be steady on and off with each button depress and release. |
Topic: NEC decoder |
Denny9167
Replies: 14
Views: 35079
|
Forum: General CCS C Discussion Posted: Sat May 29, 2021 5:21 pm Subject: NEC decoder |
Here is a video of the test setup.
https://share.icloud.com/photos/0u3IQwo7ATIb4T4GXG5qPY2gQ#Graham |
Topic: NEC decoder |
Denny9167
Replies: 14
Views: 35079
|
Forum: General CCS C Discussion Posted: Sat May 29, 2021 4:49 pm Subject: NEC decoder |
[img]
http://3.bp.blogspot.com/-AMCR9E4rEcM/V-EDRXiONGI/AAAAAAAAB9E/Fkkpcbuc31cG-XmKgvzI8PABMtefWd7xwCK4B/s1600/nec-protocol-ir-receiver-circuit-pic12f1822.png
[/img]
This is my test setup. |
Topic: NEC decoder |
Denny9167
Replies: 14
Views: 35079
|
Forum: General CCS C Discussion Posted: Sat May 29, 2021 4:34 pm Subject: NEC decoder |
easy...
cut SIMPLE code to toggle those pins at say 2 hz( 2 seconds on, 2 seconds off),use 4k7 as the 'loads', now check with scope or DVM.
if that doesn't work, post THAT program...
At the momen ... |
Topic: NEC decoder |
Denny9167
Replies: 14
Views: 35079
|
Forum: General CCS C Discussion Posted: Sat May 29, 2021 2:05 pm Subject: NEC decoder |
I have some code I’m working with for a Volume and relay control. It’s working as intended except for one thing. The momentary action of pins A0 and A1 only output less than a 1VDC, they mimic th ... |
Topic: 12F1822 PWM problem |
Denny9167
Replies: 34
Views: 92630
|
Forum: General CCS C Discussion Posted: Mon May 24, 2021 4:34 am Subject: 12F1822 PWM problem |
The transmitter code
;**********************************************************************
; BROWN AUDIO LABS *
; PROJECT: 5 button re ... |
Topic: 12F1822 PWM problem |
Denny9167
Replies: 34
Views: 92630
|
Forum: General CCS C Discussion Posted: Mon May 24, 2021 4:31 am Subject: 12F1822 PWM problem |
You do realise that this is code to _receive_ the NEC protocol, not to generate
it.
My apologies, I should have posted under a new thread. |
Topic: 12F1822 PWM problem |
Denny9167
Replies: 34
Views: 92630
|
Forum: General CCS C Discussion Posted: Sun May 23, 2021 5:03 pm Subject: 12F1822 PWM problem |
I finally found some code that I could use for the 12F1822, using the NEC protocol, Ive been studying alot of assembly code, and seem to have a better grasp on it, I would like to learn more C, but at ... |
Topic: Switch Statement |
Denny9167
Replies: 2
Views: 11358
|
Forum: General CCS C Discussion Posted: Fri Apr 16, 2021 9:22 am Subject: Switch Statement |
How would this switch statement look in CCS C? Thanks
// key1 0x50 to Toggle relay 1 // these are command of the IR remote control which i have
// key2 0xD8 to Toggle relay 2
// key3 ... |
Topic: 12F1822 IR Remote Receiver |
Denny9167
Replies: 41
Views: 80906
|
Forum: General CCS C Discussion Posted: Mon Mar 22, 2021 9:02 pm Subject: 12F1822 IR Remote Receiver |
Just from reading the original code, there is nothing written in the code that tells the chip what to do when there are no commands coming from the IR sensor. From code we don’t know the state of th ... |
Topic: 12F1822 IR Remote Receiver |
Denny9167
Replies: 41
Views: 80906
|
Forum: General CCS C Discussion Posted: Mon Mar 22, 2021 11:11 am Subject: 12F1822 IR Remote Receiver |
You can probably 'mask' them.
'Masking' allows you to select or eliminate bits from bytes using logical AND and OR as required.
There may be info in the FAQ section of the manual, check some of the ... |
Topic: 12F1822 IR Remote Receiver |
Denny9167
Replies: 41
Views: 80906
|
Forum: General CCS C Discussion Posted: Mon Mar 22, 2021 10:40 am Subject: 12F1822 IR Remote Receiver |
You can probably 'mask' them.
'Masking' allows you to select or eliminate bits from bytes using logical AND and OR as required.
There may be info in the FAQ section of the manual, check some of the ... |
|