Yet another Volume controlers and source selections - Page 30 - diyAudio
Go Back   Home > Forums > Source & Line > Analog Line Level

Analog Line Level Preamplifiers , Passive Pre-amps, Crossovers, etc.

Please consider donating to help us continue to serve you.

Ads on/off / Custom Title / More PMs / More album space / Advanced printing & mass image saving
Reply
 
Thread Tools Search this Thread
Old 28th September 2010, 03:28 PM   #291
Leon08 is offline Leon08  Germany
Banned
 
Join Date: Sep 2010
Location: at Home
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
Attached Files
File Type: zip preamp_mod4.zip (108.0 KB, 92 views)

Last edited by Leon08; 28th September 2010 at 03:37 PM.
  Reply With Quote
Old 28th September 2010, 05:14 PM   #292
diyAudio Member
 
FarmTech's Avatar
 
Join Date: Mar 2010
Location: Hjørring Denmark
Send a message via MSN to FarmTech Send a message via Skype™ to FarmTech
Hi Leon08,

Not sure but in the first 7 loop ( Ir_cmd )you OR with 0x40 I think its 0x20

Quote:
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 | 0x40) 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 by FarmTech; 28th September 2010 at 05:30 PM. Reason: TypO in the QUOTE its OK with 0x40
  Reply With Quote
Old 28th September 2010, 05:37 PM   #293
Leon08 is offline Leon08  Germany
Banned
 
Join Date: Sep 2010
Location: at Home
You think it should be 0x20 and not 0x40? Maybe you are right, but my current problem is of another nature.
  Reply With Quote
Old 28th September 2010, 05:45 PM   #294
diyAudio Member
 
FarmTech's Avatar
 
Join Date: Mar 2010
Location: Hjørring Denmark
Send a message via MSN to FarmTech Send a message via Skype™ to FarmTech
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 by FarmTech; 28th September 2010 at 06:00 PM.
  Reply With Quote
Old 28th September 2010, 08:05 PM   #295
Leon08 is offline Leon08  Germany
Banned
 
Join Date: Sep 2010
Location: at Home
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.
  Reply With Quote
Old 28th September 2010, 10:36 PM   #296
diyAudio Member
 
FarmTech's Avatar
 
Join Date: Mar 2010
Location: Hjørring Denmark
Send a message via MSN to FarmTech Send a message via Skype™ to FarmTech
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

Last edited by FarmTech; 28th September 2010 at 10:36 PM. Reason: spelling error
  Reply With Quote
Old 29th September 2010, 12:02 PM   #297
Leon08 is offline Leon08  Germany
Banned
 
Join Date: Sep 2010
Location: at Home
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.
  Reply With Quote
Old 29th September 2010, 01:59 PM   #298
diyAudio Member
 
FarmTech's Avatar
 
Join Date: Mar 2010
Location: Hjørring Denmark
Send a message via MSN to FarmTech Send a message via Skype™ to FarmTech
Cant Pic set pin high intern if this is a input pin ?
or ad a pullup 10K res to +5v to Ir_pin

Last edited by FarmTech; 29th September 2010 at 02:01 PM. Reason: more info
  Reply With Quote
Old 29th September 2010, 07:01 PM   #299
Leon08 is offline Leon08  Germany
Banned
 
Join Date: Sep 2010
Location: at Home
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.
  Reply With Quote
Old 29th September 2010, 07:19 PM   #300
diyAudio Member
 
FarmTech's Avatar
 
Join Date: Mar 2010
Location: Hjørring Denmark
Send a message via MSN to FarmTech Send a message via Skype™ to FarmTech
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
  Reply With Quote

Reply


Hide this!Advertise here!
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
source selector / volume hum in Aikido cbutterworth Tubes / Valves 1 28th March 2007 07:34 AM
Source for volume knobs? Alois Pass Labs 4 3rd July 2005 05:12 PM
IC Controlers for Class D Power stage frozenpod1 Class D 14 17th May 2005 03:25 PM
Swichable source and volume pot. Whats the best way? sounder Chip Amps 2 22nd September 2003 06:29 PM
detented volume pots... source? Mach_Y Parts 2 1st June 2003 05:23 PM


New To Site? Need Help?

All times are GMT. The time now is 07:58 AM.


vBulletin Optimisation provided by vB Optimise (Pro) - vBulletin Mods & Addons Copyright © 2014 DragonByte Technologies Ltd.
Copyright ©1999-2014 diyAudio

Content Relevant URLs by vBSEO 3.3.2