Coding

Interrupt

Pin Based

InterruptIn => create InterruptIn connection to specified pin
rise => attach function for rising edge
fall => attach function for falling edge
mode => set interrupt pin mode
Except p19 and p20
0 if < 0.8V and 1 if > 2V
Default interrupt mode = pull-down resistor
http://mbed.org/handbook/InterruptIn

Time Based

Repeating Interrupt
Ticker

One-Time Interrupt
Timeout


mbed 11U24

No PWM and no analogout
http://mbed.org/handbook/m0-release
- Power the whole mbed from USB, as normal. This takes 60mA - Power the whole mbed from Vin, as above but with a 4.5v-9.0v range. This also takes 60mA - Power *just the LPC11U24* from VB. This has the range 1.8v-3.3v, and will take 16mA normally, and will drop to about 3mA in Sleep and 800uA when in Deep Sleep.

Results

mbed power consumption (1768,11u24)

  • deepsleep()
    Optorefoective
  • Temperature effects
  • Ambient Light
  • Time
    XBEE
  • Transmition Power
  • Sleep Power Supply Design
  • Individual power requirements
  • chart
    Circuit Design
  • schematic
  • layout

Strings

array of characters
last character = null character (has value of 0 and represented by \0)
string constants or string literals = " " ;
strcpy(to, from);
strcmp(a, b);
int len = strlen(var);

dirent.h

http://en.wikipedia.org/wiki/Dirent.h
http://www.gnu.org/software/libc/manual/html_node/Directory-Entries.html


USB

http://www.beyondlogic.org/usbnutshell/usb2.shtml

Energy Management

http://www.maxim-ic.com/app-notes/index.mvp/id/671

Time

http://mbed.org/users/roen/notebook/real-time/
strftimehttp://linux.die.net/man/3/strftime
http://hacks.bluesmoon.info/strftime/usage.html
http://man7.org/linux/man-pages/man2/time.2.html
http://mbed.org/forum/helloworld/topic/1335/?page=1#comment-6524


Please log in to post comments.