RalphBacon / LGT8F328P-Arduino-Clone-Chip-ATMega328P

An improved ATMega328P with this cheap clone Logic Green LGT8F328P
GNU General Public License v3.0
145 stars 37 forks source link

other related resources #2

Open SuperUserNameMan opened 5 years ago

SuperUserNameMan commented 5 years ago

Translated datasheets : https://github.com/watterott/LGT8F328P-Testing

Arduino hardware cores : https://github.com/LGTMCU/Larduino_HSP https://github.com/wemos/Arduino_XI

RalphBacon commented 5 years ago

Excellent resources,I shall copy them to my GitHub very soon. In the meantime please do not close this issue, so I can find the details easily. Thanks for the info, SuperUserName!

metallurge commented 5 years ago

Here is LGT8FX8P_databook_v1.0.4.en.pdf an English PDF version which I translated using a different tool: https://www.onlinedoctranslator.com/translationform. It isn't perfect but it's better than the one I saw previously. It's very usable.

pfeerick commented 5 years ago

I just came across variant of the chip, based on the QFP48 package (meaning it has just a few extra GPIOs!!!), although the Aliexpress sellers I've seen listing them only seem to want to sell them in packs of 5! 😕 I only need the one for testing! 😆

[edit: QFP32, see below for QFP48] https://www.aliexpress.com/item/32951151697.html

SuperUserNameMan commented 5 years ago

@pfeerick : interesting. Actually, this seller sells both the QFP32 and QFP48 versions of the boards.

QFP32 : the link you provided (with 6 extra GPIO) QFP48 : https://www.aliexpress.com/item/32947577047.html (with 17 extra GPIO)

pfeerick commented 5 years ago

@SuperUserNameMan Woops... thanks... I must've copied from the wrong tab ;) I meant to to do the one you linked... was quite interesting to see how they managed to squeeze in all the extra IO! :smile:

dbuezas commented 5 years ago

Here is LGT8FX8P_databook_v1.0.4.en.pdf an English PDF version which I translated using a different tool: https://www.onlinedoctranslator.com/translationform. It isn't perfect but it's better than the one I saw previously. It's very usable.

Thank you for this translation! With it I was finally able to implement the library to support the differential amplifier :)

pfeerick commented 5 years ago

@dbuezas Dammit... I was working on an updated board manager friendly core also ( pfeerick/Larduino_BSP/tree/bsp-upgrade)! lol Nice work there... looking really good.

For mine, I re-synced it with the latest arduino-AVR core as best I could, and am in the process of updating the libraries so that they are either stock or as up to date as possible. Including adding keywords, etc.

dbuezas commented 5 years ago

@pfeerick let's join forces! you saw my repo, right? https://github.com/dbuezas/lgt8fx

Upcycle-Electronics commented 4 years ago

I'm working on some documentation too: https://github.com/Upcycle-Electronics/LGT8Fx-Datasheet -Jake ...edit: removed blah blah blah

RalphBacon commented 4 years ago

Hi Jake

Wow, that sounds like a lot of work!

Coincidentally, I just heard from Andrew Watterott who has submitted a new translated version (which might help you too). See the new link in my GitHub.

I must admit, given what you’ve said about the datasheet being at least partially extracted from Atmel’s version, that the LGT8F328 might be the ATMega328PB which has many more features – but I very much doubt it would ever run at 32MHz. So it seems they took their lead from that chip but did actually manufacture it themselves. Probably.

So the patent for the original ATMega328P has run out now? I’m not sure any other company would suddenly jump on the design (not that the design is freely available anyway) and start producing them. That ship has long sailed as we have discovered with all the new boys on the block, include the LGT but also the STM32s, ESPs and such like.

And if Atmel ever discovered another source of 328Ps being produced they would/could just cut the price that would make it unprofitable for the other company. The bare chip is not that cheap, actually, not from LCSC, Mouser, RS or any other big provider. The LGT8 on the other hand is dirt cheap and would probably work just fine in most (if not all) 328P designs.

Well, good luck with that translation, it sounds like a big job. J

Best Regards

Ralph S Bacon

https://www.youtube.com/ralphbacon

