Yet another Volume controlers and source selections

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
 

Attachments

  • sony-rc12.zip
    968 bytes · Views: 204
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:rolleyes:
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 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 !
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 Leon08,

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
Well just a idea
Link to info code
/ Kim
 
Last edited:
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
 
Last edited: