![mbed serial library mbed serial library](https://s3.manualzz.com/store/data/026557253_1-656d42c42854909dd50a9523d8005317.png)
When the board resets, it will look for autowave.cfg in the root of the SD card.
![mbed serial library mbed serial library](https://hackster.imgix.net/uploads/attachments/212384/bfbKgWoENHY8qNVsj8he.jpg)
Any other extension is expected to be a binary dump of the data using 16-bit unsigned integers. cfg extension (actually, any extension that starts with a C), the device will read or write the data and timebase in a special file format. g – Generate output (reset to return to prompt).z – Zap the memory with either one value or two alternating values (good for testing).t – Set the timebase in microseconds (floating point).f – Load a floating point file by serial port (16K entries from -1 to 1).x – Load a hex file by serial port (16K entries ranging from 0 to FFFF).l – Load a decimal file by serial port (16K entries ranging from 0 to 65535).
![mbed serial library mbed serial library](https://os.mbed.com/media/uploads/4180_1/serial_int.jpg)
The USB serial connection to the board will allow you to send commands and data to the board. The output is on pin 11 of J4 (marked as DAC0_OUT on the pin out picture that comes with the board). The K64F board has a CPU with a built in DAC (digital to analog converter). The price jumps from $13 to $35, but you get a lot more capability for the price. I did, however, do my early testing on a KL25Z, so if you have one, you can still work through the code, although standalone operation won’t be possible. What I really wanted, though, was the SD card slot. This is very similar to the KL25Z board but has a bit more of everything–speed, memory, etc. My requirements mean I needed a slightly more capable board. It doesn’t have to be too fancy or meet the same specs as some of the lab gear I have, but it should be easy to carry, power off USB, and work by itself when required. In particular, I often have a need for a simple and portable waveform generator. I wanted to revisit mBed, though, and show something with a little more substance.
#Mbed serial library how to
Last month, I talked about how to get started with mBed and ARM processors using a very inexpensive development board.