Download - Introduction to PICAXE Microcontrollers
![Page 1: Introduction to PICAXE Microcontrollers](https://reader033.vdocuments.mx/reader033/viewer/2022061209/548d2938b47959852c8b48bd/html5/thumbnails/1.jpg)
PICAXE MicrocontrollersAn Introduction by NearSys
![Page 2: Introduction to PICAXE Microcontrollers](https://reader033.vdocuments.mx/reader033/viewer/2022061209/548d2938b47959852c8b48bd/html5/thumbnails/2.jpg)
What is a PICAXE?
• A family of microcontrollers• Based on the PIC microcontroller• Internally programmed with an interpreter and
communications program• Program stored in the PIC’s internal EEPROM• Interpreter operates on one instruction at a time
![Page 3: Introduction to PICAXE Microcontrollers](https://reader033.vdocuments.mx/reader033/viewer/2022061209/548d2938b47959852c8b48bd/html5/thumbnails/3.jpg)
PICAXE Variations
PICAXE-08M2
PICAXE-14M2
PICAXE-18M2
PICAXE-20M2
PICAXE-28X2
PICAXE-40X2
![Page 4: Introduction to PICAXE Microcontrollers](https://reader033.vdocuments.mx/reader033/viewer/2022061209/548d2938b47959852c8b48bd/html5/thumbnails/4.jpg)
PICAXE Voltages
Five volt chips, but can operate at 1.8 volts
![Page 5: Introduction to PICAXE Microcontrollers](https://reader033.vdocuments.mx/reader033/viewer/2022061209/548d2938b47959852c8b48bd/html5/thumbnails/5.jpg)
PICAXE Multiple Programs
PICAXE-08M2
PICAXE-14M2
PICAXE-18M2
PICAXE-20M2
PICAXE-28X2
PICAXE-40X2
![Page 6: Introduction to PICAXE Microcontrollers](https://reader033.vdocuments.mx/reader033/viewer/2022061209/548d2938b47959852c8b48bd/html5/thumbnails/6.jpg)
PICAXE Multiple Programs
PICAXE-08M2
PICAXE-14M2
PICAXE-18M2
PICAXE-20M2
PICAXE-28X2
PICAXE-40X2
![Page 7: Introduction to PICAXE Microcontrollers](https://reader033.vdocuments.mx/reader033/viewer/2022061209/548d2938b47959852c8b48bd/html5/thumbnails/7.jpg)
PICAXE Clock Speed
PICAXE-08M2
PICAXE-14M2
PICAXE-18M2
PICAXE-20M2
PICAXE-28X2
PICAXE-40X2
![Page 8: Introduction to PICAXE Microcontrollers](https://reader033.vdocuments.mx/reader033/viewer/2022061209/548d2938b47959852c8b48bd/html5/thumbnails/8.jpg)
PICAXE Clock Speed
PICAXE-08M2
PICAXE-14M2
PICAXE-18M2
PICAXE-20M2
PICAXE-28X2
PICAXE-40X2
![Page 9: Introduction to PICAXE Microcontrollers](https://reader033.vdocuments.mx/reader033/viewer/2022061209/548d2938b47959852c8b48bd/html5/thumbnails/9.jpg)
PICAXE Pins
• Logic low < 1.4 V
• Up to four banks, A, B, C, and D depending on variation
• Most I/O pins are bidirectional
• Hardware interrupts on the X2
• Software interrupts on both the M2 and X2
![Page 10: Introduction to PICAXE Microcontrollers](https://reader033.vdocuments.mx/reader033/viewer/2022061209/548d2938b47959852c8b48bd/html5/thumbnails/10.jpg)
PICAXE Memory
• Program
• RAM
• Data
• Scratch Pad
![Page 11: Introduction to PICAXE Microcontrollers](https://reader033.vdocuments.mx/reader033/viewer/2022061209/548d2938b47959852c8b48bd/html5/thumbnails/11.jpg)
PICAXE Memory
• Program
• RAM
• Data
• Scratch Pad
![Page 12: Introduction to PICAXE Microcontrollers](https://reader033.vdocuments.mx/reader033/viewer/2022061209/548d2938b47959852c8b48bd/html5/thumbnails/12.jpg)
PICAXE Memory
• Program
• RAM (variables)
• Data
• Scratch Pad
![Page 13: Introduction to PICAXE Microcontrollers](https://reader033.vdocuments.mx/reader033/viewer/2022061209/548d2938b47959852c8b48bd/html5/thumbnails/13.jpg)
PICAXE Memory
• Program
• RAM
• Data
• Scratch Pad
![Page 14: Introduction to PICAXE Microcontrollers](https://reader033.vdocuments.mx/reader033/viewer/2022061209/548d2938b47959852c8b48bd/html5/thumbnails/14.jpg)
PICAXE Memory
• Program
• RAM (variables)
• Data
• Scratch Pad
![Page 15: Introduction to PICAXE Microcontrollers](https://reader033.vdocuments.mx/reader033/viewer/2022061209/548d2938b47959852c8b48bd/html5/thumbnails/15.jpg)
Code ExamplesInput Commands
• PIN
• COUNT
• PULSIN
• SERIN
• READI2C
• READADC and READADC10
• IRIN
• RFIN
![Page 16: Introduction to PICAXE Microcontrollers](https://reader033.vdocuments.mx/reader033/viewer/2022061209/548d2938b47959852c8b48bd/html5/thumbnails/16.jpg)
Code ExamplesOutput Commands
• HIGH and LOW• PULSOUT• SEROUT• WRITEI2C• PLAY and TUNE• SERVO• PMWOUT• IROUT• RFOUT
![Page 17: Introduction to PICAXE Microcontrollers](https://reader033.vdocuments.mx/reader033/viewer/2022061209/548d2938b47959852c8b48bd/html5/thumbnails/17.jpg)
Code ExamplesProgram Flow Control Commands
• GOTO• GOSUB-RETURN• FOR-NEXT• DO-LOOP (UNTIL or WHILE)• IF-THEN-ELSEIF• ON-GOTO (GOSUB)• SELECT-CASE• BRANCH
![Page 18: Introduction to PICAXE Microcontrollers](https://reader033.vdocuments.mx/reader033/viewer/2022061209/548d2938b47959852c8b48bd/html5/thumbnails/18.jpg)
Code ExamplesCommunications Commands
• I2cslave 10100000,i2cfast,i2cword
• writei2c 0,("hello")
• readi2c 0,(b0,b1,b2,b3,b4)
![Page 19: Introduction to PICAXE Microcontrollers](https://reader033.vdocuments.mx/reader033/viewer/2022061209/548d2938b47959852c8b48bd/html5/thumbnails/19.jpg)
Code ExamplesCommunications Commands
• debug
• serout B.0, T1200_4,(“Testing”)
• serin C.1, T1200_4,(“X”),B.0, B.1, B.2
• sertxd (“Value: ,”B.5)
• serrxd (B.0, B.1, B.2, B.3)
• hsersetup b9600_4, %10
• hserout 0,(b.0)
• hserin 0,50
![Page 20: Introduction to PICAXE Microcontrollers](https://reader033.vdocuments.mx/reader033/viewer/2022061209/548d2938b47959852c8b48bd/html5/thumbnails/20.jpg)
Code ExamplesMemory Commands
• PEEK-POKE
• READ-WRITE
• GET-PUT
![Page 21: Introduction to PICAXE Microcontrollers](https://reader033.vdocuments.mx/reader033/viewer/2022061209/548d2938b47959852c8b48bd/html5/thumbnails/21.jpg)
The Editor
![Page 22: Introduction to PICAXE Microcontrollers](https://reader033.vdocuments.mx/reader033/viewer/2022061209/548d2938b47959852c8b48bd/html5/thumbnails/22.jpg)
EditorSelecting the Mode
![Page 23: Introduction to PICAXE Microcontrollers](https://reader033.vdocuments.mx/reader033/viewer/2022061209/548d2938b47959852c8b48bd/html5/thumbnails/23.jpg)
EditorSelecting the Serial Port
![Page 24: Introduction to PICAXE Microcontrollers](https://reader033.vdocuments.mx/reader033/viewer/2022061209/548d2938b47959852c8b48bd/html5/thumbnails/24.jpg)
EditorExample of a Text Program
![Page 25: Introduction to PICAXE Microcontrollers](https://reader033.vdocuments.mx/reader033/viewer/2022061209/548d2938b47959852c8b48bd/html5/thumbnails/25.jpg)
EditorExample of a Flowchart Program
![Page 26: Introduction to PICAXE Microcontrollers](https://reader033.vdocuments.mx/reader033/viewer/2022061209/548d2938b47959852c8b48bd/html5/thumbnails/26.jpg)
EditorExample of a Wizard
![Page 27: Introduction to PICAXE Microcontrollers](https://reader033.vdocuments.mx/reader033/viewer/2022061209/548d2938b47959852c8b48bd/html5/thumbnails/27.jpg)
EditorExample of Syntax Check
![Page 28: Introduction to PICAXE Microcontrollers](https://reader033.vdocuments.mx/reader033/viewer/2022061209/548d2938b47959852c8b48bd/html5/thumbnails/28.jpg)
EditorDownloading Program
![Page 29: Introduction to PICAXE Microcontrollers](https://reader033.vdocuments.mx/reader033/viewer/2022061209/548d2938b47959852c8b48bd/html5/thumbnails/29.jpg)
EditorSimulating a Program
![Page 30: Introduction to PICAXE Microcontrollers](https://reader033.vdocuments.mx/reader033/viewer/2022061209/548d2938b47959852c8b48bd/html5/thumbnails/30.jpg)
EditorDebugging a Program
![Page 31: Introduction to PICAXE Microcontrollers](https://reader033.vdocuments.mx/reader033/viewer/2022061209/548d2938b47959852c8b48bd/html5/thumbnails/31.jpg)
EditorTerminal Program
![Page 32: Introduction to PICAXE Microcontrollers](https://reader033.vdocuments.mx/reader033/viewer/2022061209/548d2938b47959852c8b48bd/html5/thumbnails/32.jpg)
Want to Learn More?
Boise Robotics Group (The BoRG)
Third Saturday of the Month
Hobby Town at Cole and Ustick
10:00 AM to noon
Learn to Make a Robot
A community education class
![Page 33: Introduction to PICAXE Microcontrollers](https://reader033.vdocuments.mx/reader033/viewer/2022061209/548d2938b47959852c8b48bd/html5/thumbnails/33.jpg)
“Whether we're fighting climate change or going to space, everything is moved
forward by computers, and we don't have enough people who can code”.
Richard Branson