PICAXE Memory

8
PICAXE Memory

description

PICAXE Memory. Three Types. Program RAM Data. Program Memory. Stores the program as a series of commands Executed one command at a time Permanent, will remember for 10 years without power Accessed with the PICAXE Editor The program doesn’t normally store data here. Random Access Memory. - PowerPoint PPT Presentation

Transcript of PICAXE Memory

Page 1: PICAXE Memory

PICAXE Memory

Page 2: PICAXE Memory

Three Types

• Program

• RAM

• Data

Page 3: PICAXE Memory

Program Memory

• Stores the program as a series of commands

• Executed one command at a time

• Permanent, will remember for 10 years without power

• Accessed with the PICAXE Editor

• The program doesn’t normally store data here

Page 4: PICAXE Memory

Random Access Memory

• Divided into bytes (B0 to B27)

• Each byte is 8 bits wide (each stores up to 255)

• Can be accessed in different sizes

• Accessed by the program

• Battery operated, lose power – lose data

• Used for math and to access the outside world

Page 5: PICAXE Memory

Data

• 256 bytes of memory for storing data

• Each byte has an address, 0 - 255

• Permanent, will remember for ten years without power

• Accessed by the program

Page 6: PICAXE Memory

Accessing RAM

• If B1 = 2

• B2 = 2

• B3 = “a”

• READADC C.1,B4

Page 7: PICAXE Memory

Accessing Data

• WRITE 12,200

• WRITE B0,201

• WRITE “A”,202

• READ 200,B0

Page 8: PICAXE Memory

PICAXE Memory Map