BASIC programs
Can you write flow charts ?
There are measure tool for writing flow charts.
This article is for BASIC programs too.
We must learn BASIC at first, perfectly.
10 INPUT A?
20 INPUT B?
30 C=A+B
40 PRINT C
(1)
(
10 INPUT A
20 INPUT B
30 C=A+B
40 PRINT C
)
(1)'
This program is request your input. (1) (or (1)')
Answer is A+B.
Then,
10 A=10
20 B=20
30 C= - B/A
40 PRINT C
Answer is -2.
This answer is for Ax+B=0, x=? (2)
Can you write a program for Ax^2+Bx+C=0 x=? (A is not 0) ? (3)
(Can you write a program that is if A=0 then error for (3) ?) (4)
Can you write programs that is mixed, (1) or (1)' and (2), (1) or (1)' and (3), ((1) or (1)' and (4)) ?
Please do not run from mathematics.
Physics too.
Can you write programs for basic physics ?
f (x) = x^2 + 1
then
f ' (x) = 2 * x^(2-1) = 2x
Can you write a program for this ?
Can you write this to generic ?
Homework: Make flow charts for BASIC programs in this article. Check Serial EEPROM and Serial RAM. Check I2C. How many memory address for 8-bit PIC MPU ?
A1. 8-bit = 1111 1111 = 255 (Decimal) = FF (Hex)
0000 0000
to
1111 1111
is 8-bit memory address.
2^16 = 65536
We call this as 64 Kilo bytes.
8-bit memory address is 64 Kilo bytes.
Please write image that is memory and program in memory and program runs from the start and screen and keyboard and micro computer.
Homework: Check Data bus and Address bus. How many memory address is for PIC16F84A ?
If this article is difficult, we will wait for you.
We are in the start of the long long road of Digital Science, Computer Science.
(R.S.F. toshiki speed news press, Agence France-Presse, 29 Thursday May 2014 The Roman)