Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
Hi,
I want to learn a little bit deeper into windows, I am looking at PowerShell vs CMD. I read articles that CMD is just a subset of PowerShell. I wonder I should learn PowerShell or just CMD to make it easier.
Thanks
I looked at AVRISP mkII, there are all different brands that look the same. Any particular brand to buy?
1693813936
Hi Klaus
Sorry about the miss communication. I stopped reading the datasheet. Now it's the next phase, all hands on. The kit use Arduino IDE 2.21, so it's very standard. I...
I don't recall I ever ask nor even know what and how to program the ATmega328. I was concentrated on the datasheet. This is the first time I even know about USB to SPI programmer.
I don't recall I ever talk to you about programmer, and you ever said I don't need programmer. Are you assuming...
Thanks Klaus
I since packed up all the datasheets and started slowly on the Elegoo kit. I've gone through 2 programs on blinking LED and RGB LED dimming and all.
I studied C++, so it's not hard at all. But my question is my grand daughter never have any programming experience. This does not...
Thanks Klaus
I just read through the ISP quickly and get on with the Elegoo kit. It is USB interface, but it has another IC that connects to the USB connector. So it likely talk to USB and translate to ISP to program the ATmega328.
I am excited to move onto the real thing. I hope the time I...
Hi
I think I got the feel of SPM and RWW, NRWW etc. I don't want to get too deep as I am not planning to write in assembly. I just want to dig deeper than other people for the hell of it.
I am on the last cpt of interest which is Parallel and Serial programming. I think the Parallel...
I understand the reason because after the SPM Z is pointing to the beginning of next page. So they subtract the page size to get back to the starting of the last page that was being written.
But my point is why not load back the starting address to Z like before writing operation. You guaranty...
I cut out part of the program, I have a question on who is pointing at the temporary buffer for SPM to do page write into flash pointed by Z registers? you can see the question in RED on the part of the program.
Thanks
1692927007
.
.
.
.
.
Also there's something I don't like about the program...
Hi Klaus
I have not read your whole reply yet, I just want to say that I use capital letters not to shout. I just try to mean it's important points I like to make. I guess I should put it in bold instead of capital. Sorry.
I respect you and thanks for all the help.
Thanks
Hi Klaus
I thought about what you said about what do I care how the MPU do the job. respectfully, I disagree with you.
I know people try to separate hardware and software. Software people should treat hardware as a blackbox and you just trust what it said and don't worry about it.
As a...
Do you mean when you do programming, you specify it's ATmega328, that would be good enough? That's all I need to know. Nothing on the datasheet said that it's automatic. I have a little suspicion, but I want to confirm.
So in this case with page erase, it only need to execute SPM instruction...
I know for ATmega328, page size is 64 words or 128byte. But how to set it for SPM in Page Erase?
I did search of "page size". I saw all that. I saw page size of different chips. BUT in the program, HOW DOES THE PROGRAM KNOW WHAT CHIP I USE?
I went through all the places that have "page size"...
I am extracting the program one by one. This is page erase. Looks like SPM is looping itself to complete the whole page erase in one SPM execution.
I think I understand to set Z for starting memory address. Only thing is I am missing where to set the page size. Here is the program I extracted...
Hi Klaus
Your data sheet is different. But when you mentioned, I discover I was reading cpt 27 all along. I just discovered 26 is talking about the similar thing, I have to read it first.
I have been reverse engineering the program you mentioned. It's the SAME PROGRAM IN CPT26 AS CPT27. I...
Thanks Klaus
I went through all that many times. Can you just screen shot and post the few lines of codes for me. I really really cannot find it, I have all the datasheet, Assembly code and all that. I would not come here to ask stupid question like this if I have not spent days already. Just...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.