1.1 What is a Microcontroller?It is this 28-pin programmable semiconductor chipof type number: ATmega328P.We can build the following instruments using a Microcontroller:(1) Taxi Meter,(2) Prepaid Electrical Energy Meter, and(3) Digital Weighing Machine, etc.
For example: Pin-5 is associated with four signals, and these are PCINT19, OC2B, INT1, and PD3.
I have been trying my best to understand GolamMostafa's writings in this forum for a couple of years. I'm pretty sure his or her heart's in the right place, and I daresay he or she is quite knowledgeable, but almost all of it makes almost no sense to me.
No one is perfect and I'm sure I'm making mistakes myself - but when sharing something that is to be seen as teaching documentation, one should try its best to verify or have first a peer review of once work.
That being said, if those are personal reading notes of his own reading to try to remember things, that's a different story [...]
bool n = PIND3; //Logic-value of DPin-3 (Pin-5 of MCU) will enter into n
while(Serial.available() &&Serial.read()) //either of the method returns 0
Basic tasks are not at Microcontroller level but really way above « basic » and when you start describing pins you go straight into...
Basic Tasks of a Microcontroller1) Takes command (+, _, *, and /) from the user via keyboard/switch (input device); 2) Takes data from the user via keyboard (input device);3) Modifies data in a way the user wants (say, adding two numbers); and,4) Delivers the result to the user via 7-segment/LCD display device (output device).
I went through section1 quickly and the fundamentals are totally weird, eg not sure this is how I would describe what a Microcontroller is.
Well that's not what you did - right? You did not describe what a micro-controller is - you described some of things you can do with it