This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//*********************************************************** | |
// runfast.c - Using 12MHZ external square wave clock as LFXTCLK | |
// source MCLK/SMCLK from 12MHZ wave and blink led | |
// at 60Hz | |
// | |
// Use an external clock ( I'm using an attiny running at 12.00 MHZ | |
// with the CLKOUT fuse enabled ) as the MCLK/SMCLK for the MSP430. | |
// I've been told you could also use an external oscillator like an | |
// ECS-100A-160. I ordered some of these to verify. | |
// |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Makefile - usci_serial | |
# | |
# License: Do with this code what you want. However, don't blame | |
# me if you connect it to a heart pump and it stops. This source | |
# is provided as is with no warranties. It probably has bugs!! | |
# You have been warned! | |
# | |
# Author: Rick Kimball | |
# email: [email protected] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* RingBuffer.h - template for a circular buffer | |
* | |
* License: Do with this code what you want. However, don't blame | |
* me if you connect it to a heart pump and it stops. This source | |
* is provided as is with no warranties. It probably has bugs!! | |
* You have been warned! | |
* | |
* Author: Rick Kimball | |
* email: [email protected] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
ASCII table | |
Prints out byte values in all possible formats: | |
* as raw binary values | |
* as ASCII-encoded decimal, hex, octal, and binary values | |
For more on ASCII, see http://www.asciitable.com and http://en.wikipedia.org/wiki/ASCII | |
The circuit: No external hardware needed. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Makefile - testspi23k256 | |
# | |
# this code is written for uniarch, however it will probably compile with CCS | |
# | |
# License: Do with this code what you want. However, don't blame | |
# me if you connect it to a heart pump and it stops. This source | |
# is provided as is with no warranties. It probably has bugs!! | |
# You have been warned! | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
5x7test.cpp --- led matrix example | |
P1.0 - P1.4 .. low to high pins for columns | |
P2.0 - P2.6 .. low to high pins for rows | |
This example code is in the public domain. | |
*/ | |
#define F_CPU 16000000 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <msp430.h> | |
#include <stdint.h> | |
void spewSPI(const uint8_t n) { | |
static const uint8_t *spiStrTBL[] = { | |
"parm1", | |
"parm2", | |
"...", | |
"parm99" | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/******************************************************************************* | |
* | |
* FR_EXP.c | |
* User Experience Code for the MSP-EXP430FR5739 | |
* C Functions File | |
* | |
* Copyright (C) 2010 Texas Instruments Incorporated - http://www.ti.com/ | |
* | |
* | |
* Redistribution and use in source and binary forms, with or without |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This is a gcc port of the code developed by Kevin Timmerman detailed here: | |
http://www.43oh.com/forum/viewtopic.php?f=10&t=1004 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I came across this article a while back but hadn't had a chance to play with it. | |
http://www.msp430launchpad.com/2010/08/using-usi-as-uart.html | |
Armed with a Sparkfun FTDI FT232R breakout board, linux, msp430-gcc and an msp430g2452 | |
I put the code below on it and was able to use putty connected @ 2000000 bps to send | |
data to my linux box. The bit duration is a blazing 500ns wow! | |
Hmm .. interesting |
OlderNewer