From: Jake Little [mailto:notifications@github.com] Sent: Friday, 11 October 2019 07:47 To: RalphBacon/LGT8F328P-Arduino-Clone-Chip-ATMega328P Cc: Ralph Bacon; Comment Subject: Re: [RalphBacon/LGT8F328P-Arduino-Clone-Chip-ATMega328P] other related resources (#2)

Hey Ralph, I'm working on yet another English datasheet version. Who knows if I'll get finished. At my current pace it's going to take awhile. However, I'm uploading everything in a repo here on github. I have a line by line comparison between the ATmega328 datasheet and the LGT8F328 with notes and my changes detailed for each page. I make no promises about my ability to finish this, but I'll try my best. I've already completed several somewhat useful peripheral things though. I have a couple of spreadsheets posted where I compared and extracted the differences in the LGT's instruction set and a full comparison of registers including the 88 extra registers in the LGT that are reserved in the ATmega328. I also posted summaries of these as PDF's in the "finalpdf" folder in my repo. The most useful thing I've made though is an English bookmark Index. It isn't perfect, but it works well enough for me so far. I've had it crash a pdf viewer a couple of times with the default lubuntu PDF viewer but it works perfectly with Okular. Windoz results may vary. I made the index by extracting the original metadata from the Chinese datasheet then replacing the text with a google translated version. I suck at code so this was all brute force. As far as I'm concerned I think json is some movie about a dude in a mask. I had to use a PDF that is a page for page match to the Chinese document to make it work so the index is on on the "v1.0.4en" datasheet. I also took the time to create a new version of the Chinese original datasheet that includes a working English index. If someone wants to absolutely know what the Chinese DS says they can navigate easier with this index. One thing I can say for an absolute certainty though. The Chinese datasheet is largely the Atmel datasheet, machine translated into Chinese and loosely edited. There are sections of LGT text where they added chunks of their own original text and omitted some things. Anyone that tries to directly translate the atmel based text that was poorly translated into Chinese, back into English, is going to have lots of critical errors. I've only gotten to page 17 in an extremely detailed line by line analysis, and I've already seen around a dozen mistakes that are only obvious when comparing the atmel text directly. It becomes pretty clear where they've made changes and where the issue is translation based. This is how I'm deciding on which direction to go with my text. I'm also using my aforementioned extra documentation, and in the process of making a complete visual memory map comparison between both architectures. I also created a thread on the eevblog forum for questions about stuff that I'm not familiar enough with. In my github repo the "finalpdf" folder has a pdf concatenation of the first 12 pages I've made, the two "V1.0.4" PDF versions with indexes, and a few other odds and ends are in that folder as well. My actual completed pages are in "todo" then "pdfcompressed." I need to update the readme too but...can't do everything at once. The "errata" folder has my detailed notes and the line by line comparison. My goal is to make this repo something someone else could finish if something happens where I can't. Anyways...that's enough blah blah blah out of me... https://github.com/Upcycle-Electronics/LGT8Fx-Datasheet -Jake ...well one more thing... check out the patent thing in the finalpdf folder. I've never seen someone reference these illustrations as teaching aids. That's the original AVR patent (that just expired). I dug it up in the google patents archive for comparison. you might find those illustrations useful in the future. The text is rather esoteric and verbose, but you might find some useful details in there. For instance, who knew the AVR has two ALU's? Interesting stuff...

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/RalphBacon/LGT8F328P-Arduino-Clone-Chip-ATMega328P/issues/2?email_source=notifications&email_token=AE7RJTB3DQ6UH6WG3JZYMD3QOAOPLA5CNFSM4IJDAUF2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEA7ALIY#issuecomment-540935587 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AE7RJTD5JZZCD4UA4NZECU3QOAOPLANCNFSM4IJDAUFQ . https://github.com/notifications/beacon/AE7RJTFO7RUM62ZVF7DRUPTQOAOPLA5CNFSM4IJDAUF2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEA7ALIY.gif

pixelwaster commented 4 years ago

This seems like the place, I hope.

You can now burn a bootloader on the LGT x8P (not the D). Brother-Yan has the goods. Even does a few extra tricks. His github to make an Uno into an SWDICE / ISP. https://github.com/brother-yan/LGTISP

You say you don't want to muck about with that temporary wire mess? He has an open source project that burns bootloaders and more on a small USB stick. https://oshwhub.com/brother_yan/LGTISP

Thanks for #156

richardsonoge commented 1 year ago

Here is LGT8FX8P_databook_v1.0.4.en.pdf an English PDF version which I translated using a different tool: Online documents translation from file or Online documents translation from Url translate it from url It isn't perfect but it's better than the one I saw previously. It's very usable.

If you wanna to have more information again, you can consult the information here on the tool translate any documents on his links.

  1. https://forums.iboats.com/members/transladocs.623540/about
  2. https://biashara.co.ke/author/transladocs/
  3. https://expatarrivals.com/user/270175