25. mbed Getting Started
mbed SDK - All about the mbed C/C++ SDK and peripheral libraries
mbed HDK - All about the mbed Hardware Development Kit
mbed Compiler - All about the mbed Online Compiler
mbed Developer Website - All about the mbed Developer Website Tools
26. HDK (Hardware Development Kit)
Hardware design schematics (Eagle format)
Interface binary for the CMSIS-DAP interface
27. CMSIS-DAP
Drag and Drop programming, CMSIS-DAP debugger and USB serial
interface to a range of Cortex-M based microcontrollers.
1) USB Disk “drag and drop”
2) Debug interface using the CMSIS-DAP - Provides full debug
capability with tools like Keil MDK
3) USB Serial interface between the host computer and the target
28. The mbed Tools
mbed Online Compiler
Importing code
Collaboration
• Version control basics
• Pull requests
• Multiple authors
Publishing code
API Documentation
Debug
30. API Document for SDK
For all the mbed C/C++ SDK APIs, see the mbed Handbook
31. Debug
• Flash LEDs - Turn LEDs on and off, also to indicate where the program is.
• Debug messages - printf () over the serial port
• Hardware debug: you may use Logical Analyzer or Oscilloscope
33. Source Version Control
• Commit a version of your project, and view
the revision history
• View changes a version made,
and compare changes between versions
• Switch and revert to a different version
• Branch and merge version
41. ADC Lab: Photo Resistor
printf is send to UART
(CMSIS-DAP)
42. I2C
This interface can be used for communication with a I2C
devices, such as serial memories, sensors and other
modules or integrated circuits
Remember, you will need a pull-up resistor on SDA and SCL
43. 它是一種半雙工的串列式 bus
它是一種廣播式的 bus
三種通訊速度
1) Standard is 100 Kbps
2) Fast-mode is 400 Kbps
3) high-speed mode supports speeds up to 3.4 Mbps
supports 7-bit and 10-bit address
Master-slave communication
43
What is I2C (Inter-IC) ?