1 / 32

PICAXE Microcontrollers

PICAXE Microcontrollers. An Introduction by NearSys. 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

mia-welch
Download Presentation

PICAXE Microcontrollers

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. PICAXE Microcontrollers An Introduction by NearSys

  2. 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

  3. PICAXE Variations PICAXE-08M2 PICAXE-14M2 PICAXE-18M2 PICAXE-20M2 PICAXE-28X2 PICAXE-40X2

  4. PICAXE Voltages Five volt chips, but can operate at 1.8 volts

  5. PICAXE Multiple Programs PICAXE-08M2 PICAXE-14M2 PICAXE-18M2 PICAXE-20M2 PICAXE-28X2 PICAXE-40X2

  6. PICAXE Multiple Programs PICAXE-08M2 PICAXE-14M2 PICAXE-18M2 PICAXE-20M2 PICAXE-28X2 PICAXE-40X2

  7. PICAXE Clock Speed PICAXE-08M2 PICAXE-14M2 PICAXE-18M2 PICAXE-20M2 PICAXE-28X2 PICAXE-40X2

  8. PICAXE Clock Speed PICAXE-08M2 PICAXE-14M2 PICAXE-18M2 PICAXE-20M2 PICAXE-28X2 PICAXE-40X2

  9. 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

  10. PICAXE Memory • Program • RAM • Data • Scratch Pad

  11. PICAXE Memory • Program • RAM • Data • Scratch Pad

  12. PICAXE Memory • Program • RAM (variables) • Data • Scratch Pad

  13. PICAXE Memory • Program • RAM • Data • Scratch Pad

  14. PICAXE Memory • Program • RAM (variables) • Data • Scratch Pad

  15. Code ExamplesInput Commands • PIN • COUNT • PULSIN • SERIN • READI2C • READADC and READADC10 • IRIN • RFIN

  16. Code ExamplesOutput Commands • HIGH and LOW • PULSOUT • SEROUT • WRITEI2C • PLAY and TUNE • SERVO • PMWOUT • IROUT • RFOUT

  17. Code ExamplesProgram Flow Control Commands • GOTO • GOSUB-RETURN • FOR-NEXT • DO-LOOP (UNTIL or WHILE) • IF-THEN-ELSEIF • ON-GOTO (GOSUB) • SELECT-CASE • BRANCH

  18. Code ExamplesCommunications Commands • I2cslave 10100000,i2cfast,i2cword • writei2c 0,("hello") • readi2c 0,(b0,b1,b2,b3,b4)

  19. Code ExamplesCommunications Commands • 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

  20. Code ExamplesMemory Commands • PEEK-POKE • READ-WRITE • GET-PUT

  21. Editor

  22. EditorSelecting Mode

  23. EditorSelecting Serial Port

  24. EditorExample Text Program

  25. EditorExample Flowchart Program

  26. EditorExample Wizard

  27. EditorExample Syntax Check

  28. EditorDownload Program

  29. EditorSimulate a Program

  30. EditorDebug a Program

  31. EditorTerminal Program

  32. “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

More Related