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

Better/matching pinout in docs for LGT nano #35

Closed
jayzakk opened this issue Jul 28, 2020 · 12 comments
Closed

Better/matching pinout in docs for LGT nano #35

jayzakk opened this issue Jul 28, 2020 · 12 comments
Labels
documentation Improvements or additions to documentation

Comments

@jayzakk
Copy link
Collaborator

jayzakk commented Jul 28, 2020

Is there anyone out there who would "finalize" this attached pinout graphics I collected from layout+data sheet for wiki/docs?

We do have so much more I/O and possibilities (more DACs, differential analogs, the timer#3, more GPIO, even debugger pins can be resused as GPIO,,...):

(deleted graphics, see later in the thread)

After seeing this possibilities, there may be some small changes needed to support all of that ^^
PC6(D27) is completely missing even in pins-arduino; A10/A11 should not work from quick view into analogRead(). Needs to get added including the nice automatic "switch-function" when calling pinMode() as PE0/PE2/PE6. I'll create some PR.

So, some graphics guy here?

@jayzakk
Copy link
Collaborator Author

jayzakk commented Jul 29, 2020

Rant to myself: Never ever reuse the PC6 pin, if you want to upload some different sketch later on.
Resetting into the bootloader for avrdude does not work anymore without some reset line. Surprise!

Next one. 9 left ;)
Removing the PC6/D27 definitions again.

Next one:
Despite the data sheet pinout of QFP32L (in both chinese+english), there is no such thing as a ADC11 on PB5. It's always on PE7. It won't be much usable anyways, as the LED is connected on that pin, too.

In pin definitions header, PE5(25) and PE6(26) is mistakenly swapped, and would not match new new A10. I changed that in the new pinout (any my local code). It should be problem as this pin# was never communicated.

New:

2020-07-29 00_01_38-Fotos

@dbuezas
Copy link
Owner

dbuezas commented Jul 29, 2020

This is really good!

Did you check out these projects?
https://github.com/sparkfun/Graphical_Datasheets
https://github.com/stevenj/GenPinoutSVG

These are to generate the diagrams programatically from a CSV file. The format looks reasonable and the output looks quite good:

@dbuezas
Copy link
Owner

dbuezas commented Jul 29, 2020

Rant to myself: Never ever reuse the PC6 pin, if you want to upload some different sketch later on.
Resetting into the bootloader for avrdude does not work anymore without some reset line. Surprise!

Hahaha, that's hilarious! Time to try the ISP in the examples! :) just follow this: https://github.com/dbuezas/lgt8fx/blob/master/lgt8f/libraries/LarduinoISP/readme.md
I had to add this hack to the menu, but I tested it to from one LGT to another and it does flash the bootloader just fine

@dbuezas
Copy link
Owner

dbuezas commented Jul 29, 2020

BTW, there are some pins that can output 80mA if you want to add that to the diagram
more info here: #21 (comment)

@jayzakk
Copy link
Collaborator Author

jayzakk commented Jul 29, 2020

Oookay, that generator was exactly what I was looking for, perfect!
The bricked now-only-80kHz-generator lgt has a problem: not only disabled I the reset line, but also the debugger. Same test sketch. I am good in creating such pitfalls :)
Yes, the 80ma outputs should be marked, too. Good Idea.

Thanks!

@dbuezas
Copy link
Owner

dbuezas commented Jul 30, 2020

Oh, good thing these boards cost less than a soda. I killed 3. 2 of them I killed twice (bridged the burnt diode and then burned for good a month later 😅 )

Looking forward to your findings with the generators!

@jayzakk
Copy link
Collaborator Author

jayzakk commented Jul 30, 2020

I think this here should be ok.
How does it find it's way into the wiki? ;)

LGT8F328P-nano.zip

Btw @dbuezas :
ISP programmer did un-brick the bricked LGT! I just had to keep it in reset state while powering on: nothing from my brick-code executes and the ports keep their connection to SWC/SWD/RESET, as the ISP is not related to the CPU core itself...

@dbuezas
Copy link
Owner

dbuezas commented Jul 31, 2020

Oh that's great news! I'll add an unbricking section and put your successful unbricking tips.

The pinout looks amazing 🥇 ! Do you mind if I add your GitHub hook as author and the url of this core to it?
And would you upload the csv also? Just in case some addition can be done in the future or make the breakout of other boards :)

@dbuezas dbuezas added the documentation Improvements or additions to documentation label Jul 31, 2020
@dbuezas
Copy link
Owner

dbuezas commented Aug 1, 2020

I'm using your graphical pinout all the time

@jayzakk
Copy link
Collaborator Author

jayzakk commented Aug 2, 2020

Here are all the files, including the ones for generator.
Please also check #36 , as it is needed to use A10.

LGT8F_for_GenPinoutSVG.zip

@dbuezas
Copy link
Owner

dbuezas commented Aug 6, 2020

Great! I'll add this to the repo and docs soon. Maybe others also help making pinouts of more boards based in your work 🎉

@jayzakk jayzakk mentioned this issue Aug 16, 2020
@dbuezas
Copy link
Owner

dbuezas commented Oct 11, 2020

I freaking love the pinout, I use it each time!

@dbuezas dbuezas closed this as completed Oct 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants