8F328P-U MCU used by the LGT8F328P is an Atmel MEGA328P compatible chip.LGT8F328P architecture No Design Is Relatively New, Stronger Far Than Functions decreases in peripheral Tools Atmel MEGA328. Especially the program encryption ability is far more than MEGA328.
Now we're going to look at the 32MHz Nano-sized drop-in replacement
1 Download the LogicGreen zipped resources here
There's a copy of this zipped folder right here on my GitHub
2 Extract the download (unzip it)
and move the unzipped LGT/var folder to under the hardware folder in your Arduino sketch folder. If you do not have a hardware folder in your Arduino Sketches folder, just create one.
3 Replace the boards.txt
In the Hardware -> LGT -> AVR folder delete the boards.txt.
Then copy the boards.txt in this GitHub there in place of the one you just deleted.
4 Fire up the Arduino IDE (or restart it if already running)
5 Select the right board
Go to Tools, Board and scroll down until you see the next set of LGT8F boards, one of which will be 32MHz variant you just added. The original LGT8F328P board will now be described as (16MHz)
6 Load the Prime Numer Test sketch from this GitHub, build and run.
If you get this instead (and your Serial Monitor is set to the correct speed)
then your board might not be running at 32MHz. Is your Serial Monitor speed set to 9600? Did you select the 32MHz variant of the board? Did you restart your Arduino IDE after replacing the boards.txt file? Did you put the unzipped folder under the correct hardware folder in the Arduino Sketches?
Each LGT8F328P has a unique GUID (serial number) built-in. Useful for encrypting things.
To retrieve the number (it's read-only) do this in your sketch setup():
uint32_t guid = (uint32_t)&GUID0;
To display that number in its intended HEX format do this:
Buy LGT8F328P-SSOP20 MiniEVB Alternative Arduino Pro Mini at Pakistan's Best Online Shopping Store at cheap price. Here you get the best LGT8F328P-SSOP20 MiniEVB which Replace ATMega328P. We Deliver in Gujranwala, Karachi, Lahore, Islamabad, Rawalpindi, Multan, Quetta, Faisalabad and all over Pakistan.
1x Arduino Pro Mini Clone LGT8F328P