Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Welcome to the Rockbox Technical Forums!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Hardware
| | |-+  pp5020/H10 - ADC and ScrollPad
« previous next »
  • Print
Pages: [1]

Author Topic: pp5020/H10 - ADC and ScrollPad  (Read 1872 times)

Offline afd100

  • Member
  • *
  • Posts: 2
pp5020/H10 - ADC and ScrollPad
« on: July 12, 2007, 11:55:42 PM »
Hello All,
I've got a question or two about the pp5020/H10 player and the ADC scrollpad interface.

1.) Is there ANY more information about this chipset, and where would I find it?
2.) The ADCs are quoted on the datasheet as being 8 bit, but the ADC code says they are 10 bit.  Are the 8 bit ADCs used as 10 bit ADCs through a feature of the chip?
3.) If the adc_data2 bits 0 and 1 contain lowest bits of the 10 bit A/D, then the code in adc_h10.c does not me:

adc_data2 = (ADC_DATA2 >> (8*channel+6)) & 0x3.

Shouldn't this be:

adc_data2 =  ADC_DATA2 >> (8*channel) & 0x3

or are the 2 lsb bits at the msb position of ADC_DATA2?

4.) The ADCs are not interrupt driven?  Is it not more common to see a register which lets us know the A/D is completed?  Again, without a datasheet, I can't tell, but everything seems to work.

Of course my end goal is to get the scrollpad working the way the original firmware works.  So I've noticed touching the scrollpad at the bottom has quite a bit more noise than touching the top.  At the top, the noise will be +/- 0x08 - 0x10 whereas at the bottom it is somewhere near +/- 0x70.  Also there seems to be a periodic dip in the value.  This has made it really difficult to get the input data filtered.  

Any help would really be appreciated.  I've looked at the iPod linux wiki memory map, and can't seem to relate it to the H10.  For instance, does the H10 actually have access to the A/D converter interrupts?
Logged

Offline Llorean

  • Member
  • *
  • Posts: 12931
Re: pp5020/H10 - ADC and ScrollPad
« Reply #1 on: July 12, 2007, 11:59:58 PM »
You're best off posting a question of this depth to the developer mailing list. There's a higher likelihood it'll get spotted by the relatively few people who might be able to answer this question.
Logged

Offline afd100

  • Member
  • *
  • Posts: 2
Re: pp5020/H10 - ADC and ScrollPad
« Reply #2 on: July 13, 2007, 09:19:20 AM »
Thanks, I will try the developer forums.
Logged

Offline bascule

  • Rockbox Expert
  • Member
  • *
  • Posts: 1298
Re: pp5020/H10 - ADC and ScrollPad
« Reply #3 on: July 13, 2007, 09:33:02 AM »
Please don't double post. I've deleted your other one in the even-more unlikely user interface forum...

...and Llorean said developer mailing list, not forum.

Mailing lists accessed from here as linked on the sidebar: http://www.rockbox.org/mail/
Logged
DataBase fanboy and author of the totally overhauled Rockbox Sync Tool

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Hardware
| | |-+  pp5020/H10 - ADC and ScrollPad
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.073 seconds with 15 queries.