Porting the AVR Transistortester to the LGT328P #112
Replies: 4 comments 16 replies
-
Early support to the LGT328P infrastructure is ongoing. I added 24 and 32 Mhz wait functions but need to confirm that these figures are still valid (I asked @LaZsolt here):
If true, then the waiting functions can be kept intact since these are based on nops. Next step is to update the ADC. Is the ADC supposed to work when using the ATmega 328P registers? |
Beta Was this translation helpful? Give feedback.
-
No. The ADC of LGT8F328P differs from ATmega328P ADC. Even not the same in LGT8F328D
|
Beta Was this translation helpful? Give feedback.
-
I am really pleasantly surprised by this chip, the compatibility the the ATmega328P is much better than I anticipated:
Do you know how much compatible are the hardware implementation of TWI/I2C, UART and SPI compared to the ATmega? I did not have the time to compare the datasheets yet. They are not strictly required by the m-firmware since there are bit-banged version of each of them. For most existing boards, they are unusable anyway as the required pins are already used for other purposes. |
Beta Was this translation helpful? Give feedback.
-
I received the components and started the assembly. Unfortunately, 0.1% resistors in thru-hole are not stocked. I will publish more details as I test the firmware. |
Beta Was this translation helpful? Give feedback.
-
I was thinking about porting the AVR Transistortester to the LGT328P. In a nutshell, the AVR Transistortester is an open-source tool to identify components (resistor, capacitor, diodes...) and measure their characteristics. It is based on the ATmega processor. A 125 pages manual goes into the gory details to explain how it works. There is a gigantic EEVblog topic for in-depth discussion and this link nicely summarizes the mods that can be done to improve a popular Chinese version.
Using the LGT328P should give better accuracy thanks to the 12-bit ADC. Also the 32 Mhz clock will improve the reactivity on color displays.
I created a repository with the latest m-firmware. The official source is a SVN repo with the firmware distributed as tarball inside the repo which is cumbersome. I have no experience with the LGT328P so I would be interested in your experience about the compatibility with the ATmega. Do you think the port will just be a few adjustments to the peripherals (e.g. ADC registers) or it could be more complex?
Beta Was this translation helpful? Give feedback.
All reactions