Page 2 of 4 FirstFirst 1234 LastLast
Results 11 to 20 of 34

Thread: PGA2311 Digitally controlled pre-amp

  1. #11
    you can store things at PICs internal EEPROM, either using small External EEPROM
    www.diysmps.com & www.Micro-Audio.com

  2. #12
    I got it to work with eeprom_read() and eeprom_write functions and its saving inside the eeprom at 0X0A, only issue is the 1000000 times write limitation. Maybe there is another solution i will need to see. To handle the write limitation the only solution is to write to eeprom memory at power off. If power is pulled from the system without powering off porperly it resorts to last properly stored data thats logical and normal.

  3. #13
    Hi microsim just seeing your post thanks a lot for the reply

  4. #14
    Just an update i am implementing which is simple and should work is to read intial data in eeprom and compare it with new data before saving if its the same no write operation is carried out. That might save a bit out of the 1M write cycle limitation .

    Also some thoughts on the objective of the final project:

    1) Purpose is to use a rotary encoder to control PGA2311 and have a soft power start. more volumes that need to be cointrolled simply add more PGA2311

    2) Besides these functions i will require the unit to work with a single source that source selector with soft power was basically a test and start the learning curve.

    3) Is an LCD really needed for this? I feel it a bit useless to be used to show only power on and and volume level but i will implement it at test level to move ahead in the learning curve.

    4) Is data storage needed? I don't think so since if the unit suddenly powers off and is then switched on i prefer to reset the volume to zero and move it back to its initial value again.Basic data storage was another learning point.

    More functionally interesting and useful features:

    1) Muting function using relays to avoid clicks and pops at start up

    2) In case its housed in the amplifier chassis :
    A) implement over temperature shutdown + fan speed control
    B) Implement louspeaker switch on delay at switch on and immediate switch off at turn off
    C) Implement loudspeaker dc offset protection
    D) At this point an LCD becomes interesting to show the reason problems the unit is encountering
    E) Since we are at DIYSMPS and we power our amps with SMPS implement all SMPS protection features into the pic and again use that LCD to show the problems since the pic will have its own PSU

    The above are only thoughts on what can be done next step i will go ahead with LCD and rotary encoder interfacing as the components arrive.
    Last edited by zeus_threat; 07-31-2011 at 07:14 AM.

  5. #15
    Got my rotary encoders and HD44780 LCD and working on it. The rotary encoder is a bit trciky to read but i should get through it. Am using mechanical model which is more affordable. The optical better model is much more expensive but much more accurate and better

  6. #16
    Quote Originally Posted by zeus_threat View Post
    Got my rotary encoders and HD44780 LCD and working on it. The rotary encoder is a bit trciky to read but i should get through it. Am using mechanical model which is more affordable. The optical better model is much more expensive but much more accurate and better
    well done zeus
    www.diysmps.com & www.Micro-Audio.com

  7. #17
    Hi thanks Microsim. Currently working out the issues associated with incremental rotary encoders and just got through working with interrupts. Pass this point i will go for the LCD

  8. #18

    One more win

    Need to check rotary encoder waveforms on a scope in order to debounce it but for lcd its done. Its extremely easy to use LCD with the hitech c samples codes. Only some ports to be defined and its only basic function calls that need to be implemented afterwards .

    Only two left to master rotary encoder debounce issues and PGA2311 interface.

  9. #19
    Well done buddy keep up the good work & don't forget to share your setup so the we diy guyz may enjoy.

  10. #20
    Hi sure SaintGP its going bits by bits right now then i need to get it all into 1 single program. I'll post the result here

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •