Thursday, 29 May 2014

BASIC programs

logo

logo_rsf

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)

 

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)

 

Wednesday, 21 May 2014

Ready to lose the laptop? Microsoft unveils all-new Surface Pro 3

Ready to lose the laptop? Microsoft unveils all-new Surface Pro 3

 

[caption id="attachment_173" align="alignnone" width="300"]74a17bd6-2abd-4574-b10c-52b66599e7d2_16x9_600x338 (The product is up for sale in the market with a starting price of $799, cheaper than its predecessor – the Surface Pro 2. (Photo courtesy: Microsoft))[/caption]

 

Can’t get enough of tablets but at the same time just can’t let go of your laptop?

 

Microsoft has attempted to solve the dilemma, launching Surface Pro 3 – a PC as light as a tablet.

 

The Surface Pro 3 was unveiled at an event in New York Tuesday by Microsoft Fortune Division head Panos Panay, as reported by CNN.

 

“This is the tablet that can replace your laptop,” Panay said as quoted by CNN, “Today we take the conflict away, and I'm absolutely sure of it.”

 

The Surface Pro 3 weighs less than the smallest MacBook Air, a laptop developed by technology rival Apple.

 

It has a thickness of 9.1 mm which is roughly the same thickness of the iPad 2, but 18% thicker than the iPad Air.

 

The Surface Pro 3 comes with a stylus, a feature-design mostly adapted by tablet developers for consumers who seek the freehand note taking feature.

 

The product is up for sale in the market with a starting price of $799, cheaper than its predecessor – the Surface Pro 2, which started at a sale price of $999.

 

Panay explained that 96% of consumers who own an iPad also use a laptop and that Microsoft has tried to prove consumers that the Surface device is the answer to that problem.

 

Rivals

 

Microsoft’s Surface products have been reviewed and criticized, but one man has made Microsoft respond – Apple CEO Tim Cook.

 

“You can converge a toaster and a refrigerator, but you know those things are not going to be probably be pleasing to the user,” Cook said.

 

Microsoft CEO Satya Nadella fired back Tuesday saying, “We’re not interested in making refrigerators and toasters… Take the best of the tablet and laptop ... that’s the device we wanted to create.”

 

(By Staff Writer | Al Arabiya News)

 

(Al Arabiya News, 21 Wednesday May 2014 The Roman)