Skip to content

Instantly share code, notes, and snippets.

View ossicode's full-sized avatar

OSSI ossicode

View GitHub Profile
@ossicode
ossicode / adf7021n.c
Created December 13, 2012 02:00
OSSI COMMS AX25 UI frame 1220bps MixW2 test OK!
#include "adf7021n.h"
#include "global.h"
////////////// TX
#define TX_TXCLK_PORT 2
#define TX_TXCLK_PIN 3
#define TX_DATA_PORT 2
#define TX_DATA_PIN 4
@ossicode
ossicode / debug.h
Created January 11, 2013 13:51
MSP430F1611 USART I2C Master Using Polling with timeout / Working / LPM0
/* --COPYRIGHT--,BSD
* Copyright (c) 2012, Texas Instruments Incorporated
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
@ossicode
ossicode / main.c
Created December 26, 2012 00:49
MSP430 I2C and UART at the same time from ti forum written by Brandon Elliott
//******************************************************************************
// MSP430xG461x Demo - USCI_A0 UART TX single byte and USCI_B0 I2C Master TX
// single byte to MSP430 Slave
//
// Description: This demo connects two MSP430's via the I2C bus and UART.
// The master transmits to the slave. This is the master code. It continuously
// transmits a single byte of data starting at 0 and incrementing from both
// UART and I2C. This demonstrates how to implement an I2C master transmitter
// using the USCI_B0 TX interrupt and UART transmission using the USCI_A0 TX
// interrupt simultaneously.
@ossicode
ossicode / layout.def
Created February 7, 2013 10:08
OBC_LTC3105_LM94022 gerbmerge def / cfg file for eagle CAD
# This example simply takes the small Proj1 board and panelizes
# it in a 2x4 array. To demonstrate rotation, the second column
# consists of rotated jobs. You wouldn't really do it this way,
# of course, as it wastes space.
# use notepad to edit this
Row {
input_gerber1
Col {
Row {
@ossicode
ossicode / main.c
Created January 19, 2013 10:24
system timer using timer B / timer B using CCR0 for 1 sec / CCR1 for 1ms / ms is compensated every 1 sec
#include "ossiobc.h"
#include "wdt.h"
#include "timerB.h"
/*
* main.c
*/
int main(void) {
wdt_hold();
@ossicode
ossicode / clock.c
Created January 17, 2013 12:12
MSP430F2132 Watchdog timer Testcode
/*
* clock.c
*
* Created on: 2013. 1. 16.
* Author: OSSI
*/
#include "clock.h"
// main clock will be shared via system
@ossicode
ossicode / clock.c
Created January 17, 2013 12:01
MSP430F1611 Watchdog timer testcode
/*
* clock.c
*
* Created on: 2013. 1. 14.
* Author: OSSI
*/
#include"clock.h"
// main clock will be shared via system
static volatile uint8_t clockMode;
@ossicode
ossicode / adc12.c
Created January 17, 2013 10:41
MSP430F1611 simple DAC12 module is added. Work with ADC12 module. see the code for the explanation
/*
* adc12.c
*
* Created on: 2013. 1. 16.
* Author: OSSI
*/
#include "adc12.h"
void adc12_portSetup(uint8_t ports)
@ossicode
ossicode / aclkuart.c
Created January 17, 2013 06:46
MSP430F2132 ADC10 polling ADC10IFG version ok
/*
* aclkuart.c
*
* Created on: 2012. 12. 19.
* Author: OSSI
*/
#include "aclkuart.h"
static volatile uint8_t uart_rx_flag = 0;
static volatile uint8_t rx_byte = '\0';
@ossicode
ossicode / adc12.c
Created January 16, 2013 16:29
MSP430F1611 ADC12 Test OK
/*
* adc12.c
*
* Created on: 2013. 1. 16.
* Author: OSSI
*/
#include "adc12.h"
void adc12_portSetup(uint8_t ports)