Saturday, 24 May 2014

Flow chart and programming language BASIC

logo

logo_rsf

Flow chart and programming language BASIC

 

We had done to make CPU Board.

 

One of our try was/is TK-80 like 1 board micro computer and we had done to make CPU Board.

 

Next section is programming.

 

We choose programming language BASIC and programming language FORTRAN.

 

At first, we learn programming language BASIC.

 

And we learn flow chart.

 

Many reference books for programming language BASIC and programming language FORTRAN.

 

BASIC is not so difficult.

 

 

PRINT "PIC MPU"

 

is

 

PIC MPU

 

Show character PIC MPU, BASIC OS command is above.

 

 

10 PRINT "PIC MPU"

 

and RUN

 

is

 

PIC MPU

 

Show character PIC MPU, program is above.

 

 

FOR I=1 TO 10

 

NEXT I

 

is

 

I=1, NEXT I, I=2, NEXT I, I=3, NEXT I, I=4, NEXT I, I=5, NEXT I, I=6, NEXT I, I=7, NEXT I, I=8, NEXT I, I=9, NEXT I, I=10

 

This is loop or loop programming, we call so.

 

Change I from 1 to 10, program is above.

 

10 I=0

20 J=0

30 FOR I=1 TO 10

40 J=J+I

50 NEXT I

60 PRINT J

 

and RUN

 

is

 

55

 

Add 1 to 10, program is above.

 

 

Please read flow chart reference book or reference Internet, please make flow charts for command and programs in this article.

 

 

Homework: Make many flow charts for many BASIC programs, and check I2C and serial EEPROM. If you can work more, make many flow charts for many PIC assembler programs.

 

(R.S.F. toshiki speed news press, Agence France-Presse, 24 Saturday May 2014 The Roman)