Sony 12 bit RC decoder
Hi Pryanick,
Did the Sony 12bit and got it running ok
this is a test code crystal 8Mhz to get this to work (all timing is done in 8Mhz prescaler 256
It use INT1 pin (pind.3)
This was tested on
address :
1 - tv
command :
16 - Channel +
17 - Channel -
18 - Volume +
19 - Volume -
20 - Mute
21 - Power
From this sony info
/Kim
Hi Pryanick,
Did the Sony 12bit and got it running ok
this is a test code crystal 8Mhz to get this to work (all timing is done in 8Mhz prescaler 256
It use INT1 pin (pind.3)
This was tested on
address :
1 - tv
command :
16 - Channel +
17 - Channel -
18 - Volume +
19 - Volume -
20 - Mute
21 - Power
From this sony info
/Kim
Attachments
Last edited:
Hi Kim
My schematic firmware version is very differ from danzup schematic and firmware.
RC5 edit text procedure is very useful but I use russian language interface. My LCD WH2002A doesnt have russian code page so I use program converter to implement russian chars on LCD. I think that it will be not so easy to adapt RC5 edit text procedure for russian language and there is not enough memory🙄
After your RC5 add commands code was included and adjusted I have 5% flash memory free.
So...
🙁
It is time to go with atmega32 !
Only thing you have to change in is :
$regfile = "m32def.dat"
instead of 8515 !
And of course the pin out of chip is a little different .
Last edited:
hi !Hi Pryanick,
Did the Sony 12bit and got it running ok
this is a test code crystal 8Mhz to get this to work (all timing is done in 8Mhz prescaler 256
It use INT1 pin (pind.3)
This was tested on
address :
1 - tv
command :
16 - Channel +
17 - Channel -
18 - Volume +
19 - Volume -
20 - Mute
21 - Power
From this sony info
/Kim
look here :
for NEC IR remote
AN #157 - Implementation of IR NEC protocol - MCS Electronics
For Sony IR remote
AN #149 - Sony Remote Control Decoding with BASCOM AVR - MCS Electronics
Dan
2 Kim
Hi Kim
Well...
I thought that our device could identify is it RC5 or RC6 protocol user is going to use with. After recognition we could add commands, store in eeprom...and control our device. If this is RC5 then add commands, eeprom saving and ok. If this is RC6 then we do the same operations and ok.
2 Dan
Hi Dan
M32 and M8515 pinout significantly differ from each other. Moving from M8515 to M32 causes complete PCB redraw and total device remake.
AN #157, AN #149 - there is not enough memory to put that code into M8515.
On the other hand RC5 control will be enough for me, I think...
Serg
Hi Kim
Well...
I thought that our device could identify is it RC5 or RC6 protocol user is going to use with. After recognition we could add commands, store in eeprom...and control our device. If this is RC5 then add commands, eeprom saving and ok. If this is RC6 then we do the same operations and ok.
2 Dan
Hi Dan
M32 and M8515 pinout significantly differ from each other. Moving from M8515 to M32 causes complete PCB redraw and total device remake.
AN #157, AN #149 - there is not enough memory to put that code into M8515.
On the other hand RC5 control will be enough for me, I think...
Serg
ATMEGA8535 & M32 is same pinout not ATMEGA8515
Thats why I wouldnt remake my PCB...
🙄
I want too, to implement Sony rc-control for my preamp, but don't know how.Maybe somebody can help me?
My new lcd layout
sorry for the poor video bad phone sound
the full wave opamp rectifier is a LM324 working nice as VU meter
more later
Kim
@ Leon08 :
sorry cant help dont know the program code you use , Bascom-Avr I can help with
sorry for the poor video bad phone sound
the full wave opamp rectifier is a LM324 working nice as VU meter
more later
Kim
@ Leon08 :
sorry cant help dont know the program code you use , Bascom-Avr I can help with
O.K, now I changed something and it does compile, but it's working not properly.If I choose SIRC im setup menu then it does not react on buttons.Strange😕.I must have overlooked something.
And here is my preamp, if you don't know:
http://www.freewebs.com/eduard7/index.htm
And here is my preamp, if you don't know:
http://www.freewebs.com/eduard7/index.htm
Attachments
Last edited:
Hi Leon08,
Not sure but in the first 7 loop ( Ir_cmd )you OR with 0x40 I think its 0x20
Well just a idea
Link to info code
/ Kim
Not sure but in the first 7 loop ( Ir_cmd )you OR with 0x40 I think its 0x20
For ir_add we basically perform the same operations only our loop is only 5 times and we OR with 0b00010000 instead of 0b0100000. After these actions are performed we assign the values of ir_cmd and ir_add to the global variables my_cmd and my_add and then return to our main program where the values are displayed on the LCD display
Code:
for 7 loop -- repeat 7 times for command
ir_cmd = ir_cmd >> 1
-- if it was skipped or is done ORing then shift over the 1
while(ir_pin == high) loop -- wait for it to be low and reset the counter
lTime = 0
end loop
while(ir_pin == low) loop -- while the pin is low which is our pulse count
lTime = lTime + 1 -- increment every 200uS until pin is high
delay_100us(2) -- 200uS delay
end loop
if (lTime >= 6) then ir_cmd = (ir_cmd | [COLOR="Red"]0x40[/COLOR]) end if
-- If its high then OR a 1 in else skip
-- if its less than 6 its a 0 so dont OR it
end loop
Link to info code
/ Kim
Last edited:
You think it should be 0x20 and not 0x40? Maybe you are right, but my current problem is of another nature.
No 0x40 is OK it was a TypO in the quot only , when i look at the sirc.jar it is 40 ...
When I added the Vu meter I got problems to but this was the RC5 interrupt in bascom
so I made the RC5 code and did not use the GetRc5 command then it works
Is the SIRC called all the time ?
or just some times else it can hang in Sirc and then buttons dont react
When I added the Vu meter I got problems to but this was the RC5 interrupt in bascom
so I made the RC5 code and did not use the GetRc5 command then it works
Is the SIRC called all the time ?
or just some times else it can hang in Sirc and then buttons dont react
Last edited:
Yes, now I understood what the problem is, but I don't know how to solve it.If "eval_sirc" is executed, then it hangs.
Did you steup
pin as Input and set pin high ?
In Bascom I set as input and set pin High then it works
only pull low if ir is send
pin as Input and set pin high ?
In Bascom I set as input and set pin High then it works
only pull low if ir is send
Last edited:
Well, O.K it works when the ir pin is high, but what if somebody will not insert the ir receiver IC?Then it will be permanently low and it will not work.
Cant Pic set pin high intern if this is a input pin ?
or ad a pullup 10K res to +5v to Ir_pin
or ad a pullup 10K res to +5v to Ir_pin
Last edited:
This is crude way of doing this, but I wanted to do it more elegant.Somehow it's done with rc5 decoder.It does not hang even if there is nothing connected to the input pin.I want to do this similar, but I don't understand how it works.
Okay, Then you must see what lrc5ok do and make it in Sirc
its just a bit that is set if a correct Ir code is sent
its just a bit that is set if a correct Ir code is sent
- Home
- Source & Line
- Analog Line Level
- Yet another Volume controlers and source selections