Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PFS122 support #52

Open
spth opened this issue Oct 29, 2020 · 4 comments
Open

PFS122 support #52

spth opened this issue Oct 29, 2020 · 4 comments

Comments

@spth
Copy link
Contributor

spth commented Oct 29, 2020

A while ago, Padauk released the PFS 122.

Since this is a flash device, I'd expect it to be popular among hobbyists, and it would be good to have support for it.

@kibix
Copy link

kibix commented Dec 6, 2022

I am happy to pay a bounty and support testing if PFS122 support can be added

@bonnom
Copy link

bonnom commented Dec 14, 2022

JS added PFS122 to the development branch last week! So you can start testing it out.
It seems like the PFS122 is just a PFS173

@kibix
Copy link

kibix commented Dec 14, 2022

Yes, thanks for the hint !
I tested today with the previous version, selecting the PFS172 (that is also as what the chip identifies), and it programs well. The include files for SDCC are missing a register for the PFS122 (which has 16bit results from AD, compared to 8bit on other models), but that is, obviously, trivial to fix.

So i can confirm that even without a specific PFS122 setting, the chip can be correctly programmed by selecting PFS172.

Cheers

Johannes

@bonnom
Copy link

bonnom commented Dec 14, 2022

I think the PFS172 may have already had a 12bit ADC.
For the PFS173 they discovered at least 11bits of the adc https://free-pdk.github.io/undocumented-features#11-bit-adc-pfs173.
If you have an PFS172 you can try to read the lower adc bits from the adress 0x23!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